Monotouch Error: The apple Iphone SDK s not installed - xamarin.ios

I am finding this error after i installed Xcode 4.6.2. I used to work with Monotouch and Xcode 4.3 and i was able to build monotouch applications.
When i upgraded Xcode to version 4.6.2 I am unable to build the application in Monotouch. I am getting the error Apple Iphone SDK is not installed. Also when i check the version information in Monodevelop i am getting Apple Developer Tools:(Not Found).
In preferences when i check the SDK locations it is displaying SDK is found in default location. I dont know what the issue is.

You can change the iPhone sdk location to your new xcode location in the options of your monotouch project.

What is the version from MonoTouch / Xamarin.iOS? Are the Xcode command line tools installed?

Related

Unable to select iOS simulator via RoboVM IntelliJ IDEA plugin on Android Studio

I'm experiencing an issue where I am unable to select an iOS simulator via RoboVM IntelliJ IDEA plugin on Android Studio.
Under Run/Debug Configurations, when I try to create a new RoboVM iOS configuration and select Simulator type, the Device Type and Architecture dropdown fields are blank.
I am developing an iOS libGDX application using RoboVM. I have RoboVM 2.3.5, RoboVM IntelliJ IDEA plugin 2.3.5 on Android Studio 3.3. I have Xcode 10.2 installed and iOS 12.2 SDK installed. In Xcode I am able to see simulators there so I know that they exist.
I will appreciate any advice on how to resolve this issue.
simctl now returns modified format of simulator data.
there was a PR355 that fixed the issue and it is merged already to master.
you have options to build robovm from source, use user-pre-build one, or wait of official snapshot.

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

Is the tag <MtouchSdkVersion> still necessary in Xamarin Applications?

We have a 4 year old MonoTouch application, now a Xamarin.iOS application. It has a tag in each project
<MtouchSdkVersion>3.0</MtouchSdkVersion>
In the list of warnings with the current Xamarin.iOS and Xcode 6.1.1, I see
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: Warning: The iOS SDK version '3.0' is not installed. Using newer version '8.1' instead'. ({myProjectName})
I could manually update this tag or remove it. I do not see in the Xamarin Studio where to configure this on each project. Thanks much.
That should map to the Project options, Build, iOS Build, General, SDK version combobox.
If not found it could show you Default (not sure about the logic) but, beside Default it will only let you select the SDK that the presently configured Xcode provides (e.g. for Xcode 6.1 would see 8.1 for device builds).
note: it's possible it was left over to that value during the project's conversion to unified (which implies switching to msbuild).

Can't Reference Portable Class Library Project Xamarin.iOS

When I try to add a portable class library in Visual Studio, it only gives me an option for "Xamarin.iOS (Classic)" and not "Xamarin.iOS". So when I try to add the project as a reference to my ios project, I'm unable to add a reference from a none classic ios app to a portable library.
PCLs are supported for both iOS Classic and iOS Unified.
On the Mac the PCL profiles are installed with Mono 3.10.
On Windows the PCL profiles for iOS Unified are not installed by default since they require a new version of NuGet 2.8.3 which is currently available as an alpha release. To get the PCL profiles for iOS Unified there is a separate installer which will install NuGet 2.8.3 into Visual Studio and install the PCL profiles.
There is a blog post about what iOS Unified is compared with iOS Classic.
Found the answer here Thanks Matt Ward

Is there a way to remotely build Xamarin.iOS with sdk 6.1 in VS2012?

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.

Resources