在没有苹果开发者计划和任何证书的情况下,在实际设备上构建和部署iPhone应用程序。

3

Xcode 4.2.1 Lion

越狱的iPhone

主要问题是我在信用卡信息更新时找不到我的国家,因此可能无法购买99美元的程序会员资格。

但我仍想在真正的iPhone上尝试制作应用程序。

这里有一个链接:Test iOS app on device without apple developer program or jailbreak

WrightsCS 写道:

There's a way you can do this.

You will need ROOT access to edit the following file.

Navigation to /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk and open the file SDKSettings.plist.

In that file, expand DefaultProperties and change CODE_SIGNING_REQUIRED to NO, while you are there, you can also change ENTITLEMENTS_REQUIRED to NO also.

You will have to restart Xcode for the changes to take effect. Also, you must do this for every .sdk you want to be able to run on device.

Now, in your project settings, you can change Code Signing Identity to Don't Code Sign.

Your app should now build and install on your device successfully.

我已经完成了,但是出现了以下类型的错误。
Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain

我也阅读了这篇文章:如何从Xcode将iPhone应用程序部署到真实的iPhone设备?,其中rpetrich写道:

It sounds like the application isn't signed. Download ldid from Cydia and then use it like so: ldid -S /Applications/AccelerometerGraph.app/AccelerometerGraph

Also be sure that the binary is marked as executable: chmod +x /Applications/AccelerometerGraph.app/AccelerometerGraph

但这发生在2008年。当我开始寻找这个Idid和相关事项时,在评论中有帖子说,新软件不起作用。所以我甚至没有尝试过。

那么...

今天,有没有解决这个问题的方法?


1
这可能对你来说已经不再相关了,但为了跟进一些最近的发展,苹果在WWDC2015上宣布了使用Xcode 7进行免费设备配置。请查看此链接以获取详细信息 - https://developer.apple.com/library/prerelease/ios/documentation/IDEs/Conceptual/AppDistributionGuide/LaunchingYourApponDevices/LaunchingYourApponDevices.html#//apple_ref/doc/uid/TP40012582-CH27-SW3 - rajagp
2个回答

2
据我所知,唯一“合法”在设备上安装任何应用程序的方式是拥有开发者帐户。必须使用配置文件和开发者证书来签名应用程序以便安装到设备中。请注意,保留HTML标记。

0

您可以在越狱的手机上安装自签名或伪签名(使用ldid)的应用程序(否则无法)。请查看有关如何执行此操作的演示文稿,网址为http://www.priyaontech.com/download/12/


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接