Test Qt app in ios Device - ios

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!

Related

Test iOS app without xcode project

I'm sorry if this may seem a stupid question, but so far I have only developed Android apps and have no knowledge of iOS development.
I'm working for a company that wants me to test their Android and iOS app which are developed by an external company. The external company provides us test versions for both platforms via HockeyApp.
My question is now, is there a way to run the iOS test versions I receive on a Macbook with the Xcode simulator or do I need to ask the external company for the Xcode project in order to test the app with the Xcode simulator? We mainly want to use the simulator to test the app on different screen sizes/resolutions.
You can request the .app file of the application, builded for simulator.
Then if you have a Xcode version >= 8.2 you can just drag and drop the file into the simulator and test it.

Is there a way to test my Xcode 7.2-compiled app with iOS 9.3?

I have the iOS 9.3 beta installed on a testing device as I'm running a few 9.3-compiled apps, but I also have an old app that is compiled in Xcode 7.2. I can run the app on any iOS 9.2 device with ease, but if I try to run it on the one iOS 9.3 beta device, I get the "could not find Developer Disk Image" error.
Xcode 7.3 includes some updates to Swift, so I'd have to change a great deal of my files, and I just want to test to see if it's working fine. Is there any way to do this without having to change a lot of Swift code? It's on the App Store compiled for 9.2 and I can run it on my 9.3 device, so I don't understand why it's so difficult.
If you want to avoid the beta version of Xcode from potentially altering your original project, just make a copy of the project and then just open it up in the beta version. If you have an app running in Swift 2.1.1 (Xcode 7.2), the differences to Swift 2.2 (Xcode 7.3) are pretty modest. And if you do this with a copy, you can be confident that your original project won't be altered.
If you don't want to do that for some reason you can install apps from a production version of Xcode on a device running a beta version of iOS:
First, you want to make sure you have the profiles installed on your beta iOS device. The easiest way to do this is to run some "Hello World" app on your beta device from the beta Xcode. If prompted to add a team/profile onto your device, you should go ahead and do so, like usual.
Quit the beta Xcode and start the production Xcode and open the project for the app you want to install. Select "Generic iOS Device" where you choose the active scheme in jump bar and then build the app. You should then see the .app file (not in red) in the Products folder in the "Project Navigator" tree in the left panel.
Install the app on the device by opening the devices window (shift+command+2) and selecting the device in question. In the right panel (or top right panel if you're showing the console, too), you'll find a "Installed Apps" section. Just drag the .app file from the Products folder into this installed apps section.
Clearly, if you have other apps you want to install, you can just repeat steps 2 and 3 as appropriate.
There are a bunch of different ways to install an app on a device, but I find this is the easiest for one-off installs with a device sitting in front of me. You won't be able to debug if you do it this way, but you can at least fire it up, run it through its paces, watch the device console for any debugging messages you may be NSLog'ing, etc.

How to transfer app between iOS 9 simulators

When I create a program and run it in iOS 9 simulator everything works fine. The app gets created and saved in path like:
/Users/MichalKolar/Library/Developer/CoreSimulator/Devices/567DCC64-3388-4A7B-A14C-677210F1A24A/data/Containers/Bundle/Application/6E72B743-051D-4232-A3F6-7FB94A1F317E
It is visible in the simulator and it nicely works. I want to give it to a friend of mine to do some testing:
I deploy the same simulator on his Mac and his xCode, same iOS version
I copy the folder 6E72.... to the same folder structure on his Mac
I verify that both the .APP and hidden .PLIST files are successfully
copied
I launch the simulator in my friends Mac...
...and I do NOT see the application there.
Please advise - what is wrong? It behaves this way even for the simplest application (just a blank page, no specifics)... Tested in xCode 7.1 and 7.2 beta. iOS 8.4 apps are not problematic, just the iOS 9 are.
Thank you!
I think you can't do what you are trying to do. Btw why not building app on his Mac if he has Xcode ?
You must use TestFlight or Ad-hoc distribution to make available app for testers. Or if your friend is near you, deploy app directly on his/your iPhone.

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.

Using XCode 4.3.3 to build apps for pre IOS 5.0 users

My apologies if this question has been asked before. I can see there are a lot of questions that appear similar, however it seems they are mainly asking to do the reverse of what I am asking here.
I took a break from developing for a few months, because I had sold my macBook, and in the meantime upgraded my iPhone 4 to IOS 5.1 (over wifi)
Before selling the macbook, I made a carbon copy of my drive and made sure it could be booted and used to maintain things (on a borrowed mac).
Anyway I am now back on line with a second hand macbook classic, which came with a fresh Lion install, and whilst the workstation backup drive I made boots up fine, I discovered to my dismay that Xcode 4.2 no longer lets me build to my iPhone, so I had to go ahead and install XCode 4.3.3 Under Lion. 6GB of update downloads and installs later, all is well, however I am now left with a puzzling question.
If I make a new app, it appears to be an IOS 5.1 app, and the only simulator available is IOS 5.1 iPhone and IOS 5.1 iPad. and of course my iPhone device.
so... if I go ahead and submit this app to the app store, (ensuring I don't use any 5.1 specific features), does this mean users with versions of IOS lower than 5.x can still download and deploy the app? I can't test it as there are no simulators, and I only have access to 5.1 installed devices. I tried downloading additional simulators, but the default new project seems to preclude them from the menu system.
What is the best way to make one (1) app that everybody (including 5.x users) can download?
I would have stayed with Xcode 4.2 but this would mean having to trash my iPhone to do device testing.
Alternatively is there some way of going back to my original workstation (4.2) and configure it to allow me to do device testing on my 5.1 device?
In Xcode, select the project file in the project navigator, and then the target. In the first section of the "Summary" tab you have "iOS Application Target". There you can choose earlier iOS versions.
That's all.
In xcode go to preferences command + "," navigate to downloads. choose components tab, and you will find the ios simulators, download the one you wish from there

Resources