问题描述
我正在尝试使用 Fastlane 执行 CI 作业以生成 iPA 文件。 存档文件已成功生成。但对于出口部分,我无法让它工作。
错误如下:
error: exportArchive: test1.framework does not support provisioning profiles.
Error Domain=IDEProvisioningErrorDomain Code=10 "test1.framework does
not support provisioning profiles." UserInfo={IDEdistributionIssueSeverity=3,NSLocalizedDescription= test1.framework does not support provisioning profiles.,NSLocalizedRecoverySuggestion= test1.framework does not
support provisioning profiles,but provisioning profile PROFILE_TEST1 has been manually specified.
Remove this item from the "provisioningProfiles" dictionary in your Export Options property list.}
这是我的Fastfile
lane :beta do |options|
name = get_provisioning_profile(
force: false,app_identifier: "com.xxx.test1",filename: "PROFILE_test1.mobileprovision")
update_app_identifier(
xcodeproj: "MyProject.xcodeproj",plist_path: "./mainInfo.plist",app_identifier: "com.xxx.test1"
)
//Is this update_project_provisioning issue? I thought this line
//only setup my com.xxx.test1 to profile PROFILE_TEST1,correct?
update_project_provisioning(xcodeproj: "MyProject.xcodeproj")
build_app(
workspace: "MyProject.xcworkspace",output_directory: "./OutputFile",xcconfig: xcconfigPath,export_method: "enterprise",scheme: "MyProject"
)
end
我尝试将 export_options -> provisioningProfiles 设置为空,但仍然出现相同的错误。
build_app(
workspace: "MyProject.xcworkspace",scheme: "MyProject",export_options: {
provisioningProfiles: {
"com.xxx.framework1" => "","com.xxx.framework2" => "",}
})
编辑
使用此设置:
build_app(
workspace: "MyProject.xcworkspace",scheme: "MyProject"
)
输出为:
: ▸ Archive Succeeded
[19:03:09]: Generated plist file with the following values:
[19:03:09]: ▸ -----------------------------------------
[19:03:09]: ▸ {
[19:03:09]: ▸ "provisioningProfiles": {
[19:03:09]: ▸ "com.xxx/test1": "PROFILE_TEST1"
[19:03:09]: ▸ },[19:03:09]: ▸ "method": "enterprise",[19:03:09]: ▸ "signingStyle": "manual"
[19:03:09]: ▸ }
[19:03:09]: ▸ -----------------------------------------
我的 Fastfile 设置有什么问题吗?
如何为框架目标设置配置文件无? 感谢您的帮助?
编辑
如果我从 xcconfig
中删除 build_app
选项,它工作正常。如果设置了就提示上面的错误。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)