Xcodebuild command for Xcode 8 beta to configure provisioning profile and team ID

I can’t build the project from the command line in the latest beta version of Xcode 8. Can you tell me the " xcodebuild" commands for the beta version of Xcode 8 to create the project through the command line. previous commands that we used in previous versions of Xcode now do not work. Each time it throws and causes an error: "Check the dependencies A development team is required for signing for MyTestApp3. Select a development team in the Goal Editor. Code signing is required for the product type ' Application' in SDK 'iOS 10.0'"

The command I used to build is xcodebuild -project MyTestApp3.xcodeproj -sdk iphoneos -configuration Release clean build DEBUG_INFORMATION_FORMAT=dwarf-with-dsym DSTROOT=build GCC_GENERATE_DEBUGGING_SYMBOLS=YES SHARED_PRECOMPS_DIR=build OBJROOT=build SYMROOT=build PROVISIONING_PROFILE_SPECIFIER= CODE_SIGN_IDENTITY="iPhone Distribution: Our Distribution Certificate".

+4
source share
2 answers

Have you tried the command line parameter DEVELOPMENT_TEAM?

It can also be installed on the Xcode tabs (General and Embedded Settings).

+1
source

I found a solution

Mybe, you also want to know how to get a 10-digit team identifier. Well, I found it in the output of the command

xcodebuild -showBuildSettings -project <YourProject> |grep DEVELOPMENT_TEAM
0
source

All Articles