最近在研究越狱下的iOS开发,经过stackOverFlow上大神以及Google的帮助,总算有了个初步的了解,虽然截止到目前还没有完全成功,ldid工具会报错,但是还是把流程记录下来。
stackOverflow上的帖子在这里:http://stackoverflow.com/questions/12768109/how-to-use-ldid
帖子的提问者先讲了一个大致的步骤:
-
Disable code signing in XCode.
-
Built unsigned iPhone app.
-
Copied it to my iPhone via SSH to location /User/me/development/HelloWorld.app
-
Now I try to simulate its signing to run this application on iPhone. I run follwing commands:
我们一步一步来看:
首先取消Xcode的签名,然后build一个没有签名的APP。好了,来看另一篇文章,很详细地讲解了如何取消XCode的签名然后build一个app文件出来 。
Step 1:
GoTo /Applications then right click Xcode.app and click "Show Package Contents"
在“应用程序”中找到Xcode,然后右键,选择“显示包内容”
Step 2:
GoTo Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/
and copy the file SDKSettings.plist to desktop
按照上面的路径,进入7.0的sdk里面。当然,如果你已经升级xcode为6.0+,那么SDKs文件夹下的sdk会变成8.0,不过这并不影响我们接下来工作的进行
Step 3:
Open the file copied SDKSettings.plist. Under <DefaultProperties> ==> <dict>
find <CODE_SIGNING_REQUIRED> and change its value from YES to NO. Save the file
将SDKSettings.plist 文件拷贝出来,然后修改DefauldProperties下面的CODE_SIGNING_REQUIRED 值从YES到NO,然后保存
Step 4:
Copy this modified SDKSettings.plist file back to
Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/
replacing the orginal file [YOU MAY SAVE THE ORIGINAL FILE AS BACKUP]
Do the required AUTHENTICATION AS REQUIRED
把保存好的plist文件覆盖到原目录下,最好把原来的plist文件备份一份出来,以防万一。
拷贝文件进去的时候需要有个鉴定的步骤
Step 5:
Restart Xcode and open your runnable xcode project
重启Xcode,然后打开project
Step 6:
In Project Navigator select your project and open Build Settings section of your porject and Select All sub-heading.
在Build Settings下面找到 Code Signing (XCode6中是第一项)