I am trying to get just a "hello world" single view iOS app running on an iOS 10 simulator but it just immediately crashes/exits out of the program, it does not even appear to hit the entry point of the app. Any thoughts?
I've tried using
-- Visual Studio 2019 (Windows 10 paired to mac -- mojave)
-- Visual Studio directly on the mac.
Running the same app on anything 11.0 and greater works as expected.
The version of xcode on the mac is 10.2.1, mac is mojave 10.14.4.
Found the issue here the described workaround:
Workaround: change the Linker behavior in the iOS project's Build options to Link Framework SDKs only and add --registrar:static to the additional mtouch arguments in the same Build options page.
solves the issue.
Related
I'm trying to do some React Native development for Android.
In the past I've been able to run and use a couple Android Emulators on my machine. Now, when I start the emulators I see them launch successfully, but I don't see them appear on my screen:
I'm running
Edition Windows 11 Pro
Version 22H2
Installed on 10/5/2022
OS build 22621.1105
Experience Windows Feature Experience Pack 1000.22638.1000.0
and
Android Studio Dolphin | 2021.3.1 Patch 1
How can I view the running emulator?
I found that if I clicked this tab:
The Emulator would appear as a tiny (maybe 20 x 20 pixels) window on my other monitor. I then was able to make the window bigger and use it.
[Here is the Screenshot] While setting up the Android studio, I can't run even the simple Application. when I click the run it shows to select the target device. but for devices, I can't select any device. It is still loading. What would be the reason?
Is there any version issue or Windows issue? I'm using Windows 11 and android-studio-2020.3.1.24-windows
There may be a problem with Windows 11. to solve that issue follow the steps
Go to the android studio app
Right-click the app
Go to Properties
Go to compatibility
Check the Run this program in compatibility mode
Select windows version 10 or 8 or 7
Then apply and ok
After these changes start the Android Studio App
I am using Visual Studio 2019 & 2022 Community but both not showing any simulators in the Mac. If I plugged in my iPhone on the Mac, I am able to see it. Yet I am not able to see the simulator. I need to use different simulator to generate screenshot for the AppStore. Any advise?
Note 1: I have installed both iOS 14 and 15 in the Mac and simulator still not showing.
Note 2: I think my Mac automatically updated my XCode to 13, then everything not working.
https://learn.microsoft.com/en-us/answers/questions/568996/ios-simulators-on-not-showing-in-vs2019-for-window.html
This is due to the update in MAC, download the xamarin.ios-15.0.0.6.pkg from https://github.com/xamarin/xamarin-macios/issues/12778 in the MAC and install it. Then it'll be OK.
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
I have an iOS project that was developed for iOS6.1 and I need to be able to build it for both iOS6.1 and iOS7. I updated all tools from Xamarin and upgraded to OSX Mavericks and iOS 7.0.3 on the iPhone. So at this time I have all latest versions.
When I start to debug the project from VS2012, the app that starts on the iPhone is always an iOS7 app. I added the iOS6.1.sdk to Xcode 5 so back on the Windows machine I can select this SDK in VS2012 for compilation.
But it seems that, whatever SDK I choose in the project settings, it always returns:
-debug -linksdkonly-sdk "7.0"-targetver "6.1" --abi=armv7 (arguments taken from the mtbserver.log on the building host)
If I build the project with Xamarin Studio on the Mac the behavior is as expecting when changing the version of the SDK.
Is there a way to get around this when building remotely with VS2012?
That's a bit uncommon and it sounds like a bug - you should file it on bugzilla so it will be confirmed (and fixed if it's the case).
Most people I know install several Xcode side-by-side, i.e. they do not copy an old .sdk directory into a newer Xcode release.
You might want to try this (the trick is to rename Xcode.app before installing the new one) and then set the VS addin to the older (e.g. Xcode46.app) directory when you need to build for iOS 6.1.