Flutter-Code Magic-自定义方案的iOS代码签名问题

时间:2019-07-31 21:32:45

标签: ios flutter codemagic

实现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.

我确实将代码签名身份更改为iOS Developer,这是由于许多堆栈溢出问题导致的,但并没有帮助。

CodeMagic中失败的构建工件中的XCodebuild.log中的第一行具有Runner方案,而不是我的自定义方案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'

1 个答案:

答案 0 :(得分:0)

在CodeMagic团队的帮助下,我发现FCI_FLUTTER_SCHEME环境变量应在CI Job中配置为自定义方案。对我来说是uat

参考-https://docs.codemagic.io/building/specifying-custom-ios-scheme/