Failed to generate release build of cordova ios app

后端 未结 4 1258
北恋
北恋 2021-01-03 04:30

I am using phonegap CLI 3.1 and XCode5. I am trying to generate the build for release mode through Phonegap CLI and Xcrun. I don\'t want to use Phonegap Build to upload the

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-03 05:06

    Hmmh, I'm having a similar problem like Shashi.

    When running 'cordova buld ios [--release]' from shell and then doing a 'xcrun ...' afterwards it works for me okay.

    BUT: When running this sequence from within a script, I receive a "Codesign check fails ..." error too ...

    If I insert (like) a "wait" cycle inside my script between the cordova and the xcrun call, it works.

    So - to me - it seems, as if cordova returns to shell while it isn't completely finished (?)

    Fact is if I code my script like

    #!/bin/bash
    cordova build ios --release
    sleep 5
    sh -c "xcrun ..."
    

    it's working for me. Question: Is it a bug in cordova/phonegap ???

提交回复
热议问题