xcode 在没有苹果开发者程序和任何证书的真实设备上构建和部署 Iphone 应用程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8655036/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 22:50:38  来源:igfitidea点击:

Building and deploying Iphone App on a real device without apple developer program and any certificates

iphoneiosxcode

提问by David

Xcode 4.2.1 Lion

Xcode 4.2.1 狮子

Jailbraked Iphone

越狱的iPhone

Main problem is that I cannot find my country in the list of countryies while updating my credit cards info. Thus probably I cannot buy that 99$ program membership.

主要问题是我在更新信用卡信息时无法在国家/地区列表中找到我的国家/地区。因此,我可能无法购买 99 美元的计划会员资格。

But I want to make the app anyway, at list to try , on a real iphone.

但无论如何,我想在真正的 iphone 上制作应用程序,在列表中尝试。

Here Test iOS app on device without apple developer program or jailbreak

这里 在没有苹果开发者程序或越狱的设备上测试 iOS 应用

WrightsCS Writes this

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.

I've done it but get error of the following type

我已经完成了,但出现以下类型的错误

Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain

/ / / / /

// / / /

I've also read about this How can I deploy an iPhone application from Xcode to a real iPhone device?Where rpetrich writes

我还阅读了有关 如何将 iPhone 应用程序从 Xcode 部署到真实 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

But it was in 2008. And when I started to look for this Idid and things, in comments there where posts that with new soft it doesn't work. So I even didn't try it.

但那是在 2008 年。当我开始寻找这个 Idid 和其他东西时,在那里的评论中,用新软件发布它不起作用。所以我什至没有尝试。

SO....

所以....

Today. Is there any way out of this problem ?

今天。有没有办法解决这个问题?

回答by tg2007

As far as I know the only way to "legitimately" install any apps on a device is to have a developer account. Provisioning profiles and your developer certificate must be used to sign the app in order to install to the device.

据我所知,在设备上“合法”安装任何应用程序的唯一方法是拥有一个开发者帐户。必须使用配置文件和您的开发人员证书对应用程序进行签名才能安装到设备上。

回答by rajagp

You can install self-signed or pseudo signed (with ldid) apps on a jailbroken phone (Not otherwise). Check out the presentation on how this can be done at http://www.priyaontech.com/download/12/

您可以在越狱的手机上安装自签名或伪签名(使用 ldid)应用程序(不是其他情况)。在http://www.priyaontech.com/download/12/查看有关如何完成此操作的演示文稿