1.GoTo /Applications then right click Xcode.app and click "Show Package Contents"
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,不过这并不影响我们接下来工作的进行
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,然后保存
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文件备份一份出来,以防万一。
拷贝文件进去的时候需要有个鉴定的步骤
5.Restart Xcode and open your runnable xcode project
右键拖进来的这个app,选择show in Finder,会看到一个.ipa的文件
2. You will also need to install AppSync in your iPhone via Cydia.
重启Xcode,然后打开project
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中是第一项)
7.Under Code Signing find Code Signing Identity and for both Debug and Release modesset Any iOS SDK to Don't Code Sign.
把Debug和Release下面的4个全部选成Don't Code Sign
To make an IPA:
Step 8:
In Xcode, goto Product and click Archive然后在Product下面点击Archive
Step 9:
Step7 will build you project and creat an Archive. After the completion of the process, new window Organize - Archive will be opened. In the list of this window you can see your project. Right click project and click Show in Finder which will reveal *.xcarchive file等待程序打包,因为是一个未签名的APP,所以Archive后会生成一个后缀为xcarchive的文件
Step 10:
Right click the *.xcarchive file and click Show Package Contents and goto Products =>Applications where you will see an app file with the name of your project<projectname>.app在列表中右键这个xcarchive文件,然后选择显示包内容,在products->Application下面就能看到一个文件夹,我得到的其实就是一个只有名字没有.app后缀的文件夹。但是在终端里面敲代码ls是能看到这个文件夹是有.app后缀的
Step11:
Open iTunes change view to Apps and drag the app file <projectname>.app into the iTunes.把这个文件拷贝出来放到任意一个地方,如果你想安装,就需要把他拖到iTunes里面的应用程序中,
Step12:
Right Click your app, click Show in Finder. There you will have you .ipa file.右键拖进来的这个app,选择show in Finder,会看到一个.ipa的文件
Important Notes :
1. In Step 8, if the Archive menu is disabled this is most likely because the a simulator option is currently selected as the run target in the Xcode toolbar. Changing this menu either to a connected device, or the generic iOS Device target option should enable the Archive option in Product menu.2. You will also need to install AppSync in your iPhone via Cydia.
上面的步骤都执行完之后,其实我们就完成了
-
Disable code signing in XCode.
-
Built unsigned iPhone app.