Xcode displays this error every time i run the app on simulator , he forces me to uninstall the app first before every run .
i have 3 .xcconfig files on this project , Is the problem can be related to this? because all other projects are running fine without uninstall.
Xcode is Version 12.0.1 (12A7300)
Try going to Window>Devices and then click simulators. This shows a list of all your simulators. Delete any duplicates.
After that I would look for anything that stands out in your info.plist and in your project under "Build Settings" or "Signing and Capabilities".
These might also help:
iOS simulator: could not hardlink copy. Wrong path in my filesystem?
https://developer.apple.com/forums/thread/67294
I have a problem when it comes to uploading my app to the Apple Store, this is the first time I work with IOS. The Build is working correctly, however, when I perform the project archive (which by the way runs without errors) it does not appear on the Organizer screen so that I can upload the app to the store. I have already created the distribution certificate and the production profile. I already removed the project and added it again, installed an older version of XCODE, tested it on another project but always the same thing.
I am using Quasar / Cordova, version of Xcode 11.3 MAC version Catalina 10.15. In some places I found some people advising to disable the "skip install" property in the build settings, but it also didn't work. Could they help?
I faced same issue after OSX update to 10.15.5
Follow the steps below:
Delete the sub-folders in Archives.
Delete DerivedData folder.
Please perform this steps :
Xcode -> Build Settings -> Installation Directory -> Set value $(LOCAL_APPS_DIR) or /Applicatins
OR
You can open organizer manually also. After successfully archive please perform this steps :
Xcode -> Window -> Organizer
I wanted to setup iOS testing on simulator on my MacBook-pro. Im using appium 1.6 and Xcode 8 and iOS 10.1 as simulator OS. I ran my appium server and set the desired capabilities and used an .ipa from the app store and it crashes on launch while doing an inspect on appium. Is it happening because i don't have a app signed for development? what are the requirements for the app to be tested for using? Do i need signed apps to be used for testing on simulator too ?
You can create a .app file useing the belowing instruction:
1- Go to:
xcode > File > New Project > (select ios at top bar) select Tabbed Application > click Next > give project name and select swift as language and complete process.
2- Open the project and run it. After running the app in the simulator, you will find the project .app file in the product folder (expand your project in xcode > product.
you can use this .app file for your appium test.
3- You can also get a lot of free .xcode project on the web. download this project, open the .xcodeproj or .xcworkspace file in xcode and run it. you will find the .app file in the product folder
if you want to run your ios app in the simulator, you need a .app file, not .ipa file. The .ipa file runs on the device. Try to generate a .app file for simulator.
Yes, you need apps to be signed with a developer provisiioning profile. You can use the iresign to do it. you should input your ipa file developer provisioning file(contact your dev) and click resign. It will output the resigned app
The same dev provisioning file, dev certificate should be installed in your mac from where you run your scripts.
Note: you cannot run .ipa on simulators. you need .app version of the app , for which you need to contact the developer too
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.
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.