2

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.

Community
  • 1
  • 1
Tacticus
  • 561
  • 11
  • 24
  • yeah, it's possible with a jailbroken device, you have to generate a fake profile and the app will install, I suppose there are other ways, have you googled it? – jcesarmobile Apr 15 '15 at 11:08
  • Yes I googled it but only found [information](http://mhassan.me/2013/02/15/using-xcode-without-provisioning-profile/) about the jailbreak method, which can't be done with iOS 8.2 or 8.3, yet. It seems like I will need to wait until this becomes an option. Of course I will update the post then. However, feel free to post answers or comments if you can help. – Tacticus Apr 15 '15 at 12:19
  • If you can't jailbreak then I don't think you can install it without the developer account. – jcesarmobile Apr 15 '15 at 12:55
  • We don't recommend jail breaking and there is no official way to support this. If you want to test this, you can use Simulator. – Subhag Oak May 07 '15 at 20:24
  • I already tested the app using the iOS simulator in Mac OSX and XCode, but I need to deploy it on a single device, that's why purchasing a developer license wouldn't be worth it. At the moment, there is still no jailbreak available, gonna keep waiting. – Tacticus May 08 '15 at 11:30
  • An iOS jailbreak has finally become available; will begin testing in some days... – Tacticus Jun 25 '15 at 16:33

2 Answers2

5

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 and 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.

AlliterativeAlice
  • 11,841
  • 9
  • 52
  • 69
Tacticus
  • 561
  • 11
  • 24
  • 1
    I cannot upvote enough. This was the most helpful answer I found on stackoverflow. Thank you! Worked like a charm – Bart Calixto Jul 31 '15 at 13:51
0

in Visual Studio 2015 Community RC, there is an option to debug the app developed by cordova in 'remote device' (iPhone or ipad) connected to the Mac osx. Pls. try it.

Kenneth Li
  • 1,632
  • 1
  • 14
  • 19
  • I actually don't have the iPad anymore, but I will install the app on it and try what you suggested as soon as a jailbreak gets available. – Tacticus May 16 '15 at 16:58