ioscordovaphonegap-buildvisual-studio-cordovataco

Cordova iOS Remote Build Release Mode fail


Building Cordova app via Visual Studio using Remote build. Was using Cordova version 5.3.1, tried updating to the latest version of Cordova too - 6.2.1-nightly.2016.5.23.6e87c71a.

Both times it works in Debug mode but does not work in Release Mode:

Errors - misleading and say nothing whatsoever: https://i.sstatic.net/OmP4V.jpg

Part of the Output: ERROR building one of the platforms : error : /Users/Jurgen/.taco_home/remote-builds/taco-remote/builds/66415/cordovaApp/platforms/ios/cordova/build: Command failed with exit code 2 1> You may not have the required environment or OS to build this project (TaskId:10) 1> Failed to build app for buildNumber 66415: /Users/Jurgen/.taco_home/remote-builds/taco-remote/builds/66415/cordovaApp/platforms/ios/cordova/build: Command failed with exit code 2 (TaskId:10) 1>22:57:03.377 1> 1>Error : Remote build error from the build server Build failed with error /Users/Jurgen/.taco_home/remote-builds/taco-remote/builds/66415/cordovaApp/platforms/ios/cordova/build: Command failed with exit code 2: {1} 1> Done executing task "MdaVsCli" -- FAILED. (TaskId:10) 1>22:57:03.393 1> 1>Done building target "BuildMDA" in project "MobileAppNew.jsproj" -- FAILED.: (TargetId:11)

Full Output:

https://www.wetransfer.com/downloads/b9a4e2e932f98bb2286fbb6602c8dfc020160523210524/48dffd

We are planning to send the app to iOS to be released on the App Store but cannot do the .ipa file. Any help would be appreciated


Solution

  • How I solved this problem:

    First of all I didn't manage to build and deploy on a device when using the App Store Production Certificate. I did manage however with the Ad hoc certificate, which is a production certificate with the only difference that you still have to specify the UDID of the devices you will deploy on in the developer account.

    I then updated my Cordova version from 5.3.1 to 6.2.0. I updated 2 outdated plugins: Inappbrowser and Phonegap-plugin-push and voila; the app suddenly started to deploy in release mode (via a taco remote build). Weird bit is that I had been using the old version of cordova and never had to update the plugins when running in Debug mode - which was why it took me a bit more time to figure it out! Good luck :)