Skip to content

Instantly share code, notes, and snippets.

@mekanics
Created June 1, 2015 08:50
Show Gist options
  • Save mekanics/b8e440f4c5d34ef722b5 to your computer and use it in GitHub Desktop.
Save mekanics/b8e440f4c5d34ef722b5 to your computer and use it in GitHub Desktop.
Resetting the flag to be able to generate an unsigned IPA iOS application. Because doing that manually after each Xcode update sucks.
#!/bin/bash
sdkFolder="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/"
sdkPlist="SDKSettings.plist"
cp ${sdkFolder}${sdkPlist} . && \
/usr/libexec/PlistBuddy -c "Set DefaultProperties:CODE_SIGNING_REQUIRED NO" ./${sdkPlist} && \
sudo mv ${sdkPlist} ${sdkFolder}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment