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.
Related
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).
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
Visual Studio 2017 v15.9 on Windows 10 has apparently a new bug: the storyboard designer cannot connect to Mac. Previously in 15.8, the storyboard could connect and many features are working fine, however the ImageView could not work properly. After upgrading to to VS 2017 v15.9, the storyboard editor could not connect to Mac thus could not be opened, while VS is actually connecting to Mac and is able to compile and debug and deploy iOS app to simulators and devices.
I am having Mac Mini and xcode 10.1, but no VS for Mac. It is easy to replicate: just create a new Xamarin app with iOS project. After compiling and testing in simulators running in mac to prove things are OK, then double click on either LaunchScreen.storyboard or Main.storyboard created by scaffolding, then the designer tries to connect to Mac and end up with error message: "The iOS Designer requires an active connection to a Mac server. Please connect to a Mac to enable the designer.".
Now all my iOS apps work however I could not alter any storyboard. I don't like modifying the XML directly in a text editor.
I had spent hours researching solutions or hacks, so far no luck. Do you have some ideas? Cheers.
Here is a problem report that matches your bug description.
Visual Studio 15.9.2 has just been released, so try updating Visual Studio.
Here is a snippet of the Visual Studio 15.9.2 release notes:
Issues Fixed in 15.9.2
Xamarin iOS designer not working with 15.9 and Xamarin.iOS 12.2.1.10.
I am working on xamarin forms app and trying to debug app on ios simulator using windows visual studio 2017, but when build the app and try to launch app in the simulator it does not show it, only show build success message in the output window, even visual studio is already connected with mac agent and listing out all available simulator on mac machine. So please help me to sort out this issue and let me know what step should i take to get rid it.
thanks in advance
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?