如何解决Fastlane选择了错误的配置文件
我为iOS项目配置了2个目标和几种配置(第一个目标为6个,第二个目标为调试和发布)。
每个发行版配置具有不同的bundleID,因此(在Gym命令中)选择了适当的即兴分发配置文件:
desc "Build target1-config1"
lane :deployTarget1 do
gym(
workspace: "myProj-ios.xcworkspace",scheme: "target1-config1",configuration: "target1-Release",export_method: "ad-hoc",export_options: {
provisioningProfiles: {
"com.target1.config1" => "AdHocProvProfile1"
}
},output_directory: "./build",output_name: "target1-config1.ipa"
)
firebase_app_distribution(
app: "xxxxxxxx",groups: "ios_app_testers",release_notes: "Automatic dev build from develop",firebase_cli_path: "/usr/local/bin/firebase",debug: true
)
end
当尝试使用AdhocProvProfile2构建target2时,出现错误。看来fastlane没有正确选择provProfile(和bundleID!)。此外,在项目设置中,正确选择了配置文件。是什么原因引起的?没有外部健身文件。
There seems to be a mismatch between your provided `export_method` in gym
[11:15:55]: and the selected provisioning profiles. You passed the following options:
[11:15:55]: export_method: ad-hoc
[11:15:55]: Bundle identifier: com.target1.config1
[11:15:55]: Profile name: Target1 Development ProvProfile
[11:15:55]: Profile type: development
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。