Xcode 6 so many simulators confusion - ios

I have installed new Xcode 6. In the image attached, you can see there are so many simulators of same version e.g iPad 2, iPad Air, iPhone 4S, iPhone 5 etc but in () you see they have different identifiers.
Whats the difference between different types of same simulator?
Is there a way where I can rename to make them more understandable.
Thank you

you got so many by copying old ones to the new xcode . which is not really supported.
therefore there is no way of renaming them
to get rid of them, deletion isn't enough. trash xcode, its prefs, shared data and THEN make a clean install

Related

Fastest way to run specific simulator

I have versions of simulator start from 9.3 up to 10.3.1. It's very large amount of simulators, but almost all the time i use 3 of 4 of them.
So, the question is, does Xcode have the fastest way to run app on specific simulator? Maybe create keybindings or some script or framework can help me? Thanks.
In Xcode 9, you can Open up Xcode -> Window -> Devices and Simulators -> Simulators, and you can remove the ones you don't want from the run destinations list.
In earlier versions, you can just delete the ones that you don't want.
There is no way to assign keybindings to specific run destinations.
After almost 5 years of the question, Xcode 14 now has a Recent section in the Device panel:

Can i transfer my Xcode 5.1.1 contents in project file into Xcode 6

Can everything just simply copy and paste over from Xcode 5.1.1 to Xcode 6 for Objective-C? I don't want to re-create the entire game app from scratch on Xcode 6. If i could just copy and paste from Xcode 5.1.1 to Xcode 6 i'd do it. Or does Xcode 6 completely overwrite and delete Xcode 5.1.1 projects?
Is it possible to implement iOS 8 and 4.7 inch and 5.5 inch iPhone simulators in Xcode 5.1.1?
There is no need to update any projects to be compatible with Xcode 6 if they were created in Xcode 5. Simply open the project file (or the workspace if you're using that, such as with CocoaPods), and ensure that it's using the Xcode 6 program.
There are some differences between the two versions, but nothing that will cause your project to break. The main worry for that is updating to be using the iOS 8 SDK, but that usually is simply new deprecated warnings. If you have problems with that, ask a separate question with details on that.
You cannot use Xcode 5 to work in iOS 8 and the 4.7 inch/5.5 inch sims. Even if you found a way, you shouldn't - Xcode 6 will receive the new updates and patches from Apple, so you should go ahead and upgrade. It's relatively painless, I promise. (Now, anyway... it was rough when it first came out, but that time has mostly passed.)
Additionally, you'll want to re-download the 7.1 simulators, as they do a sort of half uninstall whenever you update Xcode. You can access the download button for those through Xcode -> Preferences -> Downloads. Just click the button to the right of the sims (and the docs if you're interested in those). It won't be a full download, mostly just a reinstall of the programs.

Xcode terminates when clicking on XIB file

I want to test my app in iOS 6. Currently I am using Xcode 6
I read some articles that state "you have to download older versions of Xcode (e.g. Xcode 5) and in Xcode 5 download the iOS Simulator 6 and then run in it."
But if I do it like that, I am getting the following errors for only specific XIB files like:
Command /Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool failed with exit code 255
How I can fix this issue?
You are usually able to copy simulators from one Xcode to another, effectively installing the iOS 6 simulator into Xcode 6 like you want to. However, in looking around, it seems as though Xcode 6 doesn't support simulators under iOS 7.
My recommendation would be to install Xcode 4 or 5 and run your app there, but it sounds like you've already developed some of your app using Xcode 6. If that is the case, you'll have a lot of warnings. It's not a good idea to develop an app in a newer version of Xcode then run in an older version. Apple tries to get out the bugs when updating your Xcode version, but I doubt they do much testing or work on supporting downgrading the version.
If your xib files aren't complicated, you might rebuild them in the older version of Xcode and try to run again. There's almost always something that changes in how Apple formats xib files with each version. I believe that's what's causing your problems.
If you want to open xibs made in Xcode > 5 in Xcode 5, you will have to specifically save them in Xcode 5 format:
Of course, then you won't be able to use any modern features, e.g. size classes.

Can't run old swift project after XCode 6 beta 4 installation

I've installed xcode 6 beta 4 and today all my old projects don't appear at the launch of xcode between recent projects (the list is empty instead). So i click directly in the project file and everything started.
My project is in Swift and, after a lot of strange errors, with some corrections i can build again the code and execute it in iOS Simulator and it works as i wish.
The big problems come when i try to run the project in my physical device (ipad Air and iPhone 4s both updated to iOS 8 beta 4).
When i run the project in my iPhone Xcode returns this runtime error:
And when i run the project in my iPad Air Xcode returns this error:
i've tryed a clean instalation of XCode and i've searched everywhere. I'm very frustrated because it works on iOS simulator and i don't know what to do with this kind of error, i don't know where searching or what searching for.
After a lot of tentative i've found a solution: i had to delete Derived Data. The steps are: in XCode Window -> Organizer -> Projects -> selected the interested project -> click the delete button in Derived Data
Deleting DerivedData is not enough - you have to delete ~/Library/Caches/com.apple.dt.Xcode* directories to prevent this one from happening. Do that with every beta upgrade.

Xcode 5 running with iOS7 look and feel with Base SDK 6.1

So, I've been updating this app that has a BaseSDK of 6.1.
So far it has been fine, until this afternoon. I ran it once on my iPhone 5 and it was fine (but crashed). It was running with the iOS6 look and feel like I wanted.
Fixed the bug (just a simple index out of bounds bug) and ran it again and now it runs with the iOS7 look and feel.
I've checked the deployment target and the Base SDK and I have no idea why it's doing this.
Can anyone point me in the right direction?
SOLVED
OK, so I managed to fix it.
I had to...
Quit Xcode.
Delete Derived Data.
Delete the app from my phone.
Restart my Mac and Xcode.
Rerun "pod update" for my cocoapods. (I tried this before with no luck).
Then start it all up again.
Now it's fine.
I haven't changed any code and all the Base SDKs and deployment targets are the same.
Oh well...???
Xcode 5 does not support SDK 6.1.
You can trick it to use it, but the behaviour is undefined.
If you have multiple SDKs installed, then Xcode 5 has a bug (or undefined behaviour, whatever) where it shows the connected devices twice (or N times for N SDKs installed) in the drop down where you select simulator/device.
Each of these icons will access the connected device using one of the SDKs you have installed, so even though they look the same, they'll have some odd side effects.
I always use the top one.. (better ideas welcome)

Resources