Can't launch iOS Simulator from Visual Studio 2015 after Mac Update from 10.0 to 10.1 [duplicate] - ios

I am trying to run the sample example for Xamarin.Forms. I have made the sample application. I have added the required packages in the project.But for some reason I am getting the the error
Failed to launch the simulator: Could not load the framework 'libswiftCore.dylib' (path:
/Applications/Xcode8beta.app/Contents/Frameworks/libswiftCore.dylib):
not found. error MT1008: Failed to launch the simulator: Could not
load the framework 'libswiftCore.dylib' (path:
/Applications/Xcode8beta.app/Contents/Frameworks/libswiftCore.dylib):
not found.
I am using XCode 8 beta on my Mac
Xamarin studio 6.1.1
I have set the paths for the SDK correctly in the Xamarin preferences and it is saying that the SDK is available at the path that has been mentioned.
Whenever I try to run the application it compiles well but just before the simulator is expected to start it shows the above message.
How should I resolve this issue ?

You need to update Xamarin Studio (and/or Visual Studio). This is the release that fixes it. Here is the post about the issue with the corresponding bugs that match your exactly.
Summary, Xcode 8.1 changed the location of the library so it caused Xamarin to error. Xamarin released a hotfix to the stable channel that resolves it.

Try updating to a stable version of Xcode.
From the Xamarin.iOS 10.0 release notes:
The latest features and API requires Xcode 8.0 GM and the bundled iOS, tvOS and watchOS SDKs
Apple Xcode 8.0 requires a Mac running OSX 10.11.5 (El Capitan) or newer
Builds supporting the final release of Xcode 8.1 have just been released, so that is also an option.

Related

iOS simulators are not available in visual studio after updating xcode to version 14

Everything was working fine till updating Xcode to version 14. But after updating Xcode to latest version 14, simulators are not available in visual studio.
Also, app is not getting installed on physical devices. Just getting a success message as normally but the app is not on the device.
I have downgraded the Xcode and now i am able to see all the simulators and deploy the Xamarin forms App on device and simulators.
Steps to Downgrade XCode:
Go to Apple developer site and login with your credentials .
Once you logged in into site, scroll down where you can see XCode 13.4.1 see the below screenshot
XCode on Apple store
Click on download. Once it is downloaded kindly uninstall your previous XCode which on your mac and then install XCode 13.4.1.
Give the exact XCode path in Visual studio. Below is the screenshot for reference ---SDKManager
Xamarin Forms App specific settings
Now you can build the app and deploy your app in the simulators or mobiles.
I got a new update today for Visual Studio for iOS16 and after updating VS all simulators are available now.
Install Visual Studio 2022 for Mac. It works with Xcode 14 & iOS 16.

.Net MAUI iOS only supports later version (iOS 16)

I am running Visual Studio for Mac Preview v17.4 with MAUI workload, but when I try to run the hello world app on my iOS 15 device I get an error to downgrade to a lower version but I can't do so in the project build settings because the only available version is 16.
Any ideas how to add iOS 15 build targets to VS for Mac MAUI?
There's a bug right now where the simulator dropdown is reading from the Info.plist file. Add an entry into your Info.plist file for the following property https://developer.apple.com/documentation/bundleresources/information_property_list/minimumosversion that matches the Minimum OS Version you've selected for your iOS target. You might have to restart vsmac or unload/reload your project. After doing this your lower version simulators should show up.
I beleive you have Xcode 14 . So download Xcode 13.4.1 version and select this Xcode in the path to see the simulators coming back. For now .netmaui is not completely supporting xcode 14. They are working to target Xcode 14. For now jus downgrade Xcode version below 14.

Lower the 'Deployment Target' to see older simulators or check your Apple SDK path warning after update

