xcode 如何在越狱的 iPad 上构建应用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3553566/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I build apps to my jailbroken iPad?
提问by Thomas
I have XCode 3.2.2 and am trying to build an app to my jailbroken iPad. I have followed the tutorial to Fake Code Sign Apps hereon Multi-Touch forums. On the iPad, I installed AppSync. Still, when I tried to build my app, I got
我有 XCode 3.2.2 并且正在尝试为我的越狱 iPad 构建一个应用程序。我按照教程假冒注册代码应用在这里上的Multi-Touch论坛。在 iPad 上,我安装了AppSync。尽管如此,当我尝试构建我的应用程序时,我得到了
Error Starting Executable
No provisioned iPhone OS device is connected.
I think next, I'll try Cydia'stutorial....which probably woulda made sense to do first anyway. I'll post progress here. But in the meanwhile, any suggestions are welcome.
我想接下来,我会尝试Cydia 的教程....无论如何首先这样做可能是有意义的。我会在这里发布进度。但与此同时,欢迎任何建议。
Thanks!
Thomas
谢谢!
托马斯
采纳答案by Thomas
OK so clearly, I'm just an idiot. I'm using XCode 3.2.2, which only supports iPad 3.2. My iPad has 3.2.1 installed. Updating my XCode will probably fix this (non) issue lol.
好吧,这么清楚,我只是个白痴。我使用的是 XCode 3.2.2,它只支持 iPad 3.2。我的 iPad 安装了 3.2.1。更新我的 XCode 可能会解决这个(非)问题,哈哈。
There are three ways to do this:
有三种方法可以做到这一点:
- Self-Signing (from Xcode)
- Pseudo-Signing (from device)
- Disable Signing
- 自签名(来自 Xcode)
- 伪签名(来自设备)
- 禁用签名
All are detailed and explained hereon Saurik's site.
所有详细,说明这里对Saurik公司的网站。
I went with self-signing. Here's the process for those interested.
我选择了自签名。以下是感兴趣的人的过程。
Self-Signing
自签名
- Edit Info.plistfile
- Located at
/Developer/Platforms/iPhoneOS.platform/
. - Find three occurrences of "XCiPhoneOSCodeSignContext" and replace with "XCCodeSignContext"
- Located at
- Create certificate.
- Open Keychain Access >> Click Keychain Access >> Certificate Assistant >> Create a Certificate
- give it any name
- Self-signed Root
- Change type to "Code Signing"
- Check "Override defaults"
- Click "Continue" until done
- Build the appin Xcode.
- Edit Project Settings >> Set "Code Signing Identity" to the name of the certificate you just created.
- Select the device you want to build to from the dropdown menu (not simulator)
- Cmd + B to build
- Copy to Device
- Get the .app file from the build directory (
/build/Debug-iphoneos/AppName.app
) - SSH the file over to
/Applications
directory on the device - Respring/ reboot
- Get the .app file from the build directory (
- 编辑 Info.plist文件
- 位于
/Developer/Platforms/iPhoneOS.platform/
。 - 找到三个出现的“XCiPhoneOSCodeSignContext”并替换为“XCCodeSignContext”
- 位于
- 创建证书。
- 打开钥匙串访问>>点击钥匙串访问>>证书助手>>创建证书
- 给它任何名字
- 自签名根
- 将类型更改为“代码签名”
- 选中“覆盖默认值”
- 点击“继续”直到完成
- 在 Xcode 中构建应用程序。
- 编辑项目设置 >> 将“代码签名身份”设置为您刚刚创建的证书的名称。
- 从下拉菜单中选择要构建的设备(不是模拟器)
- Cmd + B 构建
- 复制到设备
- 从构建目录 (
/build/Debug-iphoneos/AppName.app
) 中获取 .app 文件 - 将文件通过 SSH 传输到
/Applications
设备上的目录 - 重启/重启
- 从构建目录 (
回答by Jared Pochtar
In xcode's menu bar, go to windows->organizer. I don't remember exactly what it looks like, but once you plug in an ios device (aka the iPad) it should appear under devices on the left hand side. Click on it, and it will take you to a screen with 2 or so buttons on it, one of which will be 'use for development', or something like that. Clicking this will provision the iPad for development, and everything should work fine after that. Repeat for all other ipads/phones/touches.
在 xcode 的菜单栏中,转到 windows->organizer。我不记得它到底是什么样子了,但是一旦你插入一个 ios 设备(又名 iPad),它应该会出现在左侧的设备下。点击它,它会带你到一个屏幕,上面有 2 个左右的按钮,其中一个是“用于开发”,或者类似的东西。单击此按钮将配置 iPad 进行开发,之后一切都应该正常工作。对所有其他 ipad/手机/触摸重复此操作。