Can you use XCode6.3 with IOS7.1 SDK - ios

Is it possible to use XCode6 beta with an IOS 7.1 SDK? The new tools are much nicer but I need to build for IOS7

Yes.
1. First download 7.1 SDK - XCode6Beta > Preferences > Downloads > iOS 7.1 Simulator.
Note: XCode6-Beta can co-exist with regular XCode (XCode 5.x). But when you download iOS 7.1 Simulator, it actually gets downloaded into XCode 5's path!! (probably a bug).
Open XCode5's SDKs folder..
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
Open XCode6-beta's SDKs folder..
/Applications/Xcode6-Beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
Copy iPhoneOS7.1.sdk from XCode5's to XCode6-Beta's SDK folder.
Restart XCode6-beta
Now if you go to Project's Build Settings, Base SDK, you will see 7.1 along with 8.0.
Enjoy!

I'm using XCode6 and SDK version 8 regularly now, but I had to compile an app with version 7 of SDK, because version 8 was causing a lot of problems on devices with iOS8 installed, while in devices with iOS7 installed everything was running fine.. (!!)
I then:
went to XCode Downloads
browsed through some pages in order to get the latest XCode 5 version and downloaded it
opened the DMG with Image Mounter
rightclicked XCode icon and selected "Show package contents"
browsed Finder through Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
copied iPhoneOS7.sdk and pasted it to /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
restart XCode
now you can select SDK 7.1 as the one to use in your project
this has immediately solved all of my issues with the app

From the command line, you can copy the 7.1 SDK from the current Xcode distribution to the Xcode 6 Beta distribution like this:
cp -r /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk /Applications/Xcode6-Beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
The example above will recursively copy the contents of the iPhoneOS7.1.sdk folder to the appropriate destination for Xcode6-Beta5 . Copying the SDK to Xcode6-Beta6 would require adjusting the command line to point to the Xcode6-Beta6.app folder.

So we had a very similar issue, our goal was to debug an issue that only appears on iOS 8 (with an app built in xCode 5 on the iOS 7.1 SDK). We were trying to use xCode 6, but found it too unstable, and then decided to go back to xCode 5 and debug using UIAlertNotifications (as we could previously not connect our iOS 8 device to xCode 5)
After connecting our iOS 8 device to xCode 6, when we re-opened xCode 5, our iOS 8 device was recognized and we were able to debug using NSLog statements (break points still caused our app to crash - making it apparent that the issues related to break points are with iOS 8 rather than xCode 6 as others have suggested)
I hope this info is of some help to others out there!

Related

Xcode 7.3.1 with iOS 10 support

Now I have an app based on Xcode 7.3.1 which runs fine. But one problem happened when I want to install the app to an iOS 10 device. It is said "Could not find Developer Disk Image". So I find a solution which is this: https://danielemargutti.com/solve-xcodes-could-not-find-developer-disk-image-error-how-to-run-projects-in-ios-10-device-using-xcode-7/
However, there is no 10.0 folder in the "/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport". So I found an easy way (looks like) to install both version of 7.3.1 and 8 which is this: https://www.quora.com/What-is-the-best-advice-to-install-Xcode-8-beta-alongside-Xcode-Version-7-3-1
The question is how can I only download the 10.0 folder rather than install Xcode 8 and make a link or copy/paste into Xcode 7.3.1? Thanks in advance of any other solutions.
I have that uploaded on Dropbox
iOS 10.0here
iOS 10.1here
iOS 10.2here
iOS 10.3here
iOS 11.0 here
iOS 11.1 here
iOS 11.2 here
iOS 11.3 here
iOS 11.4 here
iOS 12.0 here
iOS 12.1 here
iOS 12.2 here
iOS 13.0 here
iOS 13.1 here
iOS 13.5 here
iOS 13.6 here
NOTE: Swift 2.3 support is not available from Xcode 8.3 + versions
Go to your Applications -> Xcode 7.x version.
Right Click it and click on Show Package Contents and navigate to the path below :-
/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
And paste the unzipped folder (iOS 10.0) at the path mentioned above. It will look like this.
In the Device Support Folder for Xcode 7.3.1 version you currently will be having folders upto 9.3 only. Simply paste this iOS 10 folder there.
Finally, Quit and Restart your Xcode and plug in your iOS 10 Device.
Open Finder and from its Top menu click on "Go" and then click on "Go to Folder..."
You'll see one prompt and there paste this below line there,
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
You'll be redirected to "DeviceSupport" folder.
Now, Download folder from below link and unzipped it
https://drive.google.com/file/d/0B_9nnatiB3jRaElIeDQzWXNzeEU/view?usp=sharing
Copy and Paste that folder in "DeviceSupport" folder.
Restart XCode and enjoy :)
You can download iOS 11 official developer disk image from here
Unzip & Paste it in
Applications > Right Click on Xcode > Show Package Contents and follow the below directories and restart your XCode.
/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

