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 (将#修改为@)