Skip to content

Instantly share code, notes, and snippets.

@skabber
Created November 22, 2011 05:55
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save skabber/1385007 to your computer and use it in GitHub Desktop.
Save skabber/1385007 to your computer and use it in GitHub Desktop.
xcrun PackageApplication
/usr/bin/xcrun -sdk iphoneos PackageApplication -v "${RELEASE_BUILDDIR}/${APPLICATION_NAME}.app" -o "${BUILD_HISTORY_DIR}/${APPLICATION_NAME}.ipa" --sign "${DEVELOPER_NAME}" --embed "${PROVISONING_PROFILE}”
@alexlee002
Copy link

how to use it to export IPA with app and an extension?

@nicwise
Copy link

nicwise commented Feb 12, 2015

@alexlee002 same issue here. I'm trying to use codesign to do it:

cp "${PROVISIONING_PROFILE_PLUGIN}" "${APP}/PlugIns/todayWidget.appex/embedded.mobileprovision"
codesign -v -f -s "${SIGNING_IDENTITY}" "${APP}/PlugIns/todayWidget.appex"

But so far, no luck (it'll sign, but it resulting app doesn't work)

@dovd
Copy link

dovd commented May 15, 2015

Embed the provisioning profiles before signing
Sign the extension first, then sign the app with the extension in it's PlugIns folder. Afterwards, PackageApplication without signing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment