Skip to content

Instantly share code, notes, and snippets.

@skabber
Created November 22, 2011 05:55
Show Gist options
  • Select an option

  • Save skabber/1385007 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

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

@nicwise

nicwise commented Feb 12, 2015

Copy link
Copy Markdown

@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

dovd commented May 15, 2015

Copy link
Copy Markdown

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