iPhone 3.0免证书真机调试方法

本文详细介绍了如何通过编辑SDKSettings.plist文件,将CODE_SIGNING_REQUIRED设置为NO,来解决iOS应用代码签名的问题。此外,提供了一个bash脚本用于替换系统支持文件,并在项目设置中禁用代码签名。对于懒于手动操作的读者,还提供了预先制作好的脚本供下载使用。

1. Edit: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/SDKSettings.plist and change CODE_SIGNING_REQUIRED from YES to NO.

2. Run this script: 
#!/bin/bash
cd /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneOS/ Build/ System/ Support.xcplugin/Contents/MacOS/
dd if=iPhoneOS/ Build/ System/ Support of=working bs=500 count=255
printf "/x8f/x2a/x00/x00" >> working
dd if=iPhoneOS/ Build/ System/ Support of=working bs=1 skip=127504 seek=127504
/bin/mv -n iPhoneOS/ Build/ System/ Support iPhoneOS/ Build/ System/ Support.original
/bin/mv working iPhoneOS/ Build/ System/ Support
chmod a+x iPhoneOS/ Build/ System/ Support 
或者你懒的去执行,也可以下载这个文件(要解压下)    patch.sh.zip (1 K) 下载次数:97 放在用户根目录,执行
sudo sh ./patch.sh

3. In project settings set Code Signing Identity and Any iPhone OS Device to 'don't code sign.'

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值