Before we begin…
If you are using Xcode 7 or above, you do not need this tutorial. Just use Xcode with your iOS device normally.
- A jailbroken iOS device with AppSync Unified installed.
- A computer running OS X
- Xcode 6 or below
- My patch-ios-sdk tool
- Your Apple ID must be registered as an Apple Developer — to check, log in to the Member Center. If your Apple ID is not an Apple Developer, it will prompt you to agree to the EULA and create your Apple Developer account.
- Open a Terminal instance, and run "patch-ios-sdk". You make need to make it executable first with
chmod +x patch-ios-sdk.
- Open Xcode and let it do its initial setup, then quit Xcode.
- Open Keychain Access, click on the Keychain Access item in the menubar, go to Certificate Assistant, then "Create New Certificate"
- Enter your name in if OS X didn't already fill it in, then change Certificate Type to "Code Signing" and check "Let me override defaults"
- For the serial number, just bash your head into your keyboard a bit. Or just leave it at 1, it doesn't really matter.
- Change the validity period to something longer than one year (or if you really want, you can just leave it at 365 days).
- Then just click Continue for the rest of the steps until you have a shiny new certificate.
- Quit Keychain Access, and open Xcode.
- Either create a new Xcode Project, or open an already-existing one.
- Download asu_pid.entitlements and add it to your Xcode project.
- On the Xcode sidebar, click on the project, and go to "Build Settings."
- Scroll down to "Code Signing," and change all the options under "Code Signing Identity" to "Ad Hoc Code Sign."
- Then change "Code Signing Entitlements" to "YOUR_PROJECT_NAME_HERE/asu_pid.entitlements" (no quotes) — assuming that you placed asu_pid.entitlements inside your project folder.
- Repeat changing the build settings in the Test target, or just delete the Test target if you aren't using it.
- Select your iOS device from the dropdown in the Xcode toolbar, and run your app.
- Have fun developing!