This question already has an answer here:
这个问题已经有了答案:
- How can I deploy an iPhone application from Xcode to a real iPhone device? 12 answers
- 如何将iPhone应用程序从Xcode部署到真正的iPhone设备上?12个答案
This has been answered many times before, but none of those answers are compatible with iOS 6. The only answers that mention iOS 6 use a tool called Jailcoder, which isn't working for me.
这在以前已经被回答过很多次了,但是这些答案都不符合ios6。唯一的答案是,iOS 6使用了一种叫做“狱卒”的工具,它对我不起作用。
What I have tried:
我已经尝试:
- Create a fake code-sign certificate
- 创建一个伪代码签名证书。
- Modify SDKSettings.plist
- 修改SDKSettings.plist
- Used Jailcoder to patch Xcode as well as my project
- 使用狱卒修补Xcode和我的项目。
I am using Xcode 4.5.1 and iOS 6.0.1. Note that Xcode 4.5.1 doesn't have an SDK specific for 6.0.1, but I don't think that makes a difference.
我使用的是Xcode 4.5.1和iOS 6.0.1。请注意,Xcode 4.5.1没有特定于6.0.1的SDK,但我不认为这有什么不同。
2 个解决方案
#1
7
- Jailbreak your device (seems you have already done this step).
- 越狱你的设备(似乎你已经完成了这一步)。
- Build the app in Xcode. Take the binary which is compiled for iOS, not the one for the simulator.
- 在Xcode中构建应用程序。使用为iOS编译的二进制文件,而不是模拟器的二进制文件。
-
Use the
ldid
utility to fake codesign the binary:使用ldid工具来伪造codesign的二进制代码:
ldid -S ~/Projects/Foo/Foo.app/Foo
ldid - s ~ /项目/ Foo / Foo.app / Foo
-
Copy the
.app
folder (the application bundle) to your device (for example, using SSH). Reload the list of apps (either restart SpringBoard or use theuicache
utility on the device).将.app文件夹(应用程序包)复制到您的设备(例如,使用SSH)。重新加载应用程序列表(重新启动SpringBoard或者在设备上使用uicache实用程序)。
- Profit.
- 利润。
#2
0
there is a better and easier way to do this. Download the Jailcoder.app App and press "guided patch" or "quick patch". Then the app will do all work for you and you can directly choose your iphone from the xcode organizer. On the iPhone you need the cydia tweak AppSync for iOS 5.0+
有一个更好更简单的方法。下载Jailcoder。应用程序和按“引导补丁”或“快速补丁”。然后应用程序将为你做所有的工作,你可以直接从xcode的组织者选择你的iphone。在iPhone上,你需要为ios5.0 +调整AppSync。
#1
7
- Jailbreak your device (seems you have already done this step).
- 越狱你的设备(似乎你已经完成了这一步)。
- Build the app in Xcode. Take the binary which is compiled for iOS, not the one for the simulator.
- 在Xcode中构建应用程序。使用为iOS编译的二进制文件,而不是模拟器的二进制文件。
-
Use the
ldid
utility to fake codesign the binary:使用ldid工具来伪造codesign的二进制代码:
ldid -S ~/Projects/Foo/Foo.app/Foo
ldid - s ~ /项目/ Foo / Foo.app / Foo
-
Copy the
.app
folder (the application bundle) to your device (for example, using SSH). Reload the list of apps (either restart SpringBoard or use theuicache
utility on the device).将.app文件夹(应用程序包)复制到您的设备(例如,使用SSH)。重新加载应用程序列表(重新启动SpringBoard或者在设备上使用uicache实用程序)。
- Profit.
- 利润。
#2
0
there is a better and easier way to do this. Download the Jailcoder.app App and press "guided patch" or "quick patch". Then the app will do all work for you and you can directly choose your iphone from the xcode organizer. On the iPhone you need the cydia tweak AppSync for iOS 5.0+
有一个更好更简单的方法。下载Jailcoder。应用程序和按“引导补丁”或“快速补丁”。然后应用程序将为你做所有的工作,你可以直接从xcode的组织者选择你的iphone。在iPhone上,你需要为ios5.0 +调整AppSync。