问题
Signing for SWRevealViewController requires a development team. Select a development team in the Target Editor.
Code signing is required for product type 'Framework' in SDK 'iOS 10.0'
回答1:
I combatted this last night. I assume you are using Pods: For each Pod, change the Team under Signing (as shown here)
edit: Screenshots are in Xcode 8 (now)
回答2:
I stole this from Anish:
Project tab -> list of Targets -> General tab for the target xcode complains about (in my case that's my framework used by my applications) -> choose your team
My project does not use pods. Sheesh.
UPD: now my project has picked up developers from the brave new world and it does use pods now (sudo hardlyagem install cocoapods), but that's hardly relevant since the solution I stole from Anish predates the import of boatload of 3rd party problems, all alike
回答3:
I solved this problem by deleting my apple id from Xcode preferences and restarting it . Sign in with your ID again and you'll be good to go
回答4:
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
回答5:
You should install cocoapods beta as they solved that issue on its RC version.
To install cocoapods beta simply use the following command in your terminal
gem install cocoapods --pre
and run pod install again by
pod install
Your errors should be fixed now.
回答6:
Click on each project in the navigator and choose a team.
回答7:
To solve this issue I have deleted the current pod file and remove all the pods from the Xcode project and also it's settings.
Further, I created a pod file using the terminal.
- Open Terminal
- Navigate to your Project Path
- Type
pod initin terminal to create new pod file - Open the newly created pod file and write the pod line which you want to install after
target "TargetName" doand beforeend. - Then type
pod installin the terminal
Then finally I solved the problem.
回答8:
Select each target in pod and select the team in General tab section It resolves the problem
回答9:
I just deleted the Frameworks folder and it worked
来源:https://stackoverflow.com/questions/37807161/error-when-build-project-in-new-xcode-8-0-beta