Install iOS Apps on device without developer program, iOS 5.1

烂漫一生 提交于 2019-11-28 04:34:42

I've had exactly the same problem as you, getting apps running on iOS 5.1 with Xcode 4.3.2 and I've just managed to get it working almost perfectly using this method here:

Building Apps for iOS 5.1 with Xcode 4.3.2

It's based on this one from iPhone Dev wiki, but I had to include some alterations - the -gta switch results in a build error, and the instructions aren't exactly explicit. The complete tutorial is in that blog post, but the steps basically are:

  1. Create self-signed certificate with name 'iPhone Developer'
  2. Turn 'Code Signing Identities' in Xcode project Build Settings back on - to use your self-signed certificate 'iPhone Developer'
  3. Change info.plist occurrences as stated
  4. Download ldid, make executable
  5. Create python script, stick it in /usr/bin, change python script references accordingly
  6. Change iPhoneCodeSign.xcspec to use ldid3.py
  7. Create tdmtanf file on device with touch over ssh
  8. Don't put -gta flags in 'Other Code Signing Flags'

I happen to use Unity for debugging so the lack of Xcode debugging with -gta didn't bother me - obviously Objective C developers will need this functionality, so hopefully someone can expand on this if they get it working. I'm currently playing with a dev build of my app on my iPhone on 5.1, and fingers cross you can get the same result.

I don't know if you resolve your problem but I had the same that you had. I'll explain how solve.

Require:

Xcode 4.3.2, iPhone with iOS 5.1.x, Mac.

All you need is auto sign your application. All steps that you did are corrects, so when you have your application builded from Xcode you need to sign it. Create a self certificate in keychain and then go in the folder (by terminal) where xcode compile the application, then write this:

mac$ platform=/Developer/Platforms/iPhoneOS.platform
mac$ allocate=${platform}/Developer/usr/bin/codesign_allocate
mac$ export CODESIGN_ALLOCATE=${allocate}
mac$ codesign -fs "Name" Program

where "Name" is the name of the certificate and Program is the name the Program.app (you must specify .app). The copy your app in /Applications by ssh or cyberduck or iTunes... Then respring and enjoy!

I was trying to do the same and had failed at a few points, then I found Moustafa Hassan's blog, which had the steps I successfully used.

It works fine testing with Xcode 4.6.3 on OS X 10.8.4 (on my Hackintosh) and iOS 6.1.2 on my iPad

That page contained step by step examples and pictures to do the job. It only takes about 15 minutes.

The only thing I can think of that is not listed on the page is how to access /usr/local/bin on your OS X device. That is easily done by showing hidden files in terminal[1].

[1]: defaults write com.apple.Finder AppleShowAllFiles YES

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!