Export an IPA From Xcode Without an Apple Developer Account
YOU WILL NEED TO REPEAT STEPS 1–3 EVERY TIME XCODE UPDATES
If you run into any problems during this process, that means you either skipped a step or didn’t exactly follow through properly.
Things You’ll Need
- Cydia Impactor (if you want to install the .ipa on your device afterwards)
Step 1: Navigating to SDKSettings.plist.
- Find Xcode.app in Finder
- Secondary Click (i.e. right click, two finger tap, etc.) on Xcode.app and select “Show Package Contents.”
This is a simple series of folders to click through, just follow the list below in order and you’ll make it there.
- The alias folder labeled iPhoneOS(OS Version).sdk (while writing this I had iPhoneOS10.3.sdk)
- Now you should see SDKSettings.plist
Step 2: Edit SDKSettings.plist.
- Copy SDKSettings.plist (⌘+C).
- Go to the Desktop.
- Paste it to the desktop (⌘+V).
- Open it with a plist editor, Xcode will be your default.
- If your using Xcode’s plist editor, expand “DefaultProperties.”
- Edit “CODE_SIGNING_REQUIRED” from “YES” to “NO.”
- Edit “AD_HOC_CODE_SIGNING_ALLOWED” from “NO” to “YES.”
- Save SDKSettings.plist
- Quit out of Xcode
Step 3: Replace Xcode’s SDKSettings.plist.
Now that we have our copied SDKSettings.plist file edited, we can drag it back into the iPhoneOS.sdk folder.
When you drag the modified file back into the iPhoneOS.sdk folder, you’ll be propmted to authenticate. Press the “Authenticate” button. Then Press “Replace.” Enter your password, and hit OK.
Step 4: Export your App.
- Open your app.
- Go to “Build Settings.”
- Change from “Basic” to “All.”
- Scroll down to “Signing.”
- Change “Any iOS SDK” from “iOS Developer” to “Ad Hoc Code Sign,” for both “Debug” and “Release.”
- Change the device, in the tool bar, to “Generic iOS Device.”
- Go to the Menu Bar, and click on “Product.”
- In the drop down, click on Archive.
- In the window that appears, secondary click on the latest build of your app, and click on “Show in Finder.”
- Secondary click on the highlighted .xcarchive in Finder, and click on “Show Package Contents.”
- Go to Products Applications.
- You’ll find your .app file.
- Create a folder called Payload on the desktop or something.
- Place the .app inside of the Payload folder
- Compress the Payload folder.
- Rename the .zip extension to a .ipa extension
In order to install this IPA, you’ll have to use a program like Cydia Impactor.