将Apache Cordova应用程序部署到iPad,而不使用Apple开发人员帐户 [英] Deploying Apache Cordova app to iPad without Apple developer account

查看:101
本文介绍了将Apache Cordova应用程序部署到iPad,而不使用Apple开发人员帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Visual Studio 2013 Pro和 Apache为朋友开发了应用程式后科尔多瓦扩展,我希望也得到它运行在iPad 3的速度与Android。然而,事情证明比原来想象的更复杂:对于一个苹果开发者帐户的99 $对于单个设备开发来说太高了(该应用程序只能在一个设备上工作,没有商业意图)。



至少我现在有能力使用Mac OSX和XCode,它通过网络连接到Visual Studio。在iOS模拟器中安装应用程序的工作正如预期,但我正在努力在iPad上部署它。我已经考虑jailbraking的设备,因为保修期已过,这不会是我的朋友的问题。根据信息,我发现它会可能< a>;



提前感谢。

最新的XCode版本(7 Beta 2)能够使用普通的AppleID而不是$ 100开发人员许可。



首先,您需要在Mac上准备vs-mda-remote节点插件,并且能够构建应用程序 [见这里怎么样] 。在Visual Studio中使用适当的部署目标,可以在虚拟化的iOS环境中测试该应用程序。



但是,部署选项当您尚未订阅Apple开发人员计划时,code>和本地设备都会失败。其他方法(此处在这里),要求越狱的设备也没有为我工作。 / p>

有趣的是,苹果似乎改变了他们的策略不太多时间前,最终允许在非根的iOS设备上签名和部署应用程序。



每当为iOS模拟器构建应用程序时,vs-mda-remote将创建一个位于〜/ remote-builds / builds中的全新构建文件夹(使用3 - 5位随机数命名)。在该构建文件夹中,您将需要找到一个打开XCode项目文件与XCode 7(示例路径:〜/ remote-builds / builds / 654 / cordovaApp / platforms / ios / YOUR_PROJECT_NAME.codeproj )。



连接并检测到您的iOS设备后,您应该可以选择它作为部署目标。然后,您应该按照这些说明,基本上只是添加一个应该用于签名应用程序的AppleID。这是不可能与早期的XCode版本,并且肯定比使用一种黑客类似的技术涉及越狱您的设备和几乎无效的保修。



最后,您只需要将代码签名身份设置为注册的AppleID(Project和Target),并准备好部署您的应用程序。 p>

此方法适用于我使用iOS 8.3和Mac OSX Yosemite 10.10.4。
如果有任何其他问题,请随时问。


After having developed an app for a friend using Visual Studio 2013 Pro with the Apache Cordova Extension, I hoped to also get it runnning on an iPad 3 as fast as with Android. However, things proved to be more complicated than originally thought: The 99$ for an Apple developer account would be far too high for a single device development (the app is intended to only work on one device, no commercial intentions).

At least I now have the ability to use Mac OSX and XCode, which is connected to Visual Studio via network. Installing the app in the iOS simulator works as expected, but I'm struggling with deploying it on the iPad. I already considered jailbraking the device, as the warranty is yet expired and it wouldn't be a problem for my friend. According to the Information I found it would be possible; however, I could not find much about how to do that.

Thanks in advance.

解决方案

After several months I finally found a working solution: The latest XCode version (7 Beta 2) is able to sign iOS applications using an ordinary AppleID instead of a $100 developer license.

First, you will need to prepare the vs-mda-remote node plugin on your Mac and be able to build applications [See here how]. Using an appropriate deployment target in Visual Studio, the app can be tested within a virtualized iOS environment.

However, the deployment options Remote Device and Local Device will both fail when you haven't subscribed to the Apple Developer Program. Other methods (described here or here) requiring jailbreaking the device haven't worked for me either.

Interestingly, Apple seems to have changed their strategy not much time ago , finally allowing to sign and deploy apps on non-rooted iOS devices.

Whenever an app is built for the iOS simulator, vs-mda-remote will create a whole new build folder (named using a 3 - 5 digit random number) located in ~/remote-builds/builds. Inside that build folder, you will need to find an open the XCode project file with XCode 7 (example path: ~/remote-builds/builds/654/cordovaApp/platforms/ios/YOUR_PROJECT_NAME.codeproj).

After having connected and detected your iOS device, you should be able to select it as deployment target. Then you should follow these instructions, basically just adding an AppleID which should be used to sign the app. This wasn't possible with earlier XCode versions and is certainly much easier than using one of the "hack"-like techniques involving jailbreaking your device and practically voiding it's warranty.

Finally, you will only need to set the Code Signing Identity to the registered AppleID (for both the Project and the Target) and you're ready to deploy your app.

This method worked for me using iOS 8.3 and Mac OSX Yosemite 10.10.4. If there are any other questions, please feel free to ask.

这篇关于将Apache Cordova应用程序部署到iPad,而不使用Apple开发人员帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