我使用ionic(v3.3.0)和cordova(v7.0.1)作为来源.我使用fastlane v2.36.0,Xcode是版本8.3.2.
我在jenkins工作中运行的命令
yarnionic cordova preparefastlane ios build
fastlane / Fastfile
platform :ios do before_all do end ios_project_path = "platforms/ios/awesomeproject.xcodeproj" desc "Build for IOS" lane :build do increment_build_number( xcodeproj: ios_project_path,build_number: ENV["BUILD_NUMBER"] ) # Recreate schemes to ensure a smooth Transition from cordova to gym recreate_schemes(project: ios_project_path) update_project_team( path: ios_project_path,teamID: "TEAMID" ) #update_provisioning_profile_specifIEr(xcodeproj: ios_project_path) gym(scheme: "awesomeproject",configuration: "DeBUG",clean: true,project: ios_project_path,output_directory: "target") endend
fastlane / Appfile
package_name "com.xxx.awesomeapp"app_IDentifIEr "com.xxx.awesomeapp" # The bundle IDentifIEr of your appapple_ID "xxx.xxxx@xxx.com" # Your Apple email addressteam_ID "TEAMID" # Developer Portal Team ID
fastlane ios build命令在健身指令上失败了
Code signing is required for product type ‘Application’ in SDK ‘iOS
10.3’
fastlane日志中的详细错误是
Check dependencIEs Signing for “awesomeproject” requires a development
team. Select a development team in the project editor. Code signing is
required for product type ‘Application’ in SDK ‘iOS
10.3’
Cordova生成的xcode项目已激活自动签名,但缺少签名团队.
到目前为止我使用的解决方法是在第一次生成platform / ios文件夹时手动选择Team with Xcode.但是如果我删除了cordova生成的平台文件夹,我需要重新选择XCode中的团队.
有没有办法选择Cordova或签名团队的任何fastlane插件?我愿意使用任何解决方案,脚本.
所以我的构建将完全自动化. update_project_team指令不起作用.
build.Json:
{ "ios": { "deBUG": { "codeSignIDentity": "iPhone Developer","provisioningProfile": "{your development profile}","developmentTeam": "{your Team ID}","packageType": "development" },"release": { "codeSignIDentity": "iPhone distribution","provisioningProfile": "{your distribution profile}","packageType": "app-store" } }}
然后,使用Cordova Cli构建时,将使用这些签名凭据.
注意:根据Cordova documentation,Xcode 8和iOS 10不推荐使用上述语法,不再需要配置文件GUID.但是,如果没有使用Cordova v7.0.1指定配置文件,我就无法使其工作.
总结以上是内存溢出为你收集整理的如何在IOS cordova项目上自动设置签名团队?全部内容,希望文章能够帮你解决如何在IOS cordova项目上自动设置签名团队?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)