Tuesday, 20 August 2013

Error on running IOS app from command line

Error on running IOS app from command line

I am trying to run my ios app from a shell script with the following command:
/usr/bin/xcrun -sdk iphoneos5.1 PackageApplication -v
"${PROJECT_BUILDDIR}/XXXX.app" -o "${BUILD_HISTORY_DIR}/XXXX.ipa" --sign
"${DEVELOPPER_NAME}" --embed "${PROVISIONING_PROFILE}"
where the variables like BUILD_HISTORY_DIR, DEVELOPPER_NAME are all
defined inside the shell script.
The shell script also contains the xcodebuild command to build the app,
which happens successfully. But the app fails to run the above command
successfully and gives following error.
Unable to copy '/Users/balhblah/Library/MobileDevice/Provisioning\
Profiles/XXXXXXX-YYYY-ZZZZ-ZZZZ-A0E08E5F5FF1.mobileprovision' to
'/var/folders/7r/rkky9bq529x5k0s961z9qby00000gp/T/oMXkBaHtXG/Payload/Splist_test2.app/embedded.mobileprovision'
Can anybody help me on this? Thanks

No comments:

Post a Comment