Unable to launch iOS app on simulator using Visual Studio 2022 - xamarin.ios

I'm using Visual Studio 2022 to develop an iOS app that I'm attempting to run on the simulator. The simulator apparently loads and runs but never completes or loads the app.
Screen shot:
This is what I get, there are no error messages of any kind. Anyone know whats going on here?
More information:
I do see this in the Xamarin output window
Authentication Error. Xcode 7.3 or later is required to continue developing with your Apple ID.
I'm using XCode 13.3 so I have no idea why I would be seeing this message.

Related

Xamarin.iOS - sudden error after updating Visual Studio: ibtool exited with code 72

I have a Xamarin.Forms app, but this concerns Xamarin.iOS only.
I want to run the app on an iOS emulator, but I get an error which I cannot find on the internet. This prevents me from testing my app on iOS. This happens ever since I updated Visual Studio 2019 to version 16.9.0.
The main error is "ibtool exited with code 72", but this causes a list of errors:
Does someone know how to fix this?

Did Android Studio 3.6.1 remove the connection assistant?

A young friend of mine would like to push a game created using www.buildbox.com to his Samsung Android Tablet. He is using Windows 10 and Android Studio 3.6.1.
But the Device Drop Down is greyed out and for some reason the AVD Manager, the SDK Manager and the Connection Assistant are missing from this tools menu.
On my Android Studio 3.4 I can still see the Connection Assistant
I checked the Release notes but could not find anything.
https://developer.android.com/studio/releases
I checked that Windows can see the tablet as a USB device and the friend told me that developer mode is enabled.
Any ideas what is going on ?
So I got a chance to look further into the problem.
It turned out, that the problem seems to be with Buildbox not generating a proper Android project. In particular the generated project is missing a proper module and a proper app configuration. Once I added those the missing connection tool reappeared.
However I still got an error.

Visual Studio Mac Won't Show iOS Simulators

I've got a Xamarin Forms solution with iOS and Android projects. The iOS side was working, I switched over and did a bunch of work on the Android side. Now I need to do some more iOS stuff (push notifications) and I can't get the iOS Simulator to kick in. Xcode is installed, VS says it can see the SDK. I can open the simulator from XC but inside VS no matter what Debug combination of the .iOS project I select all I get is "Generic Simulator". Any ideas?
Try Unload the IOS Project and Reload and Set as a Startup Project, it works for me
See the answer in the comment provided by #lowleetak:
Is the minimum supported version in Info.plist less than or equal to
the version of iOS Simulator that you have?
This was the issue. The project settings listed 10.2 as the target SDK but the info.plist file had 10.3 which wasn't installed on the machine via Xcode. The machine has Xcode 8.2.1 and iOS 10.2 installed.
Additionally there's now a bug opened about this behavior. If the two fields are going to allow different values there should at least be a warning next to them about the mismatch.
I also showed Generic Simulator only on my project after updating to XCode 14 early. At the release of XCode 14 the stable Visual Studio for Mac (Xamarin) release did not yet support this version of XCode. Even the preview channel was not yet ready. Guidance from Xamarin.iOS discussion group was that the special XCode14 channel could be used to evaluate. https://github.com/xamarin/xamarin-macios/issues/15954

iOS build fails in Xamarin Activation step after upgrading to Xcode 8.0 on the agent

I have a mac setup as a Xamarin build agent for Visual Studio and Visual Studio Team Services (VSTS). On Friday, Xcode updated itself to 8.0 with the iOS 10 SDK. This, of course broke everything. I managed to get Visual Studio to reconnect after upgrading both Xamarin iOS on the mac and Xamarin for Visual Studio.
Now, my only issue that is that the VSTS agent fails to build. This agent runs on the same machine as the Visual Studio agent that works (e.g. I can build in Visual Studio and it builds on the mac and gives me an ipa). I haven't changed any build settings since the upgrade.
Here is where it fails, in the Xamarin Activation build step:
Yes, I double and triple checked that the XamarinPassword variable is correct. In fact, if I enter the wrong password, it will fail with an invalid login error.
Here is the error:
******************************************************************************
Starting: Activate Xamarin license
******************************************************************************
warning MT0061: No Xcode.app specified (using --sdkroot), using the system Xcode as reported by 'xcode-select --print-path': /Applications/Xcode.app/Contents/Developer
error MT0052: No command specified.
/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch --datafile
Xamarin.iOS 10.0.0 using framework: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator0.0.sdk
Failed to activate Xamarin license. {"code":1,"message":"An internal error occurred. Please email us at contact#xamarin.com and make sure to include the address associated with your Xamarin account ."}
Return code: 1
Is the VSTS agent ready for iOS 10? Should I downgrade everything back to before Friday and before the Xcode 8.0 update? Am I missing something new in the configuration?
The solution is that you can remove Xamarin license task, because it is no longer needed to build Xamarin app. (refer to this article)

Kudan sample app not launching

I have problem with launching Kudan sample app on my phone. I am using Kudan in Android Studio.
I created project as was described on website, checked is matches bundeID in my app and on the website(I know key wont be working if they are not the same), Studio doesnt show any errors or warning during compilation, but I cant still launch it on my phone.
Anyone any ideas what might cause it?
Thanks.

Resources