Use Xcode 7.3.1 with iOS 10.1 (14B67) device - ios

I'm using Xcode 7.3.1 (7D1014). I want to install my app on an iPhone 7 plus with iOS 10 (14B67).
I have the 10.0 (14A345) folder from Xcode 8 in Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport.
I used this code ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.1\ \(14B67\)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport in Terminal to create an alias named 10.1 (14B67).
The DeviceSupport-folder looks like this:
But I'm still getting Could not find Developer Disk Image when trying to build on my iPhone device.
What can I do?
UPDATE
The only solution seems to have the original 10.1 (14B65) folder. You can download the folder for 10.1 (14B65) here: http://www.filedropper.com/showdownload.php/10114b65

iOS 10.1 requires Xcode 8.1. So you need to get 8.1 installed then you can add the soft link.

Related

No Xcode support for iOS 12.3

My phone has updated to iOS 12.3 beta, the latest Xcode 10.2 beta only supports up to iOS 12.2.
Is there a beta version of xcode anywhere that is compatible with iOS 12.3?
I guess the options are to wait for apple to release a new version of xcode or to roll back. unless anyone knows otherwise?
I find a solution to fix this problem.
You should make a folder named 12.3 (... what is written in your error message) in Program/Xcode-beta/Contents/Developer/Platforms/iPhoneOS.platforms/DeviceSupport/ and copy the files from 12.2 in there.
Now you can run your apps on iPhones with iOS 12.3.
Any update on The IOS 12.3 Beta Developer Disk Image?
The official Debugging File for iOS 12.3 is not available.
You can try the following method to let Xcode support debugging iOS 12.3 devices.
1. Go to the folder /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
2. Create a folder named "12.3".
3. Copy the "12.2" file to the "12.3" folder.
How I fixed a similar issue with iOS 12.4
Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport and create folder called 12.4 (16G77) and copy the files from one of the previous folders f.e 12.3
Go to Xcode and click on the "Set active scheme menu" and click on Download Simulators at the bottom:
Xcode will automatically start updating and re-creating the supporting files for 12.4:
Hope this will help someone.
Actually, Xcode 10.2.1 could debug with real devices running iOS 12.3
Try it by yourself.
worked for me:
1. cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
2. cp 12.0 12.2
3. cp 12.0 12.3
4. downloaded Apple configurator and identified the connected devices
5. in xCode targeted the connected device
6. build worked
How I fixed similar issue with iOS 12.5.3 (XCode 10.1)
I opened Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport in Finder, created folder called 12.5.3 (16H41) and copied the files from folder 12.4 (16G77).

Use iOS 10.3.3 with Xcode Version 8.2.1?

I am using Xcode Version 8.2.1 and cannot upgrade because I am working off of a 2008 MBP and the latest versions of Xcode are not supported.
I trying to run a project on an iPhone 5 which is running iOS 10.3.3 however, when i try to run the project from Xcode I get the following error message:
I checked the device support folder located at:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
and I see that the 10.3 folder is not present
Is there a way I can add a folder for 10.3 device support? Is there a place I can download it and add it into my Xcode?
If this is not possible, does anyone know a way to downgrade to an unsigned iOS firmware such as 10.2 or lower?
You can download the Xcode 8.3 separately(or get it from here :https://gist.github.com/steipete/d9b44d8e9f341e81414e86d7ff8fb62d#gistcomment-2041802) and get the 10.3 SDK from that which resides in Developer/Platforms directory. Reboot system as well as XCode and select SDk in settings as 10.3
You have to update your Xcode with 8.3 or later or download .dmg file from here
https://developer.apple.com/download/more/

Apple - iOS - Testing on iOS 10.3 with XCode 8.2.1

I have a MacBook with El Capitan installed on it. I cannot upgrade to sierra! Because of that, I cannot install XCode 8.3.
Now I need to test an App with iOS 10.3 but I cannot build it with XCode 8.2.1 for iOS 10.3. I have an pyhsical device with iOS 10.3 but XCode wont let me run it on that device.
What to do now?
Doing so is still possible with this simple workaround:
Download the latest Xcode
Right click on the downloaded Xcode.app, select Show Package Contents. Navigate to Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport subfolder
Move the 10.3 folder to the identical location in your local Xcode 8.2.1 installation
Don't get disappointed. There is one way.
If you have access any of the mac that is running the latest xcode and up to date simulators, then navigate to this directory copy the simulators you need and past it on the same directory in your OSX.
You can then be able to run the app on the latest simulator and the updated physical device!
/Applications/Xcode8.3.app/Contents/Developer/Platforms/iPhoneOS.platform
Unfortunately, you're out of luck. As this answer specifies, iOS 10.3 requires Xcode 8.3 or greater, which in turn requires macOS Sierra.

Use Xcode 7 with iOS 10

I want to use Xcode 7 with iOS 10.
As I understand, working with iOS 10 beta requires Xcode 8 beta, so I should upgrade my Xcode. However, my code can't be built by the new compiler, so I want to stay with Xcode 7.
How can I achieve that?
You need use DeveloperDiskImage from Xcode 8 Beta.
For this extract Xcode 8 Beta app and copy DeveloperDiskImage for iOS 10 to your Xcode folder.
Suppose you extract Xcode to Downloads/Xcode-beta.app
cp -r /Users/fanruten/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A345\) /Applications/Xcode_7.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
After copy DeveloperDiskImage you should start Xcode and connect iOS device to your mac.
Edit:
With a standard Xcode install one can create a soft link:
sudo ln -s \
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A5309d\) \
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0
You can use any SDK on an older build of Xcode simply by copying and pasting the folder of the OS you need. Also you obviously cannot have two apps with the same name so just rename them to Xcode 7 and Xcode 8.
right-click / ctrl-click the Xcode 8 application icon to show the package contents and navigate to this location and copy the iOS 10.0 or WatchOS 3.0 folder etc.
/Applications/Xcode8.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
/Applications/Xcode8.app/Contents/Developer/Platforms/WatchOS.platform/DeviceSupport
Then navigate to the same location in Xcode 7 and paste the folder.
/Applications/Xcode7.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
/Applications/Xcode7.app/Contents/Developer/Platforms/WatchOS.platform/DeviceSupport
Restart Xcode 7. You'll have to wait a while for Xcode to rebuild the symbols etc.
For me none of the above suggestions worked.
Instead, I navigated to this location(press CMD+SHIFT+K to insert the below path) (through finder)
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
And copied the 10.0(14A5339a) folder, which contains the developer disk image. I then pasted it into
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
EDIT: I'm using Xcode7 (version 7.3.1-7D1014),iOS 10 public beta 6(14A5345a)-this is released on aug 19,2016
Although copying the folder containing the disk image is still the best way to go, i had no time downloading the newest Xcode to get hold of the disk image folder, so i basically archived the app and exported it using the save for development deployment option, then installed it on the test device using iTunes app.
In my case i hade Xcode 8.0 wanting to build on a 10.2.1 iOS device.
Pascal && Fanruten are right.
tested on 12th aug, Xcode Version 7.3.1 (7D1014) AND iOS 10.0 (14A5309d) on iPhone6 Plus.
I made a symbolic link as suggested (path are a bit different... see below.) but works with linking to Xcode Version 8.0 beta 4 (8S188o).
only for completeness:
Beta 4
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A5322e\)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0
Beta 5
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A5339a\)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0
Tymac's answer almost worked for me. Rather than copy and past, I had two Finder windows opened and then dragged the iOS 10 folder to the Xcode 7 folder. Once it's in Xcode 7, open the folder and make sure there is a dmg file.
Earlier I had dragged a copy of the iOS 10 device support folder to my desktop then copied it to the Xcode 7 folder. That seemed to unpack the dmg file so Xcode 7 still complained. Needs to be a dmg file in the folder.
One warning. I tried to use XCode 7.3.1 with ios 10 images from XCode 8.1 for cordova project (it works), but had problems with push notifications permissions (different setups for ios 8/9/10). Not sure about it, but it seems to me that some compiler directives are missing in 7.3.1
Here it is for XCode 9 and iOS 11 Beta 1:
sudo ln -s \
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0\ \(15A5278f\) \
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0
my two cents for Xcode Version 11 beta against Xcode 10 after wwdc2019:
ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.0 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.0
so I can use my iPhone with iOS 13 beta in Xcode 10.
after ln -s , pls relaunch Xcode

How to copy simulator from different Xcode version?

I have 2 XCodes installed on my Mac say Xcode 6.1 and Xcode 5.1. I use Xcode 6.1 iOS for development. For some bugs raised in iOS 7 I am in the need of iOS 7 simulator. Do I download Xcode 7 simulator When I have my iOS 7.1 simulator with my Xcode 5.1, or Would Xcode 6.1 will work When I copy my simulator from 5.1 to 6.1 ?
If that is possible tell me how?
Tnx in advance
For iOS version greater then 13
/Applications/OldXcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
Copy the simulator sdk you want, and paste it on the same path as above in another XCode version and rename sdk according to version.
Like For example i have version 13.3 i have to copy it to new xcode with version 13.4
Following will be the final path /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.3.sdk
Also copy the runtime iOS.simruntime from
/Applications/OldXcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles
or
/Applications/OldXcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes
and paste it to the following path
/Users/waqasahmed/Library/Developer/CoreSimulator/Profiles
or
/Users/waqasahmed/Library/Developer/CoreSimulator/Profiles/Runtimes
and rename it according to the version like for version 13.3 it will be iOS 13.3.simruntime
Open path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
copy the simulator sdk you want, and paste it on the same path as above in another XCode version.
You need to install the necessary simulators in each version of Xcode separately. Can use Xcode>Preference> Downloads option.
It is not possible to use the iOS 6 simulator runtime in new Xcode 7. The iOS 6 simulator runtime is not compatible with the new CoreSimulator architecture.

Resources