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

查看:33
本文介绍了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(真的不想再次从 Apple 下载 4+GB).

  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 以部署到我越狱的 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 的警告.

EDIT I removed the warnings that I didn't didn't have the SDK by simply reverting to the backup file that sed generated.

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

EDIT 2 Should have played about a bit more before asking here I guess... I recreated another developer certificate and replace the relevant contents of the SDKSettings.plist with this:

            <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>

一切正常!但是,我无法调试,因为我找不到 Project >新建阶段 >新 XCode 布局中的新 Run Script Build Phase 选项.有人可以启发我吗?

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

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

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

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

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