jenkins export 时失败
通过fastlane打包的Jenkins,成功打包但导出ipa时错误,提示如下:
Xcode couldn't find any iOS App Development provisioning profiles matching 'com.xxx.xxx'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild
有两种解决办法:
- 使用xcode打开一下项目(xcode此时自动去下载、创建provisioning profiles),问题解决
- 修改fastfile中配置,添加
export_xcargs:"-allowProvisioningUpdates"
,注意冒号前后不要有空格
lane :custom_lane do
build_app(
workspace:"Project.xcworkspace",
scheme:"Project-PRO",
export_method:"ad-hoc",
output_directory:"./fastlane/ipadFile",
output_name:"project.ipa",
export_xcargs:"-allowProvisioningUpdates",
configuration:"Release"
)
end
p12证书钥匙串和xcode中状态不一致问题
本机的distribution证书被队友revoke之后,找队友要了p12文件导入,钥匙串显示正常可用状态,xcode里面显示没有证书或者是revoke状态,这时清空 ~/Library/Developer/Xcode/DerivedData
内容,关闭xcode重新打开即可。