iOS 9 not supported by Xcode 6.4

The iOS 9 update is not supported by Xcode 6.4 for testing purpose. is there a workaround to connect my device to Xcode for testing. If not can I roll back my update to ios 8.4.1( previous update ).
There is a way to deploy to iOS 9 devices with Xcode 6.4. I ended up doing this because I of course had updated my phone right away, but I did not quite want to go to Xcode 7 due to Swift 2 and the lack of support by coacoapods, yet.
Here is what I did:
I downloaded Xcode 7, but did not install it.
Instead I browsed inside the dmg file (Show Package Contents on right-click) to /Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport.
I then copied the folder named 9.0 (13A340) into the same location of my current installation of Xcode 6.4.
Lastly I renamed the existing 8.0 (12A365) folder to just 8.0 - I am not sure if this is necessary.
I am now able to deploy to my phone with iOS9 from Xcode 6.4.
I hope this is helpful to somebody!
The iOS 9 update is not supported by Xcode 6.4
You've hit the nail on the head. iOS 9 is not supported in versions of Xcode earlier than iOS 7. Just update to continue developing.
This worked for me to allow me to test my app that was built against the iOS8 SDK (on XCode 6.4) on a physical iOS9 device.
Rename XCode to Xcode 6.4 in the Applications folder
Install Xcode 7 from the downloaded DMG (don't update from the AppStore)
Open XCode 7 and build a test project (it can be an empty iOS9 app) and run it on your physical iOS9 device
Close Xcode 7 and open XCode 6.4
Build your app against the iOS8 SDK and debug on the physical iOS9 device
It seems like debugging on XCode 7 first updates something on the device and then XCode 6.4 can debug properly.
(This is useful for example, if you don't want to migrate your Swift 1.2 code to 2.0 yet)

Xcode 7 with iOS 9 device Error: device unavailable (Could not find a developer disk image)

After updating my iPad to iOS 9 public beta, I am getting an error while trying the run the app in my iPad. When I select the iPad as destination, it says "iPad (Unavailable) or Could not find developer disk image. How can I fix this? Any solution?
If you are using the Xcode 7 GM build version 7A218, the chances are that you accidentally downloaded iOS 9.1 (13B5110e) as opposed to the iOS 9 GM build (13A340). I did the same thing don't worry. They are too close to each other on the downloads page :0
You can check which version you have on your device by simply going to your device Settings > General > About > Version
All you have to do is download the correct iOS 9 GM build and go to iTunes. Click on your device. In the summary tab, OPTION + Right Click "Check for Update" and restore your device by navigating to the iOS 9 GM build finder location. Note by selecting "Check for Update" you will not lose any settings or data on your device. In other words, it is not a restore
However, if you are using Xcode 7.1 build version (7B60) iOS 9.1 is supported
I had the same problem and all I had to do was to update my XCode to 7.1. After that it worked. Your Xcode has to be updated to the latest version.
This is also encountered when trying to use Xcode 6.4 against an iOS 9.0.x device. Here's how you can workaround it and get Xcode 6.4 to recognize your iOS 9.0.x devices:
Download Xcode 7.0.1:
http://developer.apple.com/devcenter/download.action?path=/Developer_Tools/Xcode_7.0.1/Xcode_7.0.1.dmg
Open Xcode_7.0.1.dmg and drag the Xcode.app to your desktop
Right-click, Show package contents, navigate into /Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Copy the "9.0 (13A340)" directory to the existing DeviceSupport directory for your Xcode 6.4 install. For example: ~/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Restart Xcode 6.4 (if it was running), and your device running iOS 9.0.x should now show as a recognized device.
I solve this problem by just simple xcode restart.
Update Xcode. If it not help:
go to
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
If you don't find there your device iOS version, you could try to copy last one and rename it to which one do you need, restart XCode and try to compile, it works for me.
Apple just released the new Xcode 7.1 which support iOS 9.1. Update Your Xcode and everything will be fine.
I have experienced same issue
Could not find Developer Disk Image
1) My Xcode version was 7.0.1 and i updated my iPhone to version 9.2, then upon using Xcode my iPhone was shown in section of unavailable device. Just like in image below:
2) But then i somehow managed to select my iPhone by clicking at
Product -> Destination -> Unavailable Device
3) But that doesn't solved my problem and started showing
Could not find Developer Disk Image
Solution) Then finally i downloaded latest version of Xcode version 9.2 from https://developer.apple.com/downloads/ and everything worked fine for me.
For me the problem was that I just needed to open my phone and click "Trust Computer"
I had XCode 7.0.1 installed + iOS 9.1 (13B143).
XCode had shown me "unsupported device" / "could not find developer disk image" in Devices windows until i updated my XCode to version 7.1. Everything works well now.
I had already update to newest version Xcode (7.0.1) but still can't build on iPod touch 5 in iOS 9.1(13B143).After copy 9.1 (13B137) folder from my colleague to DeviceSupport folder in Xcode, it works! Not sure it would create some side effects.

