xcode 如何在没有 Apple Developer 许可的情况下在 iPhone 上测试应用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14536603/
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 test an app on my iPhone without an Apple Developer license?
提问by duci9y
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.
之前已经多次回答过这个问题,但这些答案都与 iOS 6 不兼容。唯一提到 iOS 6 的答案使用了一个名为 Jailcoder 的工具,但它对我不起作用。
What I have tried:
我尝试过的:
- Create a fake code-sign certificate
- Modify SDKSettings.plist
- Used Jailcoder to patch Xcode as well as my project
- 创建伪造的代码签名证书
- 修改 SDKSettings.plist
- 使用 Jailcoder 修补 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,但我认为这没有区别。
回答by
- 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.
Use the
ldid
utility to fake codesign the binary:ldid -S ~/Projects/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).- Profit.
- 越狱您的设备(似乎您已经完成了这一步)。
- 在 Xcode 中构建应用程序。使用为 iOS 编译的二进制文件,而不是为模拟器编译的二进制文件。
使用该
ldid
实用程序来伪造二进制代码:ldid -S ~/Projects/Foo/Foo.app/Foo
将
.app
文件夹(应用程序包)复制到您的设备(例如,使用 SSH)。重新加载应用程序列表(重新启动 SpringBoard 或使用uicache
设备上的实用程序)。- 利润。
回答by Nexxurs
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.app 应用程序并按“引导补丁”或“快速补丁”。然后该应用程序将为您完成所有工作,您可以直接从 xcode 管理器中选择您的 iphone。在 iPhone 上你需要 cydia 调整 AppSync for iOS 5.0+