Guest User

run air ipa in xcode

a guest
Aug 14th, 2015
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.83 KB | None | 0 0
  1. # change to the proper directory
  2. pushd ~/directory/where/your/ipa/is
  3. # extract the IPA
  4. cp appname.ipa appname.ipa.zip
  5. unzip -o appname.ipa.zip
  6. rm appname.ipa.zip
  7. # copy the contents of the IPA to the location xcode wants
  8. cp -R ~/directory/where/your/ipa/is/Payload/connect.app/ ${CONFIGURATION_BUILD_DIR}/${CONTENTS_FOLDER_PATH}/
  9. cp -R appname.app.dSYM "${CONFIGURATION_BUILD_DIR}/${CONTENTS_FOLDER_PATH}/"
  10. # remove the following files and folders to avoid signature errors hen installing the app
  11. rm -R "${CONFIGURATION_BUILD_DIR}/${CONTENTS_FOLDER_PATH}/_CodeSignature/CodeResources"
  12. rmdir "${CONFIGURATION_BUILD_DIR}/${CONTENTS_FOLDER_PATH}/_CodeSignature"
  13. rm -R "${CONFIGURATION_BUILD_DIR}/${CONTENTS_FOLDER_PATH}/CodeResources"
  14. rm -R "${CONFIGURATION_BUILD_DIR}/${CONTENTS_FOLDER_PATH}/PkgInfo"
  15. # restore working directory
  16. popd
Advertisement
Add Comment
Please, Sign In to add comment