Xcode4.4免证书调试
一 iPhone/iPad越狱
1 越狱
2 安装同步软件:
Cydia->软件源->编辑->添加->http://cydia.hackulo.us/->AppSync for iOS 5.0+
二 xcode破解
1 建立证书
钥匙串访问->证书助理->创建证书
1>名称:iPhone Developer,
身份类型:自签名根证书,
证书类型:代码签名,
让我覆盖这些默认值:选中
2>一路next下去
3>证书信息:电子邮件:[email protected]
4>一路next下去
5>主题备用名称扩展:此扩展是至关重要的:选中,
rfc822Name:[email protected]
6>一路next下去
7>完成。
2 建立执行:gen_entitlements.py
内容来源:http://www.alexwhittemore.com/iphone/gen_entitlements.txt
具体内容:
#!/usr/bin/env python import sys import struct if len(sys.argv) != 3: print "Usage: %s appname dest_file.xcent" % sys.argv[0] sys.exit(-1) APPNAME = sys.argv[1] DEST = sys.argv[2] if not DEST.endswith('.xml') and not DEST.endswith('.xcent'): print "Dest must be .xml (for ldid) or .xcent (for codesign)" sys.exit(-1) entitlements = """ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>application-identifier</key> <string>%s</string> <key>get-task-allow</key> <true/> </dict> </plist> """ % APPNAME f = open(DEST,'w') if DEST.endswith('.xcent'): f.write("\xfa\xde\x71\x71") f.write(struct.pack('>L', len(entitlements) + 8)) f.write(entitlements) f.close()文件所在目录:
/Applications/Xcode.app/Contents/Developer/iphoneentitlements404/
执行的命令:
chmod 777 gen_entitlements.py
./ gen_entitlements.py
3 修改Info.plist文件
文件所在目录:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/
3.1 将所有XCiPhoneOSCodeSignContext替换XCCodeSignContext
3.2 增加两项:
<key>SDKROOT</key> <string>iphoneos5.1</string> <key> PROVISIONING_PROFILE_ALLOWED </key> <string>NO</string> <key> PROVISIONING_PROFILE_REQUIRED </key> <string> NO </string>4 xcode配置
关键字:Entitlements.plist
<plist version="1.0"> <dict> <key>get-task-allow</key> <true/> </dict> </plist>