Development and installation environment Mac OS, and WiFi, iPhone or iPod Touch that has been jailbroken (cracked.
The SCP mentioned below is the terminal command of Mac OS.
Ssh, ldid, and chmod are the command lines for iPhone terminals. They need to be installed, cydia, and other tools.
Follow the compilation instructions and an error message is displayed:
Codesign error: no certificate found in keychain for code signing identity'IPhoneDeveloper'
Next, we will skip the xcode signature check. open *. xodeproj is a file with the suffix (right-click to display the package content "show package contents"). Generally, three files are displayed and the project is opened in text mode. pbxproj file,
At this time, open the file named *. xcodeproj under the project file (right-click it, select Show package contents), and searchIPhone developer, Locate and delete the file. There are two parts in total, save the file, and re-enter xcode compilation to generate the app.Program. The generated result is under the build directory.
Copy the compiled release for device program to the iPhone
First enter the directory where MyApp. app is located, and then execute the following command
Siu-andrewde-MacBook: release-iphoneos siuandrew $ SCP-r MyApp. app root@192.168.0.2:/Applications
Prompt for Password
Root@192.168.0.2's password:
Then start copying.
After the copy is complete, log on to the iPhone again:
Siu-andrewde-MacBook: release-iphoneos siuandrew $ SSH root@192.168.0.2
Root@192.168.0.2's password:
Sign in and execute the signature
IPhone :~ Root # cd/Applications
IPhone:/applications root # ldid-s MyApp. APP/MyApp
The ldid step is very important. Note that-S should be capitalized and the signature should be completed patiently.
After the signature is complete, set the entire directory permission to 755.
IPhone:/applications root # chmod + x MyApp. app
This step is also required to set permissions, or use chmod-r 755 MyApp. app
The upload and signature are complete. If the iPhone has 91 shutdown assistant installed, log out and fix the icon. Otherwise, delete the installation. plist file on the iPhone.
IPhone :~ Root # rm/private/var/mobile/library/caches/COM. Apple. Mobile. Installation. plist
Then restart the phone to see the program icon.
Run your self-compiled app.
Come from: http://www.son1c.cn/show/177.html