Error Building for Device on Xcode5-DP6

Hi guys,

I am trying to build for ios, and this error appears :

WARNING: Your SDK may be out of date b/c the following SDK directory could not be found:    /Applications/ Xcode.app /Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk

I am currently using xcode5-dp6 (Beta version), and did the command “sudo Xcode-select -switch /Applications/ Xcode5-DP6.app /…” to point to the next Xcode.

I don’t know why it is still trying to search/pointing for the old Xcode (Xcode.app). I don’t see any configuration or settings to select this.

Please advise on how to solve this.

Thanks

Run an:  xcode-select --print-path

and make sure your xcode select took.  Next, are you building for the device or for the iOS simulator?  The errors sound like it’s trying to run the simulator.

Hi Rob,

It actually failed for ‘simuator’ and ‘device’ build.

I checked the “Xcode-select --print-path”, and it is pointing to the xcode5-dp6. 

After much fiddling around, i notice that it works when Xcode 4.6.3 is also installed (meaning there are 2 xcodes on my mac now). It works now!

On a side note, I also notice that these items must be correct, or else some weird errors like ‘code object is not signed’ will appear :

  1. ‘Provisioning Profiles’ in the apple developer page must be valid (it may be not valid if you have modified/changed/added some certs). Ensure it is linked to the correct certificate.

  2. On your mac’s “keychain access”, only 1 'iPhone developer: Name (id)" should appear. If there is more than 1 (but similar name & id), the build will fail.

had the same issue, ran the code Rob highlighted and it was pointing to the Xcode 5 version.  Running the following fixed things:

  sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

Just to share a bit more. If this error appears, then you must check in the ‘keychain access’ and ensure there is only 1 iphone developer key and it matches what’s on your apple-developer console webpage.

failed to extract requirements data: 1 /Users/xx/Desktop/xx.app: code object is not signed at all failed to extract entitlements: 1 AssertMacros: entitlements\_requested, At least need an application-identifier entitlements file: codesign\_wrapper.c, line: 879 - (null) warning: Unable to extract codesigning entitlements from your application. Please make sure GPS is a valid Mach executable that's properly codesigned. (-19050) /Users/xx/Desktop/xx.app/xx: code object is not signed at all - (null)

Run an:  xcode-select --print-path

and make sure your xcode select took.  Next, are you building for the device or for the iOS simulator?  The errors sound like it’s trying to run the simulator.

Hi Rob,

It actually failed for ‘simuator’ and ‘device’ build.

I checked the “Xcode-select --print-path”, and it is pointing to the xcode5-dp6. 

After much fiddling around, i notice that it works when Xcode 4.6.3 is also installed (meaning there are 2 xcodes on my mac now). It works now!

On a side note, I also notice that these items must be correct, or else some weird errors like ‘code object is not signed’ will appear :

  1. ‘Provisioning Profiles’ in the apple developer page must be valid (it may be not valid if you have modified/changed/added some certs). Ensure it is linked to the correct certificate.

  2. On your mac’s “keychain access”, only 1 'iPhone developer: Name (id)" should appear. If there is more than 1 (but similar name & id), the build will fail.

had the same issue, ran the code Rob highlighted and it was pointing to the Xcode 5 version.  Running the following fixed things:

  sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

Just to share a bit more. If this error appears, then you must check in the ‘keychain access’ and ensure there is only 1 iphone developer key and it matches what’s on your apple-developer console webpage.

failed to extract requirements data: 1 /Users/xx/Desktop/xx.app: code object is not signed at all failed to extract entitlements: 1 AssertMacros: entitlements\_requested, At least need an application-identifier entitlements file: codesign\_wrapper.c, line: 879 - (null) warning: Unable to extract codesigning entitlements from your application. Please make sure GPS is a valid Mach executable that's properly codesigned. (-19050) /Users/xx/Desktop/xx.app/xx: code object is not signed at all - (null)