Xcode 9 distribution build fails because format of exportOptions.plist has changed in new release

It appears you using manual code signing (deduced by the Export Options property list in your error message). You should probably switch to automatic code signing as recommended by Apple if it suits your needs. The problem appears to be that exportOptions.plist format is not compatible with Xcode 9. A bare bones distribution plist for … Read more

Codesign returned 1 (object ifile format invalid or unsuitable) bug

Just so that this can be taken off the unanswered list. Like you said, you need to add CODESIGN_ALLOCATE to the $ENV array: $ENV{CODESIGN_ALLOCATE} = ‘/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate’; If everyone is in agreement here, I think this question can finally be closed. When using a more recent version of Xcode, the default location is: $ENV{CODESIGN_ALLOCATE} = ‘/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate’;

Determining codesigning identities from the command line?

To get a list of signing identities, I found the perfect answer in this objc.io article: security find-identity -v -p codesigning It gives output like: 1) 4E8D512C8480FAC679947D6E50190AE9BAB3E825 “3rd Party Mac Developer Application: Developer Name (DUCNFCN445)” 2) 8B0EBBAE7E7230BB6AF5D69CA09B769663BC844D “Mac Developer: Developer Name (DUCNFCN445)” 3) 4E8D512C8480AAC67995D69CA09B769663BC844D “iPhone Developer: App Developer (DUCNFCN445)” 4) 65E24CDAF5B3E1E1480818CA4656210871214337 “Developer ID Application: App … Read more

How can I skip code signing for development builds in Xcode?

As of Xcode 10, here is how to turn off code signing for a macOS app: Select your project in the project navigator. Select your app in the list of targets. Click “Build Settings”. Click “All”. Click “Levels”. Type “identity” into the search field. Click on the Code Signing Identity row, under the column for … Read more