Xamarin Studio does not recognize iOS device even though XCode does - ios

I have a Mac 10.10.5 setup with XCode and Xamarin Studio for iOS development.
After an update Xamarin Studio no longer recognized my iOS device. It turned out that XCode could not start. After launching XCode which installed several components XCode now WORKS, I can build, deploy and debug in XCode. However Xamarin Studio cannot see the device in the device selection box.
Xamarin Studio can see, build for and deploy to any Simulator.
Visual Studio which uses the same machine as a Build Sever can see the device in the device selection box, but will not deploy nor debug (nothing happens).
Everything worked before the Mac / XCode / Xamarin update. No changes to device, project or settings.

So Xamarin piggy-backs onto Xcode, meaning that as long as Xcode should see it, Xamarin should see it as well. This most likely means that something within Xamarin is causing your device to be filtered out of the deployment targets list. Could your "Deployment Target" within the Info.plist within your project not be set to the proper iOS version?

Related

Xamarin Classic IOS, Visual Stuidio for mac

Good morning and thank you for your time,
I am maintaining a mobile App made in Xamarin classic IOS with the Visual Studio Mac IDE. Recently Apple told me that I had to increase the SDK of this application to 15 to be able to upload my new version to the App Store, for this I had to update the operating system to MacOS Monterey Version 12.3.1, to later update Xcode 13.4 and to update the SDK of my project, once this change was made in Visual Studio Mac debugging options were disabled and the debug icon was changed to compile. When I access Run in the top menu of visual studio mac, the options to start debugging are disabled and no matter how much I change the debug project options remains the same.
Regards
enter image description here
It is very likely that you have some other Debug configuration that works (in Xamarin it could be Debug|iPhone).

Xamarin iOS: Deploying app to device or simulator with iOS 15

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

Remote debugging of iOS app on windows doesn't work. When running simulator on PC just showing black screen

I have Xamarin forms app for android and iOS.
When I try to debug iOS on my PC in Visual Studio 2019, the simulator just showing me a black screen. All controls in the simulator are disabled.
If I uncheck Remote Simulator to Windows (Tools->Options->Xamarin->iOS Settings), then I can see my app running fine on my Mac (M1). On Mac, I have Visual Studio 2019.
I had a Macincloud account last month and everything worked great, but switching to a real Mac (M1) doesn't go well.
Did somebody experience the same problem? I spent already few hours trying to debug iOS on PC, but so far no luck.
I tried this:
VS2019 Xamarin Forms Remote IOS simulator Black screen - How to fix?
uninstalling/installing xCode 12
changing default folder for xCode
Thank you!
Uncheck Remote Simulator to Windows.
Quit Simulator on Mac and run again.

Xamarin Visual Studio ios simulator not working

We recently acquired mobile solution that contains an ios and android project. Android project runs fine. When i run the ios project i get error stating
My environment is a windows laptop and a macbook pro running visual studio from windows.
I can pair to mac just fine
I am using automatic provisioning which appears to be correct since my team shows up in the team dropdown.
I feel like i did the provisioning correct because team would not show up in dropdown if not.
I have latest xcode installed on mac
I verified simulator runs fine on mac by starting through xcode
In the videos i watched as soon as mac was paired then more options appeared besides just simulator. (ipad, tvos, etc)
One question is when i registered my device i used the UUID from the macbook and not UUID of simulator. Could not get straight answer for this.
To be clear i am just trying to run the simulator and not a remote device.
Honestly i just want to be able to test the ios application. It should not be this many steps to just run a test. Is there a more simple way to test or am i on the right track?
Updating visual studio on my windows machine did the trick. I really wish the error would give me some kind of warning that would lead me to the conclusion that i needed to update visual studio. That would have saved me many hours.

Device showing as disabled while trying to instrument the app + Xamarin.iOS

I am trying to instrument an app by connecting the device to Visual Studio Community for Mac (version 7.3.3). I am able to install and run the app in device, but when instrumenting its showing as disabled.
After updating the Xcode, Visual Studio (for Mac) and the iOS version the device is getting detected now. Its showing in enabled state. I have updated my Xcode to 9.4.1 and Visual Studio to 7.5.3 and iOS version to 11.4.
In case you are facing the same issue make sure everything is up todate.

Resources