Error when build project in new Xcode 8.0 beta

前端 未结 9 1623
执笔经年
执笔经年 2021-02-03 19:46

Signing for SWRevealViewController requires a development team. Select a development team in the Target Editor.

Code signing is required for product type \'Framework\' i

9条回答
  •  长情又很酷
    2021-02-03 20:28

    Cocoapods needs to be updated to add in your projects team information. Maybe this new version of Xcode doesn't rely on the active running project for code signing information anymore. This could also be an indication of a bug from the new code signing in Xcode 8.0. I suppose Apple's developers use SPM over Cocoapods (at least that is what they test with). From what I can tell its only a matter of adding in this data to Pods/Pods.xcodeproj/project.pbxproj file

    TargetAttributes = {
        698A37611B31C6E9B1C5AEC735CECE70 = {
            DevelopmentTeam = XXXXXXXXXX;
            DevelopmentTeamName = My Team Name";
            ProvisioningStyle = Automatic;
        };
        90B2840AB96CFDCBD62C7A56DFD6562C = {
            DevelopmentTeam = XXXXXXXXXX;
            DevelopmentTeamName = "My Team Name";
            ProvisioningStyle = Automatic;
        };
        B07B012AE17952EE777271E277F90284 = {
            DevelopmentTeam = XXXXXXXXXX;
            DevelopmentTeamName = "My Team Name";
            ProvisioningStyle = Automatic;
        };
        B6184234CE5B97D6DADDB68315E67B58 = {
            DevelopmentTeam = XXXXXXXXXX;
            DevelopmentTeamName = "My Team Name";
            ProvisioningStyle = Automatic;
        };
    };
    

    These target hashes can be found under /* Begin PBXNativeTarget section */. So now it just needs to be implemented into Cocoapods.

    UPDATE:

    An issue has been opened on Github so I would just track this until it is resolved: https://github.com/CocoaPods/CocoaPods/issues/5523

    UPDATE 2:

    A PR has been created here: https://github.com/CocoaPods/CocoaPods/pull/5528. Seems the valid approach is to disable code signing completely for any Pod projects and targets.

    To use the above link, since it hasn't been merged as of 6/27/16, the branch that includes this feature is https://github.com/CocoaPods/CocoaPods/tree/xcode-8-codesigning. Just follow the guide here to use this branch https://guides.cocoapods.org/using/unreleased-features.

    UPDATE 3:

    The PR was merged so anybody who has this problem should just update Cocoapods via sudo gem install cocoapods

提交回复
热议问题