MonoTouch 5.0: Get MonoDevelop to use iOS 5 SDK/Simulator - xamarin.ios

I upgraded to Lion, MonoDevelop 2.8 and MonoTouch 5.0 and the Apple iOS 5 SDK. All smooth.
I installed the iOS 5 SDK into a different-than-default folder.
How do I get MonoTouch to use the new simulator? Under the menu Project/iPhone Simulator Target only 4.3 and below appear. However, I can set the OS target of the project in properties to 5.0
Perhaps MonoTouch needs to be told where 5.0 is?
How?

Have you tell MonoDevelop where to look ?
Use MonoDevelop menu;
Select Preferences...* item;
Under Others select SDK Locations in the left tree view;
Select manuall the location of the iOS5 SDK
i.e. the one at the default location is likely the iOS 4.3 SDK
UPDATE! 5. Restart MonoDevelop

Related

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).

Monotouch Error: The apple Iphone SDK s not installed

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?

Xcode 4.1 / 4.2 project compatibility?

All:
I have the option to upgrade to Xcode 4.2, but my students, in their computer lab, do not. Are there any project compatibility issues? Specifically, can my Xcode 4.2 open an Xcode 4.1 project, and can an Xcode 4.1 project open an Xcode 4.2 project?
Related to this, I see that Xcode 4.2 has quite a few new features (e.g., storyboarding). If I fire up Xcode in 4.2 in class, but don't use, say, storyboarding, are my students going to see any significant differences?
Thanks much for any insights,
Michael
Yes, Xcode 4.2 projects can be opened in Xcode 4.1 and vice versa.
In fact, the Xcode file format even in Xcode 4.2 is "Xcode 3.2 compatible". So you can actually open Xcode projects created in Xcode 4.x in Xcode 3.2.x and vice versa.
To see the differences between versions, look at what is called the changelog.
http://mac.softpedia.com/progChangelog/Apple-Xcode-Changelog-7935.html

how to run iOS 4 application on iOS 3.1.3

I have an iPhone with iOS 3.1.3. I have developed an application with ios 4.2. Application runs well expect autoscrolling. when i click textview it scolls automatically to see text contents. when i install in my iphone it terminates when i click on text view. What can I do to fix this problem?
If you don't use api's that are only in 4.2 you can set you project iOS Deployment Target to 3.1 in the build settings of your project.

Resources