无idp真机调试 环境 xcode4.5 ios6.12

,

1:ios设备越狱,很简单 登录 http://evasi0n.com/ 一步一步操作就好了

2:创建证书
打开 实用工具-钥匙串访问。然后在菜单栏里点击钥匙串访问-证书助理-创建证书来打开向导。
第一个步骤比较重要,必须要把名称命名为iPhone Developer,将类型设定为代码签名,将"让我覆盖这些默认值"选中。
之后的步骤无需更改,一路点击“确定”和“继续”完成

3:修改xcode配置文件

首先完全关闭xcode
(1)


cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk

使用文本编辑器
将以下两段中的YES改为NO


CODE_SIGNING_REQUIRED
YES


ENTITLEMENTS_REQUIRED
YES

修改前请备份

(2)
第二个配置文件


cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform

Info.plist
将全部的XCiPhoneOSCodeSignContext 修改成 XCCodeSignContext
有三处,分别在DefaultProperties分支下、RuntimeRequirements分支下和OverrideProperties分支下
修改前也请备份

注意这两个配置文件都没写权限,所在文件夹也没写权限,可以将文件复制到桌面,修改后在复制回去
在这个问题上被耽误很久

4:这部分应该是下载一个py脚本用于生成"假"证书


mkdir /Applications/Xcode.app/Contents/Developer/iphoneentitlements
cd /Applications/Xcode.app/Contents/Developer/iphoneentitlements
curl -O http://www.alexwhittemore.com/iphone/gen_entitlements.txt
mv gen_entitlements.txt gen_entitlements.py
chmod 777 gen_entitlements.py

5:修改项目配置
(1)将项目配置中所有的Code Signing选项全部设为Don't Code Sign
(2)在Build Phases中添加一个Phase,右下角的Add Build Phase,然后单击Add Run Script,输入以下脚本


export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
if [ "${PLATFORM_NAME}" == "iphoneos" ] || [ "${PLATFORM_NAME}" == "ipados" ]; then
/Applications/Xcode.app/Contents/Developer/iphoneentitlements/gen_entitlements.py "my.company.${PROJECT_NAME}" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent";
codesign -f -s "iPhone Developer" --entitlements "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/"
fi