Which version of Xcode supported in iPhone XR - xcode

the iPhone XR is running ios 12.4.1(16G102),which may not be supported by this version of Xcode
the running version of Xcode is 10.14

You can download zip from here and unzip it. And copy to dir /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport.
Final restart Xcode, your Xcode will support iOS 12.4.1 device

Related

Xcode can’t be installed on “macOS Sierra” because macOS version 10.14.3 or later is required

I need to pair my PC to a macOS to run the ios simulator in Xamarin .
After downloading and running macOS high Sierra 10.12 virtual machine and downloading the Xcode I got some error ,
The error : Xcode can’t be installed on "macOS Sierra" because macOS version 10.14.3 or later is required.
I don't know if I have to download a new virtual machine or to update macOS Sierra or to download an earlier version of Xcode but each of these takes too much time so I need a guaranteed link for downloading if this the solution .
From iOS 12.2 you'll need to have Xcode 10.2 to build.
Xcode 10.2 require Mac OS Mojave. So you'll need to update your os

Xcode 9 support on macOS Mojave

With new macOS Mojave coming out tomorrow (24 September 2018), is it going to support Xcode 9?
We could not switch one of our projects to Xcode 10 because of some outdated dependencies.
Yes.
You can use Xcode 9 (last release is Xcode 9.4.1) on macOS Mojave.
If you are upgrading from macOS High Sierra, you can choose to not update your copy of Xcode installed from the Mac App Store.
If you have already upgrade your App Store installed copy of Xcode to Xcode 10, you can download Xcode 9.4.1 DMG from Apple Developer Downloads.
Once downloaded, double click to mount the DMG, copy Xcode.app from the disk image to Desktop, rename it to Xcode 9.app and move it to /Applications directory. You can also add drag the Xcode 9.app file to Dock to add a shortcut.
Note: I’m not sure about expect version number compatibility, thus recommended to install the last release of Xcode 9, i.e. Xcode 9.4.1.
As mentioned in your comment, you currently have Xcode 9 installed from the Mac App Store and a GM build of Xcode 10 downloaded from Apple Developer. You can now take either one of the below mentioned approaches. However, before proceeding, consider deleting the Xcode_10.app from /Applications as it is a GM build and the public release for the same is now available:
Leave Xcode.app (Xcode 9) as is in the /Applications directory. Mac App Store will show that an update is available. Do not install the update from the Mac App Store. However, make sure that the version of Xcode 9 is the last released version, i.e. Xcode 9.4.1. Download Xcode 10 public build from Apple Developer Download using this link. Copy the Xcode.app from the downloaded DMG to ~/Desktop, rename it to Xcode 10.app and move it to /Applications directory.
Second alternative would be to update the Mac App Store installed copy to Xcode 10 and download Xcode 9.4.1 instead from Apple Developer Downloads. Similarly, rename the downloaded file to Xcode 9 and move it to /Applications directory.

What version of iOS I have with Xcode

How I can tell the iOS SDK version used by my Xcode? and iOS SDK version installed on my Mac?
The SDK version by Xcode can be seen in the Build Settings of your project:
To find out which iOS SDKs are installed, open the terminal and type
ls -lah /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
(according to Apple, this is the location where they're installed)

iOS Simulator 6.x does not start on xCode5 installed side-by-side with xCode6 on 10.9+

I finally upgraded to Yosemite but also had this issue on Mavericks.
I downloaded xCode5.1.1 and installed moving to Applications folder and selecting "Keep both", so it renamed the Xcode.app folder to Xcode 2.app. I renamed it to Xcode5.app then.
Now starting the xCode5 and installing all the 6.x SDKs iam unable to start the simulator. It stays black screen.
When i run the iPhone Simulaotr manually from console i get lots of "Service cannot load in requested session" messages.
It tried to load *.plist files from within the /Application Support/iPhone Simulator/6.1/tmp/LaunchDeamons/com.apple.....plist, but that tmp folder is empty.
In xCode5.1.1 on preferences -> Locations i set the command line tools to xCode5.1.1.
But still i cannot load the ios6.x simulator, it works for 7+, but 6 does not load at all. Its just a black screen.
Simulators older than 7.1 will not run correctly on OS X Yosemite. If you need iOS 6.1 and 7.0 simulators, you need to install Mavericks.
Similarly, if you need the iOS 5.1 and 6.0 simulators, you need Mountain Lion.

iOS 4 and iOS 5 SDK's in xCode 4.5.1 on Mountain Lion

I have migrated to Mountain Lion OS version 10.8.2. Since mountain lion, installed xCode 4.5.1. Now I only get the development target iOS 6. However, I have to deploy both version sdk's (iOS 5 & iOS 4) in xCode 4.5.1.
How can I have both iOS 5 and iOS 4 SDK's (simulators) in xCode4.5.1?
Please help.
Thanks,
Rubini.S
Here is what you need to do..
Download XCode 4.3.* dmg from developer.apple.com and install the application
Double click on the dmg file
Right-click on the XCode icon and choose 'Show Package Contents'
Navigate to directory /Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
Drag the directory iPhoneSimulator5.1.sdk to your desktop
Open terminal session and execute following commands
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
sudo mv $HOME/Desktop/iPhoneSimulator5.1.sdk .
sudo chmod -R root:wheel iPhoneSimulator5.1.sdk
Restart XCode
Now if you launch the Simulator, you should be able to switch to see the option for iOS 5.1 under Hardware
If you also want to test on iOS5, copy the relevant SDKs from the iPhoneOS.platform directory

Resources