Xcode 5, Xcode 6 Certificate-free real machine debugging, xcode real machine
We all know that in iOS development, If You Want To debug a real machine, you need an apple developer account. Otherwise, Xcode will not be able to debug the real machine, but can only run on the simulator; this has brought a lot of problems. For example, you cannot use a simulator for iCloud programming. If you want to use the camera function, you cannot use a simulator. If you want to use the gyroscope function, you cannot use a simulator, that is to say, if it is closely related to the hardware, it cannot be used as a simulator. It can only be used as a real machine for development. However, the developer account of Apple takes 600 yuan a year. How big a number is for a poor person like me. Of course, you can also fund me. If you don't want to pay for the money, you can only crack Xcode. But if you want to publish an application on the App Store, you can only use the apple developer account!
My configuration: Mac OS X 10.9.5 (black apple, self-defeating...) iPhone 3GS 6.1.6 (borrowed...) Xcode 5.1.1 Xcode 6.0
Preparations:
1. A jailbroken device.
2. Add Source: http://apt.weiphone.com in the true machine Cydia for testing, download suitable for true
AppSync of the system version.
3. Create a certificate on your computer to sign the generated program.
Too much nonsense. Enter the topic:
I,Create Certificate
Just look at the picture.
Then click Continue, and then all will be done by default.
II,Modify Xcode configurations
1. Go to the iPhone SDK directory to modify
First, go to the application file, right-click Xcode. app (Xcode 2.app,
Operation:
Next, go to the relevant directory.
Double-click the iPhone os8.0.sdk (of course, in Xcode 5, it is the iPhone os7.0.sdk ).
Clip
Double-click to open it in Xcode by default. Remember to back it up! Modify the following two items:
After these operations are completed, return to the upper-level directory and perform the following operations.
Double-click to open it. Here, three modifications are required:DefaultProperties
Branch
Bottom,RuntimeRequirements
Branch bottom andOverrideProperties
Under the branch
XCiPhoneOSCodeSignContext
ModifyXCCodeSignContext
.
2. Modify the project configuration
This is the last step. Remember to repeat this operation for each project !!! There are two steps:
The script statement is as follows:
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocateif [ "${PLATFORM_NAME}" == "iphoneos" ] || [ "${PLATFORM_NAME}" == "ipados" ]; then/Applications/Xcode.app/Contents/Developer/iphoneentitlements/gen_entitlements.py "my.company.${PROJECT_NAME}" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent";codesign -f -s "iPhone Developer" --entitlements "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/"fi
So far, a cracked Xcode has come out and connected to your device for debugging. If an error is reported, remember
Restart the following Xcode. 600 oceans saved
If you have any questions, please refer to this article: The portal also thanked the author. If you have any questions, please advise.