Xcode 64BitConversion not found - ios

I have a Cordova project, of which the iOS code needs to support 64-bit.
So the Apple Developer page (https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Cocoa64BitGuide/ConvertingExistingApp/ConvertingExistingApp.html)
has a "Conversion Procedure" which involves a ConvertCocoa64 program.
The page refers to this path:
/Developer/Extras/64BitConversion/ConvertCocoa64,
however I cannot seem to find it anywhere.
If I try cd /Applications/Xcode.app/Contents/Developer/, there is no "Extras" folder to be found.
I'm running Os X Yosemite with Xcode version 6.3.1

Seems that everything that was in /Developer is now embedded in the Xcode folder. Some items aren't included by default you can download it from apple download
You want the "Auxiliary Tools" for your version of Xcode.

Related

Xcode Missing Support Files iOS 12.2 (16E227)

My device is running iOS 12.2, but the latest Xcode version available (on the store, and directly from developer.apple, which just pushes me to the store) does not provide the support files for that iOS version, so I cannot build to devices.
Here's the error message from Xcode:
And my Xcode build running on macOS Mojava v.10.14:
Are there any reputable other places to download a more recent Xcode beta from (or just the support files, in Xcode > Contents > Developer > Platforms > iPhoneOS.platform > DeviceSupport), or am I missing something here?
Download device support files from here -https://github.com/iGhibli/iOS-DeviceSupport/blob/master/DeviceSupport/12.2%20(16E226).zip,
if your Xcode version doesn't have them.
Extract the zip file and copy to
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport.
Rename 16E266 folder to 16E227.
Restart XCode.
As pointed out by #DavidH, this worked for me.
After copying and renaming the folder, if problem persists, restart the Mac.
I had the same issue. I was about to download the https://github.com/iGhibli/iOS-DeviceSupport/blob/master/DeviceSupport/12.2%20(16E226).zip and paste it in the /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport path but I think it's not the normal flow. Later, I remembered that I almost never download the Operating System updates.
My solution was:
Go to about this mac -> Software Update (Operating System Updates).
After downloading and installing update you'll be able to Update Xcode.
Go to App Store -> search xcode and you could update Xcode successful.
In conclusion: I needed to install updates for my macOS Operating System.
Need iOS 13.4 support in XCode 11.3.1 ?
You updated your iPhone iOS to 13.4 ?
You don't want to upgrade your OSX to Catalina in order to get the latest XCode 11.4?
Download the XCode release that does support your device from here: https://developer.apple.com/download/more
Extract the zip file, right click on Xcode.app, click on "Show Package Contents"
Go into folder: Contents -> Developer -> Platforms -> iPhoneOS.platform -> DeviceSupport
Find your iOS version you need support for and copy that folder to your existing Xcode.app within the same folder.
DONE.
This process will work for new and old versions of iOS & XCode.
Here is source file.
After copy downloaded folder to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport , restart Xcode then it will work.
Hope this will help you.
I download the Developer disk image for iOS 13.0 from here and added support file in Xcode Version 10.3 (10G8).
https://github.com/iGhibli/iOS-DeviceSupport/blob/master/DeviceSupport/13.0.zip
Follow Those steps. 1) Unzipped downloaded file
2) Right click on Xcode and click on Show Package Content.
3) Then paste your file on path.
Contents -> Developer -> Platforms -> iPhoneOS.platforms -> DeviceSupport
Then Restart Your Xcode. It works for me.
Download iOS developer disk image 12.2 and unzip it
Go Application>Xcode>Contents>Developer>Platforms>iPhoneOS.Platform>DeviceSupport paste your folder there.
Restart your Xcode.

Xcode: Could not locate device support files

As i am trying to run my application from newly updated Xcode 8 to my iPhone 4 which is running iOS 7.1.2
It throws below error,
And, this is my Xcode version,
Has anyone faced this issue before? Awaiting for your suggestions!!
Actually, there is a way. You just need to copy DeviceSupport folder for iOS 7.1 from Older Xcode to the new one. It's located in:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/7.1
If you don't have the 7.1 files anymore, you can download a previous version of XCode on https://developer.apple.com/download/more/, extract it, and then copy these files to following path
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
Credit
I had a similar problem because the app store version was missing iOS 10.1 support in Xcode 8 and they haven't rolled an update yet. This caused the "Xcode: Could not locate device support files" problem. You can download the latest update https://developer.apple.com/download/ and it is more current and supports iOS 10.1 (14B72c).
I have Xcode 10.1 and I can not run my application on my device with 12.2 iOS version.
The easiest solution for me was:
Go with finder at Xcode location
Right Click -> Show Package Contents
Contents -> Developer -> Platforms -> iPhoneOS.platform -> DeviceSupport
Here you find a list of supported version. Choose the most recent one and copy(In my case was 12.1 (16B91))
Paste in the same folder(DeviceSupport) and call it with the version you need.(In my case was 12.2 (16E227))
Close Xcode if you have it open
Reconnect device if it was connected
Open Xcode and build
If this trick does not working, you have to get the versions from the new Xcode version.
But you can try, saves a lot of time. Good luck!
EDIT: Or you can download your needed device support from here:
https://github.com/iGhibli/iOS-DeviceSupport/tree/master/DeviceSupport
You need device support from previous version of Xcode (7.3.1).
I would recommend to use this tool: https://github.com/KrauseFx/xcode-install
When you install Xcode 7, you should link support files to Xcode 8:
sudo ln -s /Applications/Xcode-7.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/7.* \
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
This error is shown when your XCode is old and the related device you are using is updated to latest version. First of all, install the latest Xcode version.
We can solve this issue by following the below steps:-
Open Finder select Applications
Right click on Xcode 8, select "Show Package Contents", "Contents", "Developer", "Platforms", "iPhoneOS.Platform", "Device Support"
Copy the 10.0 folder (or above for later version).
Back in Finder select Applications again
Right click on Xcode 7.3, select "Show Package Contents", "Contents", "Developer", "Platforms", "iPhoneOS.Platform", "Device Support"
Paste the 10.0 folder
If everything worked properly, your XCode has a new developer disk image. Close the finder now, and quit your XCode. Open your Xcode and the error will be gone. Now you can connect your latest device to old Xcode versions.
Thanks
Here is the correct way of handling support errors from Xcode. All you have to do is add support to Xcode's DeviceSupport folder.
Open this link, extract the zip and copy the folder. https://github.com/mspvirajpatel/Xcode_Developer_Disk_Images/releases/tag/12.3.1
NOTE: A new version of iOS 13.0 beta recently released. If your Xcode throws iOS 13.0 support files needed, then click the link below:
https://github.com/amritsubedi/iOS-Developer-Disk-Image/blob/master/13.0.zip
Then, go to Applications -> Xcode. Right click and open Show Package Contents. Then, paste to Contents -> Developer -> Platforms -> iPhoneOS.platform -> DeviceSupport and restart Xcode.
Note: If you have a problem with any other version of iOS, then download the right iOS Developer Disk Image and paste it in the above-mentioned folder.
This will work.
Having the same exact issue with iOS 10.3 and Xcode 8.2.1. I'm not going to download the new Xcode beta just to fix this. Come on Apple!
To anyone reading this, you have to go to https://developer.apple.com/download/ and get the latest version, which might even be the beta, if the stable release doesn't work.
In the future, I would be aware if you update iOS on your devices you may break Xcode/iOS version so update wisely if you want to keep testing on it without jumping through hoops that Apple makes.
If you have XCode 8.1 and iOS 10.2, update XCode manually to 8.2.1. For some reason App Store didn't offer this update.
In case of getting "Could not locate device support files" after your device iOS version has been updated and your Xcode is still old version, just copy old SDK under new name and restart Xcode. Open your terminal and do following:
$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
$ cp -rpv 10.3.1\ \(14E8301\)/ 11.2.1
Restart Xcode and it will most probably work.
Download & mount http://adcdownload.apple.com/Developer_Tools/Xcode_7.3.1/Xcode_7.3.1.dmg
I was first wandered if it could be mounted directly through hdiutil attach and looks like it could but not for everyone's accounts.
Open to see its content and copy Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/7.1 to same path into Xcode application directory.
Restart Xcode
Same issue, go to App Store and update Xcode
Get latest iOS-device-support-files (GitHub) (updated regularly). Download and copy iOS-device-support-files to:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
I have Xcode 12.4 and can't run my app on my device with iOS 14.5.1
Download Device support 14.5 from here:
https://github.com/iGhibli/iOS-DeviceSupport/tree/master/DeviceSupport
Then, Follow below steps:
XCode.app > Right Click > Show Package Contents > Contents >
Developer > Platforms > iPhoneOS.platform -> DeviceSupport
Paste 14.5 (unzipped) folder here.
Close Xcode if you have it open and quit Xcode.
Reconnect device if it was connected.
Open Xcode and build.
If this trick does not working, you have to get the versions from the new Xcode version.

How can I add older version of iOS SDK in Xcode 4.5

I copied the iOS 5.1 SDK here:
Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
But, I still can't choose the base SDK in Xcode.
Can anybody help?
You need to copy the iPhoneOS5.1.sdk to the directory
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk
and iPhoneSimulator5.1.sdk to
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk
(You'll need to restart Xcode to be able to select the SDKs in the Base SDK build option.)
None of the above worked on my 10.8 xcode 4.5.1.
Most of the paths given above are not found.
Here is my solution note.
Download xcode_4.4.1_6938145.dmg in https://developer.apple.com/downloads/
Load up the dmg file then go to Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ you will find iPhoneOS5.1.sdk (this is what i want in this case).
Copy iPhoneOS5.1.sdk folder into your Xcode folder /Applications/Xcode/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
Restart Xcode
Open Xcode project setting->build settings->base SDK, then you will see iOS 5.1 option.
From the terminal, run this command, then restart XCode:
cp -r /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
Note, substitute 'iPhoneOS5.0.sdk' with the name of whatever SDK you're interested in copying.
#benvolioT answer is correct, but you need permission:
sudo cp -r /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/
Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
Old SDK's for the OS and Simulator might be available from these locations using finder.
For OS
/Developer-old/Platforms/iPhoneOS.platform/Developer/SDKs
For Simulator
/Developer-old/Platforms/iPhoneSimulator.platform/Developer/SDKs
Developer-old, you would find it in device volume path.
Akhildas' solution worked for me. I was able to build against the 5.1 SDK with XCode 4.5.1. One caveat:
If you drop an SDK from a version of XCode downloaded by a different Apple ID, the App Store will show that you have an update to 4.5.1 (even though you already have it). When you press the update button, it tells you to log in with the other Apple ID.
Strange, I wonder where the account information is buried in the 5.1 SDK?
Also, when I set a base SDK back to iOS 6, it appears you have to restart XCode to recognize that framework.
xcode.app > Right Click > Show Package Contents
It will open xcode package contents.
Go to the directory path -
Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
Now you can see the folder name with ios sdk version. For example : iPhoneOS(sdk-version).sdk
The BEST SOLUTION is to go to the XCode Preferences and to install older versions of iOS simulator / SDK from there, as explained here : https://apple.stackexchange.com/questions/47323/installing-xcode-with-ios-4-3-device-simulator
Hope this helps :)

How do I install the iOS 4.3 Simulator on Xcode 4.5?

I have Xcode 4.5 installed via the App Store, and it has iOS 5.1 and 6.0 support, but not iOS 4.3. Nor is it available for download in the "Downloads" tab of Preferences. I tried grabbing it from another computer and putting it on this one, as described by Dominik Porada, but alas that did not work. Maybe there are other files I need? How do I get the iOS 4.3 SDK back?
I actually did get 4.3 to appear in the Xcode 4.3 menu just by copying the iPhoneSimulator4.3.sdk file to the Xcode.app package, as described by Dominik Porada. I think I just had to restart Xcode again, and there it was!
But it doesn't work. As pointed out in the answers to this question, iOS 4.3 is not supported on Mountain Lion. Might work fine for Lion, though.
This was the solution to run iOS 5.1 in XCode 4.2. Try following the same procedure. Try copying it from a previous version of XCode.Haven't tried it out myself.But see if it works.
To get Xcode 4.2 on Snow Leopard to run code on a device running iOS 5.1 you can do this:
If you have another Mac running Lion and Xcode 4.3.1 you can copy the files from:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)
Place the copied files in the equivalent place on your Snow Leopard Mac: probably
/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Similarly copy the iOS 5.1 SDK files found in this directory:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk
Also copy 'version.plist' from the Lion machine in the iPhoneOS.platform folder to the Snow Leopard machine.
Re-start Xcode on the Snow Leopard machine and re-connect the devices and it seems happy enough.
If you don't have access to a machine with Lion and Xcode 4.3.1:
You can get the files out of the 4.3.1 DMG which can be downloaded from Apple here: Downloads for Apple Developers.
Mount the DMG, Show Package Contents on the Xcode icon and drill down to
/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Follow the steps above.
You might find it more convenient to use Apple's proprietary ditto method (sudo ditto src dest) in the terminal window to copy the folders.

Adding Older iOS SDKs to Xcode 4.1 in Lion

I just installed Lion and Xcode 4.1. How do I add older SDKs so I can build and run in 4.1 or 4.2 in iPhone/iPad Simulator? Xcode 4.1 only comes with the iOS 4.3 SDK.
Does Lion have some sort of minimum SDK for builds?
Thanks,
Actually it is possible to add older SDKs as long as you can still get your hands on an older version of Xcode with the older SDK. It's useful too sometimes: when you do this you get to find out about unsupported constants and methods you may be using during compile rather than at runtime. Here's how to do it.
Get hold of an older version of Xcode with the older SDK. The Apple iOS Dev Center currently lists the 4.3 SDK with the Xcode 3.2.6 download.
Mount the dmg and open up the Packages folder hidden within the dmg via Terminal:
open /Volumes/Xcode\ and\ iOS\ SDK/Packages/
Double click the pkg file for the SDK version you want. I was looking for iPhoneSDK4_3.pkg but, in addition to 4.3, found packages as old as iPhoneSDK3_0.pkg. So perhaps older SDKs may still be packaged with the App Store download if you know where to find it (I didn't).
Let it install in it's own folder of choice since you won't be able to force it to install in Applications/Xcode.app/Contents/Developer (which is where the Developer folder is now)
You'll find the package installed in the Platforms folder in the volume you chose. Move the relevant SDK over to the Developer folder within Xcode.app. You'll likely have to use sudo:
sudo mv /Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
Restart Xcode and you should see the new (old) SDK listed in your options for Base SDK. Yay!
Update as of 12 Sep 2013
If the "older SDK" you're trying to add comes bundled in Xcode 4.3 or later, adding the SDK is as simple as downloading Xcode from dev center link that says "Looking for an older version of Xcode?" (currently points here), mounting the dmg, then copying the relevant files over.
In terminal, you'd do something like this (edit for the appropriate SDK version number):
cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
For SDKs from versions of Xcode prior to 4.3, the older steps are still relevant.
I found this happens to work for getting the Xcode 5 GM to compile builds that carry the old iOS 6 UI even when deployed on iOS 7 devices. Useful for fixing bugs pending a UI redesign. That said, there's got to be an easier way to get the iOS 6 UI on an iOS 7 device.
You can't. What you can do, however, is click on the top-level entry in the File Navigator. It'll take you to the application settings. Go to the tab called Build Settings, and change the iOS Deployment Target to whatever version of iOS you'd like to support from (the earliest version you support).
See "To Edit a Build Setting…": http://developer.apple.com/library/ios/documentation/ToolsLanguages/Conceptual/Xcode4UserGuide/Building/Building.html#//apple_ref/doc/uid/TP40010215-CH9-SW5
Open Xcode and open Preferences (Xcode -> Preferences menu). Click the Downloads icon and look in the Components tab. All versions from 3.0 to 5.1 should be available. Just click Install for the ones you want to use.
None of these answers worked for me for Mac OS 10.8 and XCode 4.5. But now that things are installed under the Applications folder, it's much easier to manage.
Option #1: Keeping an older copy of XCode is easy to do by renaming it before you install the new one. Then you can use Product->Preform Action->Run Without Building on the new version to test on newer devices or newer simulators.
Option #2: If you REALLY want to build with older SDKs in the newer XCode, then you can simply copy over an SDK using finder. You'll need to have an older version of XCode installed under Applications for this to work. In the following example, I just renamed XCode 4.4 to XCode_old before I installed XCode 4.5. Note: You can right click on the .app file and choose Show Contents to get to these files or just use the cp from a terminal window.
from: /Applications/Xcode_old.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk
to: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
Then, iOS 5.1 will show up under Build Settings as a Bask SDK. You can do the same thing for simulators:
from: /Applications/Xcode_old.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk
to: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
You can't, but it will build fine for a device that is plugged in running an old version of iOS (what you should be conducting your proper testing on).
You have to run your application in the older version of Xcode that came coupled with the older iOS version. I have 3.2.5 installed under /Developer-3.2.5/. I have to say it's about 10 times faster than Xcode 4... You can download old versions here: http://iphonesdkdev.blogspot.com/2010/04/old-versions-of-iphone-sdk.html
I had a similar issue in Xcode 4.02 for Snow Leopard using SDK 4.3. I wanted to test on an iPhone 3G, but iOS4.2 is the latest (and correct version) for that device. In order to 'see' and run on that device in the Scheme, I had to change the Build Settings for iOS Deployment Target as described above. (btw you also have to have restrictions on the iPhone turned off to let Xcode install the app :) )
In addition to Steven's answer, you can find older versions of XCode - including the older SDKs:
Looking for an older version of Xcode?

Resources