Xcode 4和越狱iPhone [英] Xcode 4 and jailbroken iPhone

查看:146
本文介绍了Xcode 4和越狱iPhone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚购买了Xcode 4,并且正在尝试开发我的应用程序。我目前没有开发人员许可证(并且在我准备提交到应用程序商店之前不想要一个)所以我已经越狱了我的设备并安装了appsync。

I've just purchased Xcode 4 and am trying to develop my apps in it. I don't currently have a developers license however (and don't want one until I am ready to submit to the app store) so I have jailbroken my device and installed appsync.

按照建议的步骤在这个帖子中,不仅我不能部署到我的iPhone,而且现在我为iPhoneOS创建的任何项目,我收到警告;

After following the steps suggested in this thread, not only can I not deploy to my iPhone, but now any project I create for iPhoneOS, I get the warning;

Target Integrity
Missing SDK in target XXXXX: iphoneos

我不太了解 sed ,知道在我试图让它工作的步骤中发生了什么,所以我的问题确实有两个部分:

I don't know enough about sed to know what went on during the steps when I was trying to get it work so my question has two parts really:


  1. 如何将Xcode恢复到以前的状态,以便我可以使用iOS SDK(真的不想从下载4 + GB Apple再次)。

  1. How do I restore Xcode to its previous state so I can use the iOS SDK (Really don't want to have to download 4+GB from Apple again).

如何配置Xcode 4 以部署到我的ja ilbroken iPhone进行测试。 (我之前应该提到我在Xcode 3.2中使用了一切,我已经尝试删除并重新创建自签名证书作为iPhone开发人员)。

How do I configure Xcode 4 to deploy to my jailbroken iPhone for testing. ( I should have previously mentioned that I had everything working in Xcode 3.2 an I have already tried deleted and recreating the self signed certificate as iPhone Developer).

编辑
我通过简单地恢复到 sed的备份文件删除了我没有使用SDK的警告已生成。

编辑2
在我问这里之前,应该多玩一点。 ..我重新创建了另一个开发人员证书,并用以下内容替换 SDKSettings.plist 的相关内容:

            <key>AD_HOC_CODE_SIGNING_ALLOWED</key>
            <string>YES</string>
            <key>CODE_SIGNING_REQUIRED</key>
            <string>NO</string>
            <key>CODE_SIGN_ENTITLEMENTS</key>
            <string></string>
            <key>DEAD_CODE_STRIPPING</key>
            <string>YES</string>
            <key>ENTITLEMENTS_REQUIRED</key>
            <string>NO</string>

一切正常!但是,我无法调试,因为我找不到项目>新建阶段>新XCode布局中的新运行脚本构建阶段选项。有人可以开导我吗?

And it all works! However, I am unable to debug as I can't find the Project > New Build Phase > New Run Script Build Phase option in the new XCode layout. Could someone enlighten me?

推荐答案

从我在这个回复,我想你跟着,提出的步骤是清理并每次备份原始文件。因此,对于您的第一个问题,只需恢复原始文件:

From what i see in this reply, which I guess you followed, the steps proposed are clean and each time backuping original files. So for your first question, just restore original files :


  • /Developer/Platforms/iPhoneOS.platform/Info。 plist.bak

  • /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/SDKSettings.plist。 bak

  • /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneOS Build\ System Support .xcplugin / Contents / MacOS / iPhoneOS Build System Support.original

  • /Developer/Platforms/iPhoneOS.platform/Info.plist.bak
  • /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/SDKSettings.plist.bak
  • /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneOS Build\ System Support.xcplugin/Contents/MacOS/iPhoneOS Build System Support.original

EDIT :现在在项目首选项中运行构建阶段:

EDIT : Run build phase is now there, in project preferences :

这篇关于Xcode 4和越狱iPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