Cydia and XCode Local App Testing

1. Go to /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/SDKSettings.plist and change CODE_SIGNING_REQUIRED to NO and save it. (if it complains about file permission right click the file and select Get Info and after unlocking the file, change the permission to read&write)

Plist File

Picture 12

2. In XCode open the info page and change Code Signing Identy to Don’t Code Sign.

Picture 13
3. In the terminal, set the environment variable  CODESIGN_ALLOCATE  as follows: (or you will get an error like this util/ldid.cpp(567): _assert(0:arch != NULL))
export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
Picture 14
4. Open Fugu and connect to your iphone (you can download FUGU from here)(you can find the IP address your iphone from Settings->Wi-fi->ConnectedWirelessName) (Username should be root and password should be alpine OR dottie) (open your iphone and don’t let it pass to stand-by mode during these phases)

Picture 15Picture 16
5. Go to root directory and from here go to Applications directory

Picture 17Picture 18Picture 19
6. In XCode, build your application, from Products folder, select Reveal in Finder

7. Upload the .app file to the Applications folder in your iPhone

8. Open a Terminal and connect to your iphone with ssh like (be  careful that iphone is not in stand-by mode)

root@192.168.1.5 and enter your password

Picture 20

9. First change the binary file permission of your application

chmod 755 /Applications/Appname.app/Appname

10. Then sign the app file with ldid

ldid -S /Applications/Appname.app/Appname

11. Restart the iphone, you are good to go

Note:
1. If ldid command can not be found, type apt-get install ldid OR aptitude install ldid
2. If apt-get can not be found install aptitude from Cydia

3.There are very useful pages on the net, so just google xcode and cydia, here is one of them http://thebigboss.org/hosting-repository/submit-your-app/compile-for-cydia-submission/

4. If you get an error like util/ldid.cpp(567): _assert(0:arch != NULL), there can be two possible reason for this, you either forget to export CODESIGN_ALLOCATE. The other possibility is that you build the application for the simulator. To fix this,  from XCOde change it to Device – 3.0  or sth similar :) . You should see it on the combo box top left top corner of XCode.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值