Xcode 3.2.5免证书开发调试
来源:互联网 发布:prezi中文版下载 mac 编辑:程序博客网 时间:2024/05/24 00:58
Xcode 3.2.5免证书开发调试
Xcode编译遇到过 Code Sign error: a valid provisioning profile matching the application's Identifier 'com.yourcompany.xxxx' could not be found 吗?且往下看:
Xcode如果不破解,一方面无法真机调试, 也无法编译真机Release文件,只能付费开通Apple开发者账号,才能申请真机调试。而Xcode进行破解后,接合越狱的iPhone或iPad, 即可免官方证书开发调试了!目前测试对于最新的iOS 4.2 SDK/iOS 4.2.1 SDK的Xcode 3.2.5一样适用!当然,对iOS 3.2.2/iOS 4.1 SDK的Xcode 3.1.2同样保持兼容。
生成本机证书
应用程序->实用工具->钥匙串访问
菜单:钥匙串访问->证书助理->创建证书, 然后按以下图片顺序操作即可:
Xcode破解
保证Xcode处于关闭状态,命令行终端,复制粘贴下面的代码:
1
#!/bin/bash
2
cd /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneOS\ Build\ System\ Support.xcplugin/Contents/MacOS/
3
dd
if
=iPhoneOS\ Build\ System\ Support of=working bs=500
count
=255
4
printf "\x8f\x2a\x00\x00″ >> working
5
dd
if
=iPhoneOS\ Build\ System\ Support of=working bs=1 skip=127504 seek=127504
6
/bin/mv -n iPhoneOS\ Build\ System\ Support iPhoneOS\ Build\ System\ Support.original
7
/bin/mv working iPhoneOS\ Build\ System\ Support
8
chmod
a+x iPhoneOS\ Build\ System\ Support
然后复制粘贴下面的代码到命令行终端:
1
mkdir
/Developer/iphoneentitlements30
2
cd /Developer/iphoneentitlements30
3
curl -O http:
//www.alexwhittemore.com/iphone/gen_entitlements.txt
4
mv gen_entitlements.txt gen_entitlements.py
5
chmod
777 gen_entitlements.py
6
./gen_entitlements.py
执行完脚本后修改"/Developer/Platforms/iPhoneOS.platform/Info.plist"文件,做如下修改:
新增如下两项(告知项目编译无需证书):
1
PROVISIONING_PROFILE_ALLOWED = NO
2
PROVISIONING_PROFILE_REQUIRED = NO
然后将该文件中所有的"XCiPhoneOSCodeSignContext"替换为"XCCodeSignContext",即去掉中间的"iPhoneOS" 。如果不进行此步,编译Device Release版本时會报错:
1
Code Sign error: a valid provisioning profile matching the application
's Identifier '
com.yourcompany.xxxx' could not be found
打开Xcode,打开你的项目,Project->>Edit Project Setting,选择"Build"页面,Configurations和Show都选择All,找到Code Signing Identity项,删除其子项,并将"Code Signing Identity"赋值为"iPhone Developer"(其实是个选项)
然后找到你项目的xxx-Info.plist文件,添加"SignerIdentity"项,其值为"Apple iPhone OS Application Signing".保存。
Xcode破解完成,或者更准确的讲,是配置完成!
Xcode真机调试
将 iPhone接入电脑,在Xcode的Window->Organizer中会侦测到你的iPhone.查看iPhone和你的Xcode识别正常后退出Organizer,选择编译环境为"iPhone Device-4.2|Release",点击"Build and Go",期间会出现让我们选择签名证书,点选"允许"后,等待你的iPad/iPhone屏幕点亮就ok了。
你的程序会自动下载到你的iPhone中,可以进行真机调试了
Xcode升级破解
如果是在原Xcode的版本上升级到3.2.5,并且之前已经破解过,那么只需要再做如下步骤即可:
新增如下两项(告知项目编译无需证书):
1
PROVISIONING_PROFILE_ALLOWED = NO
2
PROVISIONING_PROFILE_REQUIRED = NO
然后将该文件中所有的"XCiPhoneOSCodeSignContext"替换为"XCCodeSignContext",即去掉中间的"iPhoneOS" 。如果不进行此步,编译Device Release版本时會报错:
1
Code Sign error: a valid provisioning profile matching the application
's Identifier '
com.yourcompany.xxxx' could not be found
- Xcode 3.2.5免证书开发调试
- Xcode 3.2.5免证书开发调试
- Xcode 3.2.5免证书开发调试
- Xcode 4 免证书开发调试 来源:Xcode 3.2.5免证书开发调试
- [开发环境] Xcode 3.2.5免证书开发调试
- Xcode免证书开发调试
- xcode免证书开发真机调试
- Xcode免证书调试
- Xcode免证书调试
- xcode免证书开发
- Xcode 5、Xcode 6 免证书真机调试
- Xcode 5、Xcode 6 免证书真机调试
- Xcode 5、Xcode 6 免证书真机调试
- Xcode 5、Xcode 6 免证书真机调试
- Xcode 5、Xcode 6 免证书真机调试
- Xcode 免证书开发调试(结合网上资料整理)
- [资源分享] (转载)Xcode 3.2.5免证书开发调试(经过本人测试xcode4.0使用)
- Xcode 4.1~4.6 + iOS 5、iOS 6免证书(iDP)开发+真机调试+生成IPA
- <设计模式沉思录>读后感
- AT91SAM9260定时器计数器模块(翻译)
- LM3845 DCDC application
- Linux那些事儿之我是EHCI(4) data structure of ehci driver and device
- Android应用开发学习笔记之列表选择框
- Xcode 3.2.5免证书开发调试
- ASP.NET MVC 入门介绍 (下)
- No input file specified
- Spring 3 MVC深入研究
- 《Visual C++ 2010入门教程》系列五:合理组织项目、使用外部工具让工作更有效
- 中小型企业如何选择服务器
- 黑马程序员-面向对象
- 网站商务通邀请代码总结
- 存储过程要注意的地方