Xcodebuild throws error in new Xcode-8 Beta version

886 Views Asked by At

I get this error Code signing is required for product type 'Application' in SDK 'iOS 10.0'", whenever i try building my app from command line using xcodebuild. The same command works fine with previous versions of Xcode. In general "xcodebuild command" works in previous versions of xcode but not from Xcode 8 (Currently beta version).

1

There are 1 best solutions below

1
On

You need to sign in your Apple Credentials in Xcode->Preferences->Accounts. Once that is done, select target, check the section Signing, select the team, it will create a provisioning profile automatically. Go to Build Settings->Signing section, Choose Provisioning Profile as "Automatic" and Code Signing Identity as "iOS Developer". Build and Run.

Signing

Apple Credentials