I updated my XCode to XCode 13 for make test my Xamarin.iOS app on ios 15 devices. I updated visual studio for mac app to version 8.10.9
After this updating, I opened my app in visual studio for mac but when I try to choose devices, I can't see devices. There is only a message that: "Lower the 'Deployment Target' to see older simulators or check your Apple SDK path"
I tried to change deployment target and I checked Apple SDK path from Preferences/SDK Locations/Apple/Apple SDK. I tried to set path both "/Applications/Xcode.app" and "/Applications/Xcode.app/". But none of them didn't worked for me. What sould I do?
Thanks in advance.
Just experienced the same issue after auto update to Xcode 14. Downgrading to Xcode 13.4.1 fixed the issue.
More information about Xamarin.iOS support with Xcode 14 here
There isn't a Xcode 13 compatible version of Visual Studio for Mac/Xamarin.iOS released yet. It should be here soon, but if you need it to work now, go over to the Apple Developer portal and download the latest Xcode 12 version and (re)install that.
More information can be found here.
I experienced the same error in Oct 2022 with XCode 13.3.1 installed on an M1 Air with Monterey macOS 12.3.1.
Visual Studio Community 2022 for Mac, Version 17.3.5 (build 0)
This is a project several years old that I've not worked on for over a year. The deployment target in the info.plist is 9.3.
I have no problems building a new Xamarin Forms project and running on the simulator.
The SDK Locations panel says:
XCode 13.3.1 found at the system location (xcode-select)
/Applications/Xcode.app
After satisfying myself that a basic new project worked, I applied the simple classic technique of deleting the obj and bin folders for the core and iOS projects. That fixed it and I was able to build and run on the simulator.

Submit to App Store built with iOS 12.1 SDK

I’m using Xamarin Forms 3.4 and VSTS to build and deploy to iTunes and Google Play.
During February (perhaps a bit earlier) I was getting a warning when I was trying to deploy to iTunes. The warning was the following
SDK Version Issue - This app was built with the iOS 11.4 SDK.
Starting March 2019, all iOS apps submitted to the App Store must be built
with the iOS 12.1 SDK or later, included in Xcode 10.1 or later
Everything that I tried so far didn’t work.
So I added a “Bash script” step before the build step and added the following 2 lines in the script
sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 5_16_0
echo '##vso[task.setvariable variable=MD_APPLE_SDK_ROOT;]'/Applications/Xcode_10.1.app;sudo xcode-select --switch /Applications/Xcode_10.1.app/Contents/Developer
I found the previous script and guideline in https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml&viewFallbackFrom=vsts#xcode
The build is successful but the deployment to iTunes fails with the error
ERROR ITMS-90596: "Invalid Bundle. The asset catalog at 'Payload/MyApp.iOS.app/Assets.car' can't be processed. Rebuild your app, and all included extensions and frameworks, with the latest GM version of Xcode and resubmit."
Before adding the “Bash script” step, I didn’t have this problem in iTunes deployment.
So I guess that the question is obvious… what am I doing wrong?
Go to This Link And look at
Apple has indicated that starting in March 2019, all apps and updates
submitted to the App Store must have been built with the iOS 12.1 SDK
or later, included in Xcode 10.1 or later. Apps should also support
the iPhone XS and 12.9" iPad Pro screen sizes.
I think in your case maybe updating Visual studio will solve your issue, Because updating VS will update your Xamarin.iOS sdk version to 12.1+ if it is lower than this.
And also if you have Xcode 9.4 installed then you will need to install Xcode 10.1 to provide support for iOS 12.0 and above for Visual Studio
You can download latest version of Xcode from following link
How to download Xcode DMG or XIP file?

Is there a way to get iOS 7 simulator on Xcode 7

I just updated my Xcode to the newest version (7.0 7A220) and I lost the iOS 7 simulator that I had in the previous version. I still have the iOS 7 SDK and was wondering if there is way to use it on the newest version of Xcode, instead of installing another version of Xcode on my OS X.
Download the official installation package from: https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/com.apple.pkg.iPhoneSimulatorSDK7_1-7.1.1.1354140590.dmg
This is where Xcode 6.4 is downloading it from.
But it won't work on El Capitan, only on Yosemite. The runtime has a problem with El Capitan... So until Apple solves it (if they want to), we're stuck.
As for my initial analysis referred from link you cant install it and use older version of Xcode version for using respective iOS simulators. To use iOS 7.1 go for Xcode 6.4 or earlier. Install Xcode 6.4 and download respective simulator from Preference.
To download older version of Xcode you need to login with developer account https://developer.apple.com/downloads/

Resources