2

实施 Flavors 后,我的 iOS 构建在 CodeMagic 上失败。这是我在 xcodebuild.log 中看到的主要错误

Runner has conflicting provisioning settings. Runner is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified. Set the code signing identity value to "iPhone Developer" in the build settings editor, or switch to manual signing in the project editor.

正如许多stackoverflow问题导致的那样,我确实将代码签名身份更改为iOS开发人员,但没有帮助。

CodeMagic 中失败的构建工件的 XCodebuild.log 中的第一行有Runnerscheme 而不是我的自定义 scheme uat

来自 XCodebuild.log - /Applications/Xcode-10.3.app/Contents/Developer/usr/bin/xcodebuild -workspace /Users/builder/clone/ios/Runner.xcworkspace -scheme Runner -archivePath /Users/builder/build.xcarchive -config Release archive DEVELOPMENT_TEAM=xxxxx CODE_SIGN_IDENTITY='iPhone Distribution'

4

1 回答 1

1

在 CodeMagic 团队的帮助下,我能够弄清楚FCI_FLUTTER_SCHEME应该在 CI Job 中将环境变量配置为自定义方案。对我来说是uat

参考 - https://docs.codemagic.io/troubleshooting/common-issues/#ios-code-signing-troubleshooting

于 2019-07-31T21:32:45.360 回答