After my iPhone 13 updated to iOS 15.6, Xcode 13.4.1 no longer was able to debug apps on the device. Many posts and Xcode support recommend that I roll back to Xcode 13.3.1.
So I renamed Xcode to "Xcode 13.4.1", downloaded the xip for 13.3.1 and also confirmed that I am running the previous version, via the About menu.
Yet I still get the following error:
Failed to prepare device for development. This operation can fail if
the version of the OS on the device is incompatible with the installed
version of Xcode. You may also need to restart your mac and device in
order to correctly detect compatibility.
I have cleaned the build folder, I also downloaded the 15.5 image, renamed it to 15.6, and placed it in the DeviceSupport folder. But it nothing has worked.
I don't know if Xcode uses any config files that I need to clean, or anything else I can't think of. Has anyone been through this?
Xcode 13.4 (build 13F100) has a known issue preparing devices running iOS 15.6 beta and is not officially supported. The fix is to wait for a newer build of 13.4.x Xcode.
Anecdotally some have said it works after disconnecting the phone and restarting both the phone and the Mac.
There are two workarounds:
The official workaround from Apple is to install Xcode 13.3.1. You have tried this. The majority of the config files are inside the Xcode directory. You can download AppCleaner and have it show you everything it would delete if you allowed it to uninstall Xcode. For me that list was 11 GB and 39 files. I'd exam those files and possibly make copies of anything outside /Applications/Xcode.app before allowing it to remove.
Navigate to
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ and duplicate the 15.5 folder with a new name of 15.6. If this works, it is much safer.
Yesterday I updated my Visual Studio and Xcode. Immediately afterward I lost any listing of available iOS simulators for my Xamarin project in Visual Studio. I can plug my iPhone in however and deploy my project onto it just fine, but I'm used to working with Preview in VS and also running a simulator for quicker response.
I'm currently running the following versions:
• Updated to Xcode 11 (11A420a)
• Visual Studio Mac 8.2.6.26
• Mac OS 10.14.6
• iOS 13.0 on iPhone 7+
Now Visual Studio shows the only available simulator as being the Generic Simulator with a hammer, which doesn't launch anything that I can tell. When I look at the list to choose a simulator I see the message line: "Lower the 'Deployment Target' to see older simulators or check your Apple SDK path"
When I launch a test project directly from within Xcode, it offers iPhone 8, 8+, 11, 11 Pro and others as available simulators and those indeed work. In Visual Studio I have changed each Deployment Target from 6.0 to 12.2 and not one of those makes available any simulators.
I'm not sure what the Apple SDK path is about, how to check it and where it needs to be pointing.
Does anyone have any thoughts about what adjustments need to be made to regain my iOS simulators in Visual Studio Mac again after these updates?
Thanks so much :)
After trying a bunch of suggestions, this simple fix worked for me. First I changed my deployment target in the info.plist from 9.3 to 11. After checking that my Apple SDK path in VS was pointing at Xcode11 and the iOS SDK version on my Mac was 13.0, I simply force quit Visual Studio and Restarted my computer. Then I began to see iPhone8 & iPhone11 simulators. Goodluck.
Updating both XCode and Visual Studio for Mac worked for me.
Just updating XCode did not work.
I also fidgeted with the Deployment Target which I believe refreshed the simulators list.
UPDATE: I confirm again that when I go to info.plist and just click on the deployment target drop down, the simulators list gets update. Little funny.
Ran into this issue many times for the last updates. Nothing really helped, until I came across a Microsoft forum where someone mentioned the Apple SDK path needs a trailing slash, which is not added when using the Browse button to navigate to the Apple SDK Location.
So when using Visual Studio for Mac, navigate to Visual Studio -> Preferences -> Projects -> SDK Locations -> Apple and please note your Apple SDK Location should be something like:
/Applications/Xcode.app/
rather than
/Applications/Xcode.app
Changing the "Minimum System Version" did the trick for me.
Eg. I had 14.4 and I changed it to 14.0 and restart VS the all the simulators appreared.
I resolved the issue as well by going under the Visual Studio --> Check for Updates menu and switching the channel to "Xcode 11 Previews". Finally some updates were available and I updated everything normally. I also updated everything in the "Stable" and "Preview" channels as well. Now I have iPhone 8 and iPhone 11 simulators working, however I no longer have any of the other simulators like iPhone 7, etc. like I did before.
After updating Xcode via the app store, restart your machine. The simulators should reappear.
UPDATE
This didn't work for me after the latest update. However, setting the startup project to Android, then switching back to iOS was enough to repopulate the list for me after restarting my machine.
info.plist has an option called Minimum supported version which says which version of the iOS you are targeting.
in my case it was 10.3 earlier, when i have upgraded xcode (12.4) and vs for mac(8.9.6) to support iOS14. this caused the conflict between the xcode supported iOS version and plist version.
I changed it to 14 in plist for the Minimum supported version and it worked for me.
In summary check the xcode supported version and update the minimum supported version accordingly
Same here, just need to change 'Minimum system version' on your info.plist file in my case was 12.0 and then updated to 12.1 and vualaaaaa the simulator list refresh it.
I had the same problem when the iOS 14 updates were first installed. I had already installed both XCode and VS updates.
What I did is: I restarted the Mac and I had to install the XCode Command-line tools from VS separately. Then the simulators were visible.
What always works for me is connecting an iPhone device. After I connect it, the simulators appear. I guess connecting a physical device also refreshes the simulators list.
This time, nothing was working for me, until I deleted /Library/Caches/Xamarin/XMA and /Library/Caches/Xamarin/mtbs and restarted VS. That helped.
Here's the actual solution if updating everything else still doesn't work. Open terminal, type in "instruments -s devices" to see a list of all the installed simulators.
In your info.plist set "Minimum System Version" to match the lowest simulator version you have installed.
After plugging in my physical phone with the usb cable, the list of simulator devices appeared in like 2 seconds... Before plugging in my phone, only the generic simulator and my phone were shown as deployment options
Just restart of my Mac worked...
I have managed to install the trial version of MonoTouch as I am interested in buying a license but I want to try the product first. The problem that I am having is this:
I have installed MonoTouch and MonoDevelop
I have downloaded Xcode which has the iphone sdk's bundled in.
When I open monodevelop and create a new iPhone application or project, it creates it and opens it in monodevelop. Awesome. when I try to compile and run in the simulator, I get an error stating "The iphone sdk is not installed."
Now, it could be due to the fact that the xcode I downloaded from the apple developer site is an app file ie no installation is required, you extract the dmg file and then Xcode runs straight from there and you can copy it from the dmg straight to your drive and run it from there. is there any specific place where I should put that file for monotouch to find it? how can I solve this?
Another problem, upon opening the xib file in my project, it does not open interface builder in monodevelop, it opens the files source code. hopefully by solving the xcode issue it will take care of this as well?
Using a Macbook Pro OSX 10.7.3
You're right, the problem is that MonoDevelop can't find Xcode.
The easiest way is to install Xcode from the AppStore. In this case MonoDevelop will detect the location automatically.
You can also tell MonoDevelop where the SDK is in MonoDevelop's preferences (remember to restart MonoDevelop):
Or you can copy Xcode.app into your Applications directory, and MonoDevelop will find it automatically (if you have the latest MonoDevelop version and Xcode 4.3).
Have you tried running XCode and checked that it is installed? Might seem like a silly question, but when you download XCode from appstore you only download the installation program, which you in turn need to run to actually install XCode.
I have solved the problem. I downloaded another version of xcode which physically installed it on the machine now everything works beautifully.
I had xcode 3.2.something. and iwth ios sdks 3.0-3.1-....4.1 and 2 iphone simulator sdks.
Now i installed xcode 4.0 with ios sdk 4.3 something like that.
Now all my previous applications cannot be launched nor on device nor on simulator because there's not a single old sdk available.
so next i reinserted the original cds containing macosx and xcode and reinstalled the first xcode i used, but now there's not one ios sdk available at all.
i've been surfing the net for hours now, andi have a couple of questions:
1)have i had to uninstall the xcode 3.2.x before installing xcode 4?
2)how to uninstall applications on mac??? just to make sure that the answer i've found is the correct one.
3)how can erase the traces of all previous xcodes and their sdks in order to install the original one, now that i learned how to install different xcode versions side by side.
4) now what do you think i should to recover? do i have to back up everything and reinstall mac from the beginning?
thank you
So, your questions:
1. Have I got to uninstall XCode 3.2 before installing XCode 4? - No, you don't, but the XCode installer will overwrite your old copy by default. When installing the newer version of XCode and the iOS SDK you must specify a different install directory (eg, create a new folder in the root of your drive called 'Developer 4' for XCode 4.
2. How can I uninstall XCode? - Normally on a mac you would just drag your application to the trash, but it's a little more complicated with XCode. Refer to the instructions at this link: http://pushkararora.com/how-to/how-to-uninstall-xcode-completely/
3. How can I erase all traces of all previous XCodes? - see the answer above for question 2 :)
You can obtain old versions of the SDK from various unofficial online sources if you need to roll back to iOS 3 SDKs. However, it may not be all that much work to move your apps over to the 4.x SDKs.
ok it turned out that at the beginning i was using xcode 3.2.4 with ios sdk 4.1
The xcode that comes with mac osx only targets mac sdk. No iphone support
So i got xcode 3.2.4 setup from a backup (you can find it online) and installed and this should work
And now i have 3.2.5 using sdk 4.2 and targetting all till 3.0
and also xcode 4.0.2
I'm new to iOS development. I just installed Xcode 3.2.4 and the iOS 4.1 SDK on my Intel iMac running Snow Leopard. According to the docs, I first need to create a development profile by specifying a device (which in my case is an iPod touch 4G), but the Organizer window that I open up after starting Xcode comes up fully blank.
Screenshot 1: http://img15.imageshack.us/i/screenshot20110305at104.png/
In addition to that, when I click on "Create a new Xcode project for Mac OS X or iPhone OS" on the Xcode welcome screen, I do not have an option to start a new "Cocoa Touch" project.
Screenshot 2: http://img18.imageshack.us/i/screenshot20110305at110.png/
It sounds like you may not have the iOS SDK installed, or installed properly. Also, most developers will have upgraded to Xcode 3.2.5 a long time ago, so we won't be able to accurately compare what you're seeing to our own installations. Let me strongly suggest that you download the latest iOS SDK and install that. Once you get the current SDK installed, I think both issues that you're asking about will go away.