iOS 9 not supported on Xcode 6.3

I downloaded the iOS 9 beta for the iPhone 5s and wanted to test an application that I have finished but now it says that my iPhone is an ineligible device. Is there a way I can still run apps on my iPhone without downloading the Xcode 7 beta?
You can RUN App on iOS 9 device using Xcode 6, But firstly you need to build your app on XCode 7, after that it will support on XCode 6.
I dont know the reason.
I have checked this on My Mac.
[EDIT]
Steps
Build the project on Xcode 7 while Xcode 6 is opened on the same
project.
Disconnect the device and reconnect it.(Now u can run ur app on XCode6, It may take little time to load device)
When i have checked iOS9 with Xcode6, Bugs are very less.
So i have plan to support iOS9 with XCode6 for quick release. Later i will do for XCode7.
You can build to an iOS 9.0 or 9.1 beta device from Xcode 6.4, not out of the box though.
Download Xcode 7.0 and/or Xcode 7.1 beta dmg, and copy the
Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/9.0 (13A340)
from Xcode 7.0 or:
.../9.1 (13B5110e)
from Xcode 7.1 beta folders to corresponding folder in your Xcode 6.x.
After restarting Xcode iOS 9.0/9.1 devices will no longer be marked an ineligible.
If you installed iOS 9 beta onto your iPhone, then you cannot develop on it without Xcode 7.
However, this is not a completely terrible thing; you can readily have both Xcode 7 and Xcode 6 on the same computer.
(What you cannot do, according to Apple, is revert your iPhone back to iOS 8 - but there are some comments below from people who were able to do it.)
Install the latest XCode. Keep both versions on your Mac. Give Keep Both when installing the new XCode and do not give Replace present XCode during the installation.
Go to application, right click XCode --> show package contents. Copy the latest version from the path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
and copy to the Xcode you are currently working in the same path. Find the screen shots below and start working.
Happy coding.
Don't need build your project at Xcode 7.0, just open and select your device, after that, open your Xcode 6.4 and your device will automatically update the necessary things to build app by Xcode 6.4
Not the easiest or correct way. But if you really have to test once or twice in the device.
In Xcode,
Product -> Archive
Build for Ad-Hoc Distribution
Connect the device
Open Itunes, Select the device,
Select Apps, Drag and drop the .ipa file generated in step 2 to itunes
Press install
App will be installed to the ios9 device.
No, you have to download Xcode 7 beta since tools like the compiler and debugger are part of the IDE.
As stated on Apple Developer Website (here), Xcode 7 Beta has the Swift 2 compiler and SDK for iOS 9. My guess is, your current Xcode doesn't know how to compile for iOS 9 SDK.
However, Apple doesn't specifically mention Xcode 7 as a requirement. It states that OS X Yosemite or later is required.
I don't think you can specifically download an SDK that isn't supported inside Xcode. For example, you can go to Xcode -> Preferences -> Downloads and under Components you may see the iOS 9 Simulator.
If you go to the iOS 9 SDK and download it, it seems to only download the device OS and not the entire SDK.
In conclusion, I believe that the SDK "kit" is integrated with Xcode 7 that would allow you to develop on your iOS 9 Device. Without upgrading, I don't see you being able to do that. I could be wrong though.

How to Add iOS 6.0 Simulator in Xcode 5?

i want to add iOS 6.0 Simulator in Xcode 5 for that i add SDK in my Xcode 5 Content Folder From Xcode 4.5 like as
Xcode 4.5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDK/iPhoneOS6.0SDKs/
And Copy this SDK Folder in Xcode 5 Folder as
Xcode5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDK/iPhoneOSSDKs
folder but it is not Display iOS 6.0 In my Xcode 5 Simulator.
Here i not want to Download so please Give me Solution With out
Download Option.
Go to Xcode->Preferences->Downloads
From there you can download iOS 6 simulator.
Copying SDK is just gives a support to that simulator but to view iOS 6.0 simulator in a list (simulator interface), You must have to download it.
Of course it will work for the older OS SDKs, I mean copying older SDKs from older Xcode to newer Xcode SDKs will give you support to create build for older iOS version and it will also supports older OS version APIs, but it will not work for Simulator as you expected.
Try to understand that to copy sdks from Xcode 4.5 will not work for new APIs. This can not be the way you are trying to do.
You must have to follow the regular download way!!
Click on Xcode preferences >> Go to Downloads section
Download simulator from Components section.

Resources