开源的 App Store 游戏和应用 【截图】

xcode 免99美元证书真机运行程序

皮贝贝 posted @ 2010年9月22日 07:13 in iphone with tags iphone , 8683 阅读

    主要思路是这样的,iPhone 上运行的程序需要有签名。所以先用xcode生成一个不带签名的程序,然后自己用 ldid 来签署。这样OK 。  

 

 1. 设置xcode 的sdk配置信息:

sudo vi /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS[SDK版本].sdk/SDKSettings.plist

    sudo vi SDKSettings.plist
    将CODE_SIGNING_REQUIRED的对应值改为NO

2. 配置项目属性信息:

     ”Get Info”->”build” -> “Release” -> “Code Signing Identity”,设置为”Don’t Code Sign”

     项目的构建目标: ”iPhone Device – [SDK版本] | Release“

     至此,Build 后,会在相应目录下生成一个 app 目标。

3. 在mac上对app进行签名:

    这里用到的是 ldid, 可以通过获取源代码进行编译。

   

wget http://svn.telesphoreo.org/trunk/data/ldid/ldid-1.0.610.tgz
tar -zxf ldid-1.0.610.tgz
cd ldid-1.0.610

 

g++ -I . -o util/ldid{,.cpp} -x c util/{lookup2,sha1}.c
sudo cp util/ldid /bin/

     然后就可以通过 ldid 的 -S 选项来对我们的目标进行签名了,注意签名的是 app 目录下的主运行程序:

ldid -S [项目位置]/build/Release-iphoneos/HelloWorld.app/HelloWorld

4. 上传到 iPhone 上。

     你的机器是越狱过的,安装 openSSH 后, 可以通过 wifi 进行传输文件了。可以通过 ssh 传输,这里推荐一个 mac 比较好用的图形化 ftp 传输工具: ForkLift。 上传 app 到 /Applications/目录下就可以了。iPhone 上 killall SpringBoard 后就看到图标了。如果图标超过256 个,可以通过搜索来找到。

 

PS: 发现在越狱后的机器上,根本无需用ldid 来进行签名,用 toolchain 来对越狱机编程上传亦之。

参考:http://www.hiadmin.com/?p=1746

Avatar_small
Haryana 7th Model P 说:
2023年9月29日 19:07

Haryana 7th Important Question Paper 2024 for Hindi, English, Mathematics, Science, Social Science, These Practice Paper Importance for Those will attain the Upcoming Final Exam 2024. The best way to Download your Haryana Exam Preparation level is by Previous Question Paper.These Haryana Model Paper 2024 are Provided by the Board for the better Exam Preparation of Students and are Haryana 7th Model Paper 2024 also available in the official website, This Exam Paper Prepare by Senior Exports of Haryana Education Board,Haryana Model Paper 2024 help the Students to get a Clear idea about the Final Exam 2024.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter