Recently turned to develop, really a long time no update blog, today to write an article.
Today is the IOS 7 Xcode 5 free IDP certificate for real-computer debugging. Plainly, is poor, do not want to give apples to pay the price.
Note: While you can use this method for real-machine debugging, you can't publish apps to the Apple Store, and second to notification, which requires Apple to download the certificate. Second you debug equipment must jailbreak, do not jailbreak debugging, fortunately IOS7 jailbreak a few days ago has come out.
First, the environment:
Os X 10.8.5, Xcode 5.0.2 (I'm a poor, used virtual machine), device iphone 4, IOS 7.0.4 came out of the evasi0n7 jailbreak a few days ago, and also failed to brush into a white apple once, everyone's own careful oh. There are equipment jailbreak after use Cydia install AppSync, the specific method of Google (you can try to escape from Pangu )
Second, the device jailbreak. Slightly, Google remembersLoading Appsync。 Three, crack Xcode.
1. Forged Signature Certificate:
This step is the simplest step in the whole process, follow the figure below to do it.
Note: The name must be filled out on iPhone Developer Note case and space, and secondly if you have an Apple develop certificate, such as a company or other team, it is recommended that you first export them in keychain access and then delete them. To avoid unnecessary effects.
2. Modify the Xcode configuration file.
Attention:
In the following modification if there is a permission problem can be copied one copy, modified after the copy back.
Right-click with Xcode to open the file you want to modify and edit it. Some people on the Internet are using VI to edit, but I use VI edit garbled.
It is best to back up each file before editing it to avoid surprises.
1) Modify the Sdksettings.plist file
/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos7.0.sdk/
Open the sdksettings.plist file under this directory to change the value of code_signing_required and entitlements_required to NO
2) Modify the Info.plist file
/applications/xcode.app/contents/developer/platforms/iphoneos.platform/
Open the Info.plist file under this directory, right-click on--add Row and add two items:
provisioning_profile_allowed value is NO
provisioning_profile_required value is NO
3) Replace the "Xciphoneoscodesigncontext" in the above Info.plist file with "Xccodesigncontext" (total 3 places)
OK to this to configure the file is changed, plainly changed two configuration files, this has my modified configuration file, if your system environment and I can directly download the overlay, but I suggest you modify it yourself. info.plist sdksettings.plist
3. Set the gen_entitlements.py script
This script will be called every time you build the app, the main role is to generate a signature of the entitlements file, in the back of the signature will be used.
Execute the following command in the command terminal, and I will explain after each command that if your environment executes a command that fails, you can do it yourself.
Mkdir/applications/xcode.app/contents/developer/iphoneentitlements
Create a directory named Iphoneentitlements under the/applications/xcode.app/contents/developer/directory
Cd/applications/xcode.app/contents/developer/iphoneentitlements
Go to the Iphoneentitlements directory you just created
Curl-o Http://www.bobzy.cn/xcode /gen_entitlements.txt
Download This file to the Iphoneentitlements directory
MV Gen_entitlements.txt gen_entitlements.py
Rename the file you just downloaded, named gen_entitlements.py
sudo chmod 777 gen_entitlements.py
Modify the permissions of this file, plus any person executable (this may require you to enter the System account password)
4. Modify the project properties (each time a new project is executed)
1) Click on the Targets item icon to find "code Signing" under "buildsettings" and change its value to "T code sign"
2) Click the Project item icon to find "Code Signing" under "buildsettings" and change its value to "IPhone Developer"
3) Click the Targets project icon, switch to the build Phases option, click Editor–add Build phase–add Run script build Phase, and enter the following script:
Export codesign_allocate=/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/usr/ Bin/codesign_allocate
if ["${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
Note My.company.${project_name} is best to replace the bundle Identifier with your app to avoid unnecessary hassles.
Note that the code codesign behind s,f one of the preceding-symbol, entitlements front is two--symbol
Click here to download this code and copy it directly.
5. Connecting the device
Click Windows–organizer, then select your device, in the right window, tap "Use for development", at this time your device name should be displayed next to the yellow light, reseat the data cable, organizer a progress bar appears, When this progress bar runs out, the light will turn green and the development mode is enabled.
Select your device to run.
Four, common mistakes
1. "Code Signing" under "buildsettings" option, cannot select "IPhone Developer", can only select IOS Developer or Mac Developer, reboot Xcode or reboot the system, The newly created certificate may not be well recognized.
2. Build error/bin/sh failed with exit code 2, Run script Build Phase scripts have a problem, check the script paste when there are no more space or less space. Can be added in front of fi
Echo ${built_products_dir}/${wrapper_name}/${project_name}.xcent; To output the path of the xcent file, then go to this path to see if there is no such file, if not please check whether gen_entitlements.py is true.
Manually perform the following command in the terminal note replace ${built_products_dir}/${wrapper_name}/${project_name}.xcent to see if the. xcent file was generated.
/applications/xcode.app/contents/developer/iphoneentitlements/gen_entitlements.py "My.company.${PROJECT_NAME}" " ${built_products_dir}/${wrapper_name}/${project_name}.xcent ";
If this file is still maintained check Codesign command can be executed manually, note the location of parameters such as –s–f.
3. Can compile, but run will be a failed to get the task for process * * * * * * * * * * * * * * *, the app on the device to flash back, on Xcode can not debug, please check
The "Code Signing" under the "buildsettings" option under TARGETS and project is configured correctly.
4.Please Verify that your device's clock is the properly set, and that your signing certificate are not expired. This error check if the device is jailbroken and the jailbreak device has version Appsync 7 installed.
Reprinted from:http://bobzy.blog.51cto.com/2109336/1346061
IOS 7 Xcode 5 free IDP Certificate true Machine Debug (reprint)