Device build fail since upgrade to Xcode 7.3.1

Since upgrading to Xcode 7.3.1 I cannot run my old apps on my iPhone. The build fails at:

/usr/bin/codesign --force --sign BE009CA490D248994BC926A8B8674F4133C8DDD6 --preserve-metadata=identifier,entitlements --timestamp=none /Users/me/Library/Developer/Xcode/DerivedData/MyOldApp-elxwfvyezlegongupbpyneiyxpuf/Build/Products/Debug-iphoneos


with the error:


/Users/me/Library/Developer/Xcode/DerivedData/MyOldApp-elxwfvyezlegongupbpyneiyxpuf/Build/Products/Debug-iphoneos: bundle format unrecognized, invalid, or unsuitable
Command /usr/bin/codesign failed with exit code 1

I've been searching for some further explanation of what this actually means - narrowing down if the bundle is 'unrecognized', 'invalid', or 'unsuitable' would help Apple! Plus, the error message 'Command /usr/bin/codesign failed with exit code 1' seems to crop up for all sorts of other reasons.


I can run the apps fine on the simulators. And I can run Apps newly created in Xcode 7.3.1 on my iPhone, just not any that were created in earlier versions.


Any help would be much appreciated!

I have the same issue. @apple please respond to this. I suspect what defines a valid bundle has changed but I can't find any documenation.

Nice to know I'm not alone. I actually submitted a 'Code-Level Support' ticket about this which has disappeared into a blackhole. They docked my available tickets, but other than that: complete radio/web silence.

I have the same problem.

Please update here if you get any answers. I'm downloading an older version of Xcode now to see if that solves my problem.

Hi! I managed to fix this by deleting the DerivedData folder.


In your case this will be: /Users/me/Library/Developer/Xcode/DerivedData/MyOldApp-elxwfvyezlegongupbpyneiyxpuf


Hope this solves the problem for you as well!

This needs to be fixed ASAP, app will not now build on 7.3.1 sim or device when app built fine on sim and device with 7.3


erasing DerivedData folder does not fix problem


even simple demo apps will not run??


where are the p12 certs for those using their own devices?

did it work rolling back to 7.3?

Yeah, this didn't solve it, unfortunately. I'm still waiting to hear back from the code-support ticket. Anyone know where you can track these things on the Developer website?

If you mean a ticket w/DTS, the only tracking you can do is high level...date opened/closed, current status. It can take up to two weeks for a reply, so be patient and be sure emails from Apple aren't being filtered to spam.

File a bug and include reproduction steps (eg: a sample project would be ideal). I don't think there are any known issues here. Are you doing something codesigning yourself in a build script phase?

this is definitely a bug, i posted it in another thread.


https://forums.developer.apple.com/thread/38270


there are some legacy issues and the entitlements get hosed.

From the other thread, it doesn't sound like a bug. If you really think there is a bug here, you need to file a radar to provide details.

Device build fail since upgrade to Xcode 7.3.1
 
 
Q