Failed to generate release build of cordova ios app

后端 未结 4 1308
北恋
北恋 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:05

    So, finally I got everything to work okay ... :D

    The problem of Jenkins complaining about a failed 'codesign ...' run is a MacOS (configuration) issue

    The crucial thing is to allow the Jenkins access to the keychain of the system. The allowed access for the Login-shell of the Jenkins user is different from the Jenkins server process running under the Jenkins user account (!)

    For now I realize this by running the unlock of the login.keychain within the Jenkins job before running my build script

    like: in the Jenkins job for "execute shell"

    security unlock-keychain -p password /Users/Shared/Jenkins/Library/Keychains/login.keychain
    echo ##### building now ######################
    ./buildit.sh ios --release -v
    

    This may not be the 100% nicest solution - but for now it works :P

    See as well: [1]: Keychain won't unlock from Jenkins script unless user logged in

提交回复
热议问题