Cordova iOS app - ios

I'm trying to create a Cordova app for learning purposes to deploy to my iPhone 5 for personal testing.
For the life of me however I can't seem to understand what I have to do. I have Xcode installed as all the tutorials have mentioned. How do I create a provisioning profile (with a free developer account)? How do I sign my device?
Nothing I've found online seems to explain in clearly, or for beginners such as myself.
Also, is there a way to create all of this but not use Xcode as my IDE for developing my app?

You don't need to use XCode to develop your Cordova app, as the app is just CSS, JavaScript, and HTML. I like to use WebStorm, but you can use whatever suits you. However, in order to deploy your app to a device, you do need XCode. Here's a link to an answer for a similar question. This is in regards to XCode 7 and I'm not sure what version you have, or if this still holds for XCode 8.
You only deploy after you do a build for iOS with Cordova, by running $ cordova build. Here is a link to Cordova's docs.

Related

Images are not showing only in iOS simulator

This is a high-level question so some general guidance will be helpful here.
I am developing an app using react native and firebase. I have a web version, and am developing a react native app and testing it using iOS simulator.
From yesterday, iOS simulator won't show any image for my app, while the images all show up properly on my web/mobile web versions.
Any potential reasons why this might be happening? New to app development and am very confused, especially because until yesterday all the images were loaded on iOS simulator as well without any problem.
Any idea? Thanks!
is the simulator iOS 14 and your RN version is below 63? if yes this is a known issue you can use a patch package in RN issues in GitHub that fixes this or use react-native-fast-image. I personally use fastImage because it has a lot of benefits.

Can I test Swift applications on my iPhone with Xcode 6.4 and no developer license?

I'm seeing mixed answers about this from several blogs. I've heard this feature is only available when Xcode 7 comes out in the fall, but similarly some people say you can test on your own device right now. If possible, any links to good tutorials would be greatly appreciated.
Turns out this feature will be available for Xcode 7 and is not currently an option.
Free Provisioning
Develop on your own device. Part of being successful
at debugging and testing is being able to run your app on a physical
device. You’ve always been able to build and run on Simulator in the
past, but running on a device required a complex set of steps to allow
you to install and run your app. With Xcode 7, all you need is an
Apple ID and you can develop and test on any device.
See Launching Your App on Devices in App Distribution Guide for detailed
information about installing and running on devices.
From What's New in Xcode - New Features in Xcode 7

Test Qt app in ios Device

i've developped an application using QtQuick, it's running great on Android and ios simulator. now i want to test it in iPhone or ios real device.
So do i need to pay for that, or there is a way to test it for free.
In the build file for iosSimulator there a file with the app in the folder "Release-iphonesimulator", will this file work on the device ?
Recently, Xcode 7 beta 4 was released and one of the main features is that you no longer need to pay for deploying to your own device, all you need is your simple apple account.
After you do all the "Configure Device for Development in Xcode" stuff
Using Qt 5.5 (the newest) build your project and before trying to deploy it to your device, go to the place where the build for iphone is, and open it with Xcode 7 beta 4 (the .xcodeproj) and try to run it, it will fail and will ask you if you want to fix the project, say yes and again it will fail but no problem, now go to Qt and you should be able to deploy the app to your iphone. This worked for me!

Deploying Apache Cordova app to iPad without Apple developer account

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

Resource for steps to put app onto physical iOS device

I have a PhoneGap application which works in the Xcode simulator. I also am in the Apple Developer Program so I can do code signing to run apps on actual devices.
However, I am having a hard time finding a good resource to walk me through the exact steps to get the app on my physical iPhone/iPad. I have found other guides which are either for Xcode 3, or they show how to get PhoneGap working in the emulator but not how to get on an actual device, or they are presumably using a different version of Xcode 4 because they reference different commands than I have.
If you have successfully deployed an application from Xcode 4 onto an iOS device, could you please post a link to steps that you used or refer a book that has that information? I appreciate any help that anyone can give on the subject. Thanks!
[Edit: Though I am using PhoneGap, the steps to deploy from Xcode to iOS device are AFAIK the same.]
[Edit to add more detail:
I have my project made and it runs on iPhone 4 simulator and iPad 4 simulator.
I also can plug in my iPad (already went through the assistant to get it provisioned), select it in the scheme list box, click the Run button and it will launch as expected on the iPad. Does this mean that I have the code signing part working at least?
So far so good. Now I want to make a build so that I can distribute to people to test the app on their devices (I have their UDIDs already). When I get to the "Publishing Your Application for Distribution" section of the iOS Development Guide in the iOS Developer Library, I get stuck in the Archiving Your Application for Testing section. I am having trouble finding the Code Signing Identity build setting. It also looks like they have changed the menus around because they refer to a Build > Build and Archive menu item that doesn't exist anymore. I tried Product > Build for > Build For Archiving which seems like the closest option and the build actually succeeds but in the Organizer > Archives tab there are no archives.
Sorry that I do not have more specific information about where the process is breaking down for me but I'm new to the Xcode environment. I can typically figure these things out on my own as long as there is documentation somewhere but I have not been able to find any that match my build of Xcode. Thanks!]
[Edit again: After doing more research I ended up following the suggestion of others and did a complete uninstall/reinstall of Xcode which ended up resolving the issue albeit in a rather heavy handed way.]
You'll want to check out Apple's Documentation, for sure:
iOS Development Guide: Managing Devices and Digital Identities
iOS Development Guide: Building and Running Applications
They have a complete walkthrough of provisioning, building, and deploying your application to a device.
The Xcode Organizer makes it fairly straight forward and painless now... but there are still some sticking points, and reading the documentation will give you a full overview of exactly what's going on in the process.
Contrary to apple advise, setting Skip Install (Build Setting) to NO fixed this. Using phone gap here.
Archives not showing up in Organizer for XCode 4
Once you have your Apple Developer Account Credentials, You can follow gist I have created:
Apple's Code Signing Process

Resources