1. First, you have to have a jailbreak iphone/ipod/ipad, the Jailbreak method is not available here.
2. Add the Source: http://apt.weiphone.com in the real machine Cydia used to test, download the Appsync for the real-system version.
3. Create a certificate on the computer that is used to sign the generated program.
Create a certificate
The process of creating a certificate is simple and opens "Other-keychain access" on your computer. Then click on "Keychain Access-Certificate Assistant-Create Certificate ..." in the menu bar to open the wizard. Note that here are three places where you have to name the iphone Developer, set the type to code signing, and select "Let me override these defaults". After the steps do not change, all the way to click "OK" and "continue", the final completion of this wizard can be.
4. If Xcode is in a running state, please Command+Q将其
turn it off completely first. Then open "Other-terminal", we need to use some UNIX commands, may seem to be more cumbersome, but believe me, this is the annual savings of 99 dollars AH!
① into the iphone SDK directory with the following instructions:
1 cd/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos8.0.sdk/
Note: Different versions of Xcode have different final version numbers. In Xcode 6.0, the iPhoneOS8.0.sdk
future version might be a bit higher, and earlier versions would be lower. Please make your own changes according to the actual situation. (If you do not know your version number, you can use the "ls" command to view all files.) )
② back up the original file, if the computer has a password, the system will prompt you to enter the password (input will not be displayed, hit Enter)
1 sudo cp sdksettings.plist SDKSettings.plist.orig
③ Editing a configuration file sdksettings.plist
To facilitate the modification, we can open this file directly with Xcode. The first thing to open is the directory where the file is located:
1 Open.
Double-clicking in the Pop-up Finder window SDKSettings.plist
launches the Xcode GUI, expands the DefaultProperties
branch, and changes the following entitlements_required and code_signing_required two properties toNO。
Note: You may encounter the system prompt "" sdksettings.plist "is locked for editing ...", this is because of the file read and Write permissions issue, the workaround is as follows:
First, modify the folder permissions, at which point our directory is IPHONEOS8.0.SDK, if the input instruction "CD." Return to the parent directory, "Ls-al" to view all the files, you will find the system display IPHONEOS8.0.SDK IPHONEOS.SDK, this means that IPHONEOS8.0.SDK is a shortcut to IPHONEOS.SDK, so the real folder we want to modify is IPHONEOS.SDK, and the instructions are as follows:
1 sudo chmod-r 777 IPHONEOS.SDK
Then, modify the Read and write permissions for all files in the folder:
1 sudo chmod 777 *
Now double hit Open SDKSettings.plist,
you will find that the properties can not be modified just now!
④ Edit another configuration file Info.plist
1 cd/applications/xcode.app/contents/developer/platforms/iphoneos.platform2 sudo cp info.plist INFO.PLIST.ORIG3 Open .
Double-click Open in the pop-up Finder window Info.plist
. Under DefaultProperties
branches, RuntimeRequirements
branches and OverrideProperties
branches, there are 3 places, all of which will be XCiPhoneOSCodeSignContext
modified XCCodeSignContext
.
Note: Same as step ③, you may encounter permissions problems, modify the permissions of the platforms folder and all files within the folder, as above.
5. Prepare a customized post-build script (this step needs to be done in a networked state)
1 sudo mkdir/applications/xcode.app/contents/developer/iphoneentitlements2 cd/applications/xcode.app/contents/ Developer/iphoneentitlements3 sudo curl-o http://www.alexwhittemore.com/iphone/gen_entitlements.txt4 sudo mv Gen_ Entitlements.txt gen_entitlements.py5 sudo chmod 777 gen_entitlements.py
6. Modify Project Settings
Note: Modify the configuration file, prepare the script, etc. before this stage, only need to do once. But the operation of this stage, for each need to debug the real machine to do the work once.
① Disabling the Xcode automatic signature operation
All of the Code signing options in the project configuration "Build Settings" are set to "T code sign".
② Adding a custom post-build script
In build phases, click the "+" sign in the upper-left corner to add a "New Run script Phase" and enter the following script:
1 Export codesign_allocate=/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/usr/ Bin/codesign_allocate2 if ["${platform_name}" = = "Iphoneos"] | | ["${platform_name}" = = "Ipados"]; then3/applications/xcode.app/contents/developer/iphoneentitlements/gen_entitlements.py "My.company.${PROJECT_ NAME} "${built_products_dir}/${wrapper_name}/${project_name}.xcent"; 4 codesign-f-S "IPhone Developer"-- Entitlements "${built_products_dir}/${wrapper_name}/${project_name}.xcent" "${built_products_dir}/${wrapper_name }/"5 fi
This configuration is all done!!! Even on your iphone/ipod/ipad, compile and run, see the real machine on the screen when the program ran up, 99 dollars will be saved!!!
Thanks to the great God paste http://kuangqi.me/ios/ios-development-without-idp/, provides the Xcode 5 + iOS 7 certificate-free (IDP) real-Time debugging and Generation IPA full raiders.
Xcode under the real machine debugging!