Xcode 10.1 dyld_shared_cache_extract_dylibs failed iOS 13.4 - ios

I am trying to run iOS app on iPhone Xr (iOS 13.4) from Xcode 10.1 on macOS Mojave 10.14.6
version. But I get error
dyld_shared_cache_extract_dylibs failed
I downloaded support file for 13.4 from here
I have tried all the solutions like this, this and this
Can anyone please help me on this?

I was able to get this fixed by downloading a new Xcode 10.1 and then added 13.4 support file in Xcode.
UPDATE
Updated my iPhone to iOS 13.4.1 and started getting same error again. Then tried running app from Xcode 11 and was able to run app from there.
Then again tried running from Xcode 10.1 and it worked.

Related

how to run iOS simulator 10.3.1 on Xcode 12.4?

currently we are developing a flutter app with flutter SDK 1.20, we are sticking to version 1.20 due to some outdated packages we use.
after some googling we found that we still can open a debugging session on iOS simulators 10.3.1,
we are using Xcode 12.4 and when we try to add a new simulator and try to download a new OS version, we downloaded iOS simulator 10.3.1 and its added in Library/Developer/CoreSimulator/Profiles/Runtimes as iOS 10.3.simruntime
but unfortunately its not appearing when we choose to install an OS version on a new iOS simulator.
all we can choose are these simulators only...but 10.3.1 not showing:
how can we choose iOS simulator 10.3.1?
did you somehow fix this problem?
Regards

Xcode 12.3 couldn't install app on iOS 14.3

I've updated my iPhone to iOS 14.3 and it required me to update Xcode to 12.3 too. But Xcode now gives me the following error whenever trying to run/debug the app through the device.
Errors were encountered while preparing your device for development. Please check the Devices and Simulators Window.
I tried restarting Xcode, reconnecting the device, changing deployment target etc. with no luck.
if you updated you iOS to latest beta version, you should also use latest Xcode beta version.
Or else restart your device.

How to run Xcode 11.4 on macOS Mojave 10.14.6

Background on problem:
I have an iPhone 6s that has updated itself to iOS 13.4. Before the iOS update, I could code + run my app on the device from Xcode, great.
Now I can't run my app from Xcode on the device to test my code, as it says:
Xcode could not locate device support files
This iPhone 6s is running iOS 13.4 (17E255), which may not be supported by this version of Xcode. An updated version of Xcode may be found on the App Store or at developer.apple.com.
So I tried installing the latest Xcode (11.4) which now says I have to update my whole OS to Catalina.
I don't want to do this as my system is working fine and I have heard bad things about that release.
Question:
Is there a way I can get Xcode building to my iPhone without updating my whole OS and potentially screwing up my whole machine?
You cannot run Xcode 11.4 on Mojave but you can add support for iOS 13.4
Download the 13.4 image from this repo
Quit Xcode
Unzip the archive and move the folder into /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Launch Xcode
Consider that this way adds only the support for iOS 13.4, nothing else.
Update: This does not work with iOS 14 because iOS 14 requires Xcode 12.
Here's an alternative solution that doesn't require downloading files from an untrusted source:
Install the latest release of Xcode that runs on Mojave (currently Xcode 11.3.1). It can be downloaded from Apple's developer pages.
From the same page, download a release of Xcode that supports iOS 13.4 (for example Xcode 11.4.1). Unzip it, rename it to "Xcode-11.4.1.app" and move it to the Applications folder, but don't run it.
Add a symbolic link for iOS 13.4 from the DeviceSupport folder in Xcode 11.4.1 to Xcode 11.3.1, as described in Peter Steinberger's Gist.
If you use the versions used in this answer, the command to add the symbolic link would be
sudo ln -s /Applications/Xcode-11.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.4 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
You can run Xcode 11.4 - 11.7 on your Mac which is running 10.14.
Download Xcode 11.4 ~ 11.7 from https://developer.apple.com/download/
Extract the .xip file, and you will get Xcode.app
Modify LSMinimumSystemVersion in Xcode.app/Contents/Info.plist from 10.15.x to 10.14
Now you can use Xcode 11.4 ~ 11.7 without upgrading to Catalina.
However, this trick doesn't work for Xcode 12, which requires some frameworks that do not exists in macOS Mojave.
My Apple TV 4K was running tvOS 13.3 and I upgraded to 13.4 which required that I use this technique to keep working with Xcode 11.3.1.
What is odd is that in the DeviceSupport folder, Xcode 11.3.1 only ships with tvOS up to 13.2. So how did it ever work with a hardware device running 13.3? I guess 13.2 and 13.3 are close enough that 13.2 still works.
13.4 does not work out of the box, so I copied both 13.3 and 13.4 from the Xcode 11.4.1 app into my 11.3.1 app. All is well again.
You can run Xcode 11.4 - 11.7 on your Mac which is running 10.14.
Download Xcode 11.4 ~ 11.7 from https://developer.apple.com/download/
Extract the .xip file, and you will get Xcode.app
Modify LSMinimumSystemVersion in Xcode.app/Contents/Info.plist from 10.15.x to 10.14.6
Now you can use Xcode 11.4 ~ 11.7 without upgrading to Catalina.
However, this trick doesn't work for Xcode 12.
I tried this trick on my mac mojave 10.4.6

This iPhone 6 is running iOS 11.3.1 (15E302), which may not be supported by this version of Xcode

I'm using Xcode 9.2 with Sierra 10.3.3 . And my iPhone 6 is with 11.3.1 (15E302). I'm unable to use my iPhone 6 for the test purpose of my IOS apps. Because, the Xcode says, Could not locate device support files. This iPhone 6 is running iOS 11.3.1 (15E302), which may not be supported by this version of Xcode.
Please help me if anyone have the device support for 11.3.1 (15E302)
Thanks
You need to update to Xcode 9.3.
Another option is to download the 11.3 device support
iOS 11.3
Remove "(15E217)" from folder name, so it became "11.3". Restart Xcode.
You need to upgrade your xcode version to make the app capable to run in that version of iPhone , or you can get the support files form Here and put in this path ( after unZip )
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Xcode 9.2 only supports up to iOS 11.2
Update Xcode

iPhone won't connect in Xcode 7.1 beta

When I connect my iPhone (iOS 9.0.2), I get the error:
An error was encountered while enabling development on this device.
Please try rebooting and reconnecting the device. (0xE8000076)
What should I do to resolve this issue?
With Xcode 7.1 beta you should run run iOS 9.1 beta. Using a GM iOS and a beta Xcode together leads to this kind of problems.
Simply use Xcode 7.0 GM with your installed version of iOS.

Resources