Xcode 8: There’s no way to compile signed code without setting a team in the project

Originator:mohsen.ramezanpour
Number:rdar://27241654 Date Originated:
Status:Open Resolved:No
Product:Xcode Product Version:8
Classification: Reproducible:Always
 
Summary:
Xcode 8 *requires* a team to be set for a target before it can be built. The team information will be stored in the project file itself. It is possible to use the `PROVISIONING_PROFILE_SPECIFIER` build setting instead, but that still means the target is tied to a specific team.

This behaviour is specially problematic for open source Swift projects. The project simply can’t have any team due its open source nature, but needs to be built from source each time due to Swift’s ABI instability.

It should be possible to specify the team somewhere outside the project. A natural solution would be to be able to specify this in a scheme which can then be stored in workspace.

Steps to Reproduce:
1. Open a project in Xcode without specifying the team (there’s no API for unsetting the team after it has been set)
2. Make sure signing is turned on (e.g. build for iOS device)
3. Build

Expected Results:
The project should build without it being tied to a specific team

Actual Results:
Xcode stops the build until a team is specified.

Version:
Xcode 8 beta 1 and 2

Comments

Not fixed in the release version of Xcode8 (8A8218a) nor Xcode 8.1 beta 1


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!