How to transfer app between iOS 9 simulators - ios

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.

Related

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.

.ipa file does not install in some iphone

I have created an app for iphone and ipad. App install perfectly in iphone but does not install in some iphone. I have use xcode for this app and already add UDID in apple's site for developing. I am using iphone-4 for testing and works fine in developing mode. I am new in ios. So I think, I forget any step for installing. Please write in step wise if possible.
Thanks in advance.
You may need to check your Project Info in your Xcode.
see here
Make sure the iOS Version of your iPhone is equal or bigger than the target value in your project

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!

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

Xcode: App builds, but "runs" and "finishes" at the same time

I have an app created from sample code I found online. I hooked up my iPod touch 4G to my computer and everything worked fine, app ran.
Then I hooked up my iPhone 3G to the computer, established provisioning profiles, etc. In the organizer the device shows up as a green dot, so we're good. The name of the device is right there next to the run button so that's a good sign. But when I hit run it says "build succeeded" and then goes directly to "finished running on " but nothing shows up on the app!
I've tried this with several apps now and all work on iPod touch, but none on iPhone.
Devices are running newest operating systems, 4.2 for the iPhone, Xcode version is the newest.
I had a different question with more than likely the same answer
App built with Xcode 4.2 ios 5.0 crashing when installed on iphone with ios 4.3.5
I found the solution here
Is it possible to target older iOS versions when using Xcode 4.2 and iOS 5 SDK?
by mmorris
I had to do what he clearly explained and 1 more thing:
Set the compiler in the Project and Target Build Set to LLVM GCC 4.2
That got the app running on my older devices
I had problem to run on simulator not on device.
Tried above options but didn't work for me.
Finally, Just Resetting Simulator did the trick.
Make sure you are targeting the least iOS version and SDK that you can in the build profiles (targets, summary, Devices, Deployment target). Also, check the error console (All Output) at the bottom right and see if there's some kind of problem occurring.

Resources