Run two simulators with the same device and iOS version concurrently - xcode

I want to run two iPhone SE's running iOS 10.3 at the same time to compare two version of my app conveniently. I've cloned the app repo twice with both repo's checkout on different commits. I specifically created two iPhone SE devices in Xcode's Window/Devices menu. When I run one app, I set the scheme to the one device, when I run the other app, I set the scheme to the other device. But when a second app runs, it cuts off the first app. I don't understand this. The projects are different, and the devices are different so what is the conflict?

If you grab Xcode 9 Beta, this should “just work” for you. This support was added in Xcode 9.

Related

How to run multiple simulators on Xcode 12 and 13?

I've seen this post for running multiple simulators on Xcode 9: How to run multiple simulators on Xcode 9?
The working solution was to go to Hardware > Devices and choose a simulator from there. But I'm currently using Xcode 13 and many developers may have the same version now. In version 12^/13, we won't find Hardware up top. So how do we run another simulator from there?
In order to open another simulator, you'll need to go to File > Open Simulator and then choose from the devices there like this:
You're all set! I just want to share this to everyone to help save their time and avoid getting headaches (like what I've experienced) just to run another simulator on Mac.

how to run two Xcode sessions connected with their own iOS simulators? (Two Xcodes, Two simulators)

Currently I am converting some old obj-c project that runs only in 32bit architecture targets, to make it run on 64bit architecture targets. So I am running two Xcode sessions with different target configurations (esp target architecture) to be able to compare the intermediate results along making progress.
However, there is one hassle regarding the simulator. Because there is only one simulator attached to two Xcode sessions, the simulator reboots whenever I switch between two Xcode sessions (i.e iPhone5 <---> iPhone6). So I am wondering how to run additional simulator that is connected to one of Xcode sessions, such that I can have two complete test setups:
(Xcode(prj-32bit) + iPhone5-simulator) and (Xcode(prj-64bit) + iPhone6-simulator).
I have googled this only to find some techniques regarding how to run multiple simulators, and those multiple simulator cannot not be connected to Xcodes independently, even though those simulators can run simultaneously.
Any answers, helpful comments are appreciated.
(I am using Xcode 8.33 by the way.)

Resetting Xcode's device/version list to run

I want to test/run my app on different iOS versions in Xcode, but somehow I can't see any option to change iOS simulator version (I have both 6 and 7 SDK/Simulator installed) in run targets. I'm also seeing all of my attached devices twice (I have only ONE iPod, but when I connect something else, they all display twice):
There's probably a bug with the device list of Xcode. How can I reset this list? I've tried resetting the scheme, but scheme is project related anyway. The problem occurs in all projects, not only a single project.
First of all, you have to install the 6.1 Simulator.
After that, you can choose which simulator version to use:
I've figured out the problem. I was on the "Latest iOS SDK" which was 7.1 SDK (I also have XCode 5.1DP installed). I've changed the base SDK to 7.0 and I am again able to choose. I still have two entries for each physical device but I can live with that.

How can I test app on older iPhone 3G with iOS v 4.2.1

I have been testing my app on my iPhone 4S and my wife's iPhone 3GS. I would also like to test it on the older iPhone 3G running iOS 4.2.1 (the highest version it will support).
When I connect the 3G to my Mac and attempt to provision it, I get two error messages:
Could Not Support Development
and
Xcode cannot find the software image to install this version
I am using the latest version of xCode (v. 4.4.1).
Is there some place to find the missing 'software image' in order to test my app on the 3G and older iOS devices?
If not, how does one know what devices the app will work with?
I do note that the newer iPhones that run iOS5 and above also support Automatic Reference Counting (ARC). I have checked the ARC button whenever I created a new project. Does one have to abandon ARC if one wants their app to work on an older pre iOS5-capable device?
...Dale
Is there some place to find the missing 'software image'?
I believe you can download it through iTunes by clicking restore in the device's summary page and then searching for the *.ipsw file. iTunes might even share the image once it is downloaded automatically.
Does one have to abandon ARC if one wants their app to work on an
older pre iOS5-capable device?
Not in entirety. iOS 4.2 supports the vast majority of ARC, But it does not support weak references.
Also, there are a few hoops you must jump through to target. I have an answer here that outlines them (with screenshots).
I know for a fact that Xcode 4.4.1 can use an iOS 4.2.1 device as a target, since I can test on a second generation iPod touch running 4.2.1.
Finally, If you are not able to obtain a software image, you could try adding your device by UDID directly on the provisioning portal through developer.apple.com.(The old fashioned way)

Xcode cannot run using the selected device No provisioned iOS devices are available

One of my coworkers set me up with a provisioning profile through our corporate profile. I have read through several tutorials and none of them corresponded to the steps he actually took to get it set up. In the end my device was listed under the devices section of the organizer with a green circle next to it (I am guessing that's good?) but when I try to run the application on my device I get the error I mentioned in the subject of this post. I should mention my device is jailbroken running iOS 4.2.6. Is the "jailbrokenness" of my device an issue?
This is like day one with Xcode and it is pretty overwhelming coming from the Linux command line and Emacs. I don't expect a complete walk through from any of you. But if you can point me to a nice long tutorial showing me how to set this up with the latest version of Xcode I would appreciate it.
Check if you can see your device in Organizer and verify iOS version installed on the device with the deployment target for your application. This is very often the case as you won't be able to deploy 4.3 application to 4.2.1 device (for example).
In Xcode Set the target to project_name | iOS Device
Then in Xcode From the product menu=>Build For=> Build For Testing

Resources