Page 1 of 1

iOS build fails with 'Oh no! It wasn't supposed to happen but the build failed'. I have tried several times

Posted: Wed Oct 16, 2013 2:44 pm
by martin ratcliffe

I am trying to setup my app so as i can test on iOS devices. It builds to apk fine but i get the above error when trying to build to a ipa file.,


iOS build fails with 'Oh no! It wasn't supposed to happen but the build failed'. I have tried several times

Posted: Wed Oct 16, 2013 3:20 pm
by Kateryna Grynko

Hi Martin,

To build your IPA file you must have:

  • Apple certificate (***.p12)

  • Apple provisioning profile (***.provision)

  • Bundle ID (for example, we use com.exadel.***) - you can find it in your Apple certificate. Bundle ID can only consist of the Latin alphabet letters and dots. Also see http://stackoverflow.com/questions/34...

    So if you want to install your app on iPhone you would need to join the iOS Developers Program here https://developer.apple.com/programs/... (you need to pay Apple $99 for Developer Program to be able to build .ipa file and publish apps).


iOS build fails with 'Oh no! It wasn't supposed to happen but the build failed'. I have tried several times

Posted: Wed Oct 16, 2013 4:00 pm
by martin ratcliffe

I am already part of the developer program and have added the apple cert (p12) and provisioning to Appery Settings it will warn you if these are not set.

I have done some investigation though and it looks like a created the p12 file with an invalid country code. It now compiles and produces a ipa file