1

已启用 ios 自动应用签名并已连接苹果开发者门户。但是,ios 构建失败:

ERROR! Did not find matching provisioning profiles for code signing!
> xcodebuild -workspace /Users/builder/clone/ios/Runner.xcworkspace -scheme Runner -archivePath /Users/builder/build.xcarchive -config Release archive COMPILER_INDEX_STORE_ENABLE=NO DEVELOPMENT_TEAM='' CODE_SIGN_IDENTITY='iPhone Developer'
❌  error: Signing for "Runner" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'Runner' from project 'Runner')

我该如何解决这个问题?

4

1 回答 1

5

最后,我通过在 ios/Runner.xcodeproj/project.pbxproj 下手动添加团队名称解决了这个问题,TargetAttributes如下所示:

TargetAttributes = {
    97C146ED1CF9000F007C117D = {
        CreatedOnToolsVersion = 7.3.1;
        LastSwiftMigration = 0910;
        DevelopmentTeam = SSSSSSS3;
    };
};

您可以DEVELOPMENT_TEAM在 Apple Developer Portal -> Identifiers -> App ID Prefix 中找到名称。

于 2020-04-09T18:26:18.443 回答