The list of the simulators of iOS in visual studio is empty.
In Xcode, they are all still listed.
I think today was the rollout of iOS 15 for the new iPhone 13.
Just starting the simulator at least lets me still start the newest iPhone but I dont think that is compatible with visual studio yet.
So it seems like the rollout overwrote all simulators only leaving me with the iPhone 13. So no simulator appears in my list anymore.
I tried:
removing bin and obj folder.
Unloading and reloading iOS project.
restarting VS
restarting MAC
checking xCODE simulators (all there)
downloading ios 14 in xCode
Anyone else having this issue? Please report.
Thank you
This has happend because the system automaatically updated to ios 15 in the background. this wasnt support by visual studio and a downgrade is only hard to achieve. however, this thread deals with it there are multiple options.
downloading the beta xamarin.ios xamarin.ios-14.20.0.27.pkg worked for me:
https://github.com/xamarin/xamarin-macios/issues/12778
Related
I would like to verify whether my Xamarin iOS app is ready for iOS 15 before it's official release. I've installed the public beta of iOS 15 on my iPad and there seems to be an issue, so I would like to debug it. Unfortunately I'm neither able to deploy the app to my device nor can I deploy it do an iOS 15 simulator, because they are not appearing in the dropdown.
I did the following things:
updated MacOS to the newest version (11.5.1)
updated Visual Studio for Mac to the newest version (8.10.6)
updated Xcode to the newest version (12.5.1)
Since this didn't work I've installed the Xcode-beta (version 13.0 beta 4) and changed the SDK location in Visual Studio to Xcode-beta.app.
Unfortunately there are still no simulators appearing in the dropdown and when I try to deploy the app to my device I'm getting the following error:
error HE0003: Could not load the framework 'IBFoundation' (path: /Applications/Xcode-beta.app/Contents/Frameworks/IBFoundation.framework/IBFoundation): not found.
Am I missing something? Is it even possible to be able to debug Xamarin.iOS apps with iOS 15 or is Visual Studio just not ready yet?
UPDATE:
I've changed my SDK location in Visual Studio back to the stable Xcode version, unloaded and reloaded the project and now I'm able to deploy to my iPad. So I'm not sure whether the stuff I did before actually changed something or Visual Studio just had another unrelated problem previously..
Would still be good to know how you could get the simulators to work as well.
I had the same problem, installed xcode 15 beta 4 and wired it up to the latest VS Mac preview and it wouldn't let me deploy/debug to the ios 15 device - "error HE0003: Could not load the framework 'IBFoundation' (path: /Applications/Xcode-beta.app/Contents/Frameworks/IBFoundation.framework/IBFoundation): not found." and no simulators either. What I could do (and I'm sure this makes me a bad person) is drop back to xcode 12.5 and copy over the supporting ios 15 platform files to that package, restore the latest "stable" Xamarin and run using the SDK xcode 12.5 location. Basically I copied the "15.0" folder from beta to the current latest xcode. Aka copy /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/15.0 to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport It lets me deploy and debug on an ios 15 device from VS Mac and also access the simulators and that is what I'm after. 1
That's weird, I can deploy(by start debugging) on my iOS device with iOS 15 Beta 4, launch the app manually and debug it after that.
My development machine has not changed (no preview vs4mac nor Xcode/macOS beta)
Here's what I did to get iOS15 working on the simulator from Visual Studio.
Install Xcode-beta from developer.apple.com/downloads
Once installed, close out of all simulators
Open Xcode-beta, go to Xcode > Open Developer Tool > Simulator, that should open an iOS15 simulator
Close out of visual studio
Wait until the simulator is fully up and running, then open Visual Studio and the simulator should show up in the list as shown below
I know that so many people have asked this question earlier. But I think my situation is different. In my case Xcode 9.2 was already installed and I upgraded macOS from 10.13.2 to 10.13.5. Then I installed Xcode 10 beta. Now when I'm running any project on Xcode 9.2 and try to use simulator, its becoming black though I can see the xcode logs. Things I have tried so far,
Uninstalled Xcode 10 Beta
Uninstalling & reinstalling Xcode 9.2
Uninstall Xcode 9.2 and install Xcode 9.4
Reset Content & Settings from simulator menu
Restart Device from simulator menu
Resizing simulator.
Followed this post and cleaned DerivedData, CoreSimulator, iOSDeviceSupport
Re add simulators from devices & simulators section
Now what should I do now?
Try running defaults write com.apple.CoreSimulator.IndigoFramebufferServices FramebufferRendererHint 3 in Terminal (source). Note that this will force Simulator to use OpenGL instead of Metal, so you'll want to re-run it with 0 once this gets fixed.
try workaround, delete Library/Developer folder and start it again
Another option that occurred for me. I subclassed UIWindow and called .init(frame: .zero). Changing to .init(frame: UIScreen.main.bounds) fixed it.
Open up XCode 9 and go to add additional simulators(pictured below) re-add iOS 10 and iOS 11 simulators
You seem to have tried everything except changing the iOS simulator version you are trying to run.
Maybe the problem lies with that specific version of iOS simulator eg. iOS 11.x iPhone 6. Change that and it may run OK.
If you do not have desired version with you, go to XCode->Preferences->Components, and download one of the older iOS simulators available at the time of XCode 9.x.
Then, go to XCode->Windows->Devices and Simulators. Press + sign at the bottom left of the screen. Add your desired simulator version (give your desired name), so that this newer simulator appears in runnable scheme list of XCode.
This is just for the users that failed trying everything to save Xcode 10 and then reinstalled Xcode 9.4.1 and the simulator still not working.
Here is what I did to give Xcode 9.4.1 back running.
After I got this problem after upgraded to Xcode 10.
I tried that famous FramebufferRendererHint, didn't work for me.
I have found out the Xcode 10.1 beta release didn't fix the problem for someone else, so I didn't bother to try 10.1 beta.
From the online research I know the problem is in /Library/Developer/PrivateFrameworks/CoreSimulator.framework.
Without Xcode even installed on your Mac /Library/Developer doesn't exist.
So it is installed by Xcode when your first time run Xcode. You would notice a screen showing "Installing Components"
But after you installed Xcode 10 and then install/run Xcode 9.4.1 it won't touch that folder anymore. So problem stays even you put Xcode 9.4.1 back
That's why after I downloaded Xcode 9.4.1 expanded and ran it. Problem still there.
I didn't backup my Mac. So I decided to start from scratch. Restored my MacBook from Internet, downloaded Xcode 9.4.1 again. and now everything is back to normal.
I can keep releasing the App to App Store now.
In my case (xcode 10), I just left the computer for 10 minutes or so (out of frustration!) and when I came back I found it at the starting screen! .... I guess for the first time it takes time
I recently downloaded the Beta version of Xcode 10. I opened an existing project and wanted to start it on a Simulator. But as soon as the Simulator started, may whole mac just froze. I could not do anything. The only thing that worked was moving the mouse.
After rebooting my Mac I thought the freezing was a beta bug in the Xcode 10 Release. So I went back to Xcode 9.4. But when I was using a small playground file, it happened again, while compiling the playground file. After another reboot I tried to recreate the issue with an existing Xcode project I had (the same I used for Xcode 10) but this time the simulator worked without any problems.
I am using:
MacBook Pro 2010
2.2 Ghz Intel Core2Duo Processor
16 Gb RAM
SSD Storage
Is my Mac just too old to work properly with Xcode or does anyone of you knows if this is an issue I can resolve?
I just ran into this (total system freeze, no pointer movement, nothing) with a single project on 10.14.0GM and Xcode 10, 10A255. I'd gone through and manually deleted the DerivedData folder, everything from the UserData folder except my theme, and DocumentationCache. No luck.
I then did a "Show Package Contents" on the project's .xcodeproj file and deleted everything but project.pbxproj and attempted opening again. Success.
I wasn't concerned with losing the auto-generated schemes on this very simple project structure; be aware that you may lose custom schemes and potentially other customizations related to project structure.
I'm seeing the same problem using Xcode 10.0 on a Mac mini (Late 2012) with 16 MB RAM and 2.3 GHz Intel Core i7.
I was using one simulator (an iPhone Xs Max) just fine for a couple of days, but when I changed to an iPhone 7 Plus (iOS 12), my whole computer froze with only the mouse pointer working. Switching back to the Xs Max simulator did not make the problem go away. Since I'm not using Playgrounds, switching to running on a real device instead of the simulator "fixed" the issue for me. Its not a real solution, but it keeps me from grinding to a halt until new versions of Xcode and Simulators come out.
I recently tried to run a simulation of a new iOS 7 app on Xcode 6.1.1 using my MacBook Pro during a visit to Indonesia. The app was based on AddMusic and made iOS 7 compatible. When I tried to run the simulator abroad iOS simulation targets available while testing in Australia had simply disappeared from the pulldown menu in Xcode. Moreover since I came home these simulators only reappeared when I removed, downloaded and reinstalled Xcode.
Until I reinstalled Xcode the only option Xcode offered was to run the app on an iOS device but I wasn't prepared to do this in front of clients without first being able to test a revision on a simulator.
Thankfully on this occasion I was able to demonstrate earlier versions I had installed on an iPhone 4 and iPhone 5 C before I left home. But it would be really good to know what I might be able to do to avoid this situation during my next visit abroad.
I suspect the issue may have been brought on by differences between my Internet connections at home and abroad.
Has anyone else experienced a similar problem that might be related ?
Top to your Right Click on
Window > Devices
You will see that no devices will be showing Do the following
Bottom Left
Click on the +
And then start adding your devices.
Just closing the projects from the File Menu, quitting Xcode and restarting Xcode worked for me
the version is the latest Xcode 7
Some things which might help you
Check deployment target in your project settings. Switching to lower versions of OS might help you get back all simulators.
Check your xcode version used in the command line tools. Go to Xcode -> Preferences -> Locations -> Command line tools
Quit Xcode and restart your system.
Hope these things help !!
I have that problem where I updated Xamarin and Xcode to their latest stable version.
My app will run on the Simulator, but won't run on the Device. It will install, then it will crash just after the Launch Screen, and it doesn't give any Error in the IDE.
I tried on another computer where Xamarin is on the same version, but Xcode is still on the 4.X ... and it launch with success and run as it should on the device.
So, is it just a problem with Xamarin and Xcode 5 compatibility ? Can I do something to fix that problem, any tips to solve this problem will be grateful.
What might be happening (that is happening to me) is that the resulting exe is too big.
I have an app that uses servicestack. Before xcode 4.6 it worked, after xcode 5 it does not work.
With Xamarin support and some research I realized that the "estimated size" for the "archive" in organizer was bigger than 62mb. Whenever that happens my app is killed before starting.
I am in the process of slimming down servicestack, but preliminarily it is working.
Bottom line: check the size of your exe. See limitation: Max size of an iOS application