Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # change to the proper directory
- pushd ~/directory/where/your/ipa/is
- # extract the IPA
- cp appname.ipa appname.ipa.zip
- unzip -o appname.ipa.zip
- rm appname.ipa.zip
- # copy the contents of the IPA to the location xcode wants
- cp -R ~/directory/where/your/ipa/is/Payload/connect.app/ ${CONFIGURATION_BUILD_DIR}/${CONTENTS_FOLDER_PATH}/
- cp -R appname.app.dSYM "${CONFIGURATION_BUILD_DIR}/${CONTENTS_FOLDER_PATH}/"
- # remove the following files and folders to avoid signature errors hen installing the app
- rm -R "${CONFIGURATION_BUILD_DIR}/${CONTENTS_FOLDER_PATH}/_CodeSignature/CodeResources"
- rmdir "${CONFIGURATION_BUILD_DIR}/${CONTENTS_FOLDER_PATH}/_CodeSignature"
- rm -R "${CONFIGURATION_BUILD_DIR}/${CONTENTS_FOLDER_PATH}/CodeResources"
- rm -R "${CONFIGURATION_BUILD_DIR}/${CONTENTS_FOLDER_PATH}/PkgInfo"
- # restore working directory
- popd
Advertisement
Add Comment
Please, Sign In to add comment