Can't Reference Portable Class Library Project Xamarin.iOS - 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

Related

Developing Xamarin no longer requires Visual Studio 2019 on win10?

According to the document Designing user interfaces with Xcode, I am noted that
Starting in Visual Studio 2019 version 16.9, there will be no supported way to edit iOS storyboards on Windows. Use Visual Studio for Mac and the Xcode Interface Builder to continue building your Xamarin.iOS user interfaces.
We need to edit the storyboard on Xcode.
It told me that we can use VS2019 for Mac and Xcode. What I want to know is that can me develop the Xamarin using VS2019 on Win10 any more, rather than installing VS2019 on Mac.
The background behind that notice is that Microsoft decided to not work on its iOS user interface visual designer any more (due to various reasons), so you lost the way to edit storyboard files on Windows.
So yes, you can continue to develop the Xamarin using VS2019 on Win10, but now that approach has many more restrictions.
Reference

Does .NET Embedding work on Visual Studio on Windows or only VS on mac?

I have an Xamarin ios class library that I want to .Net Embedding to 'embed' for use by an Xcode Objective-C app
from the docs
Requirements
To use .NET Embedding with Objective-C, you'll need a Mac running:
macOS 10.12 (Sierra) or later
Xcode 8.3.2 or later
Mono 5.0
You can install Visual Studio for Mac to edit and compile your C#
code.
Note
Earlier versions of macOS, Xcode, and Mono might work, but are
untested and unsupported
Code generation can be done on Windows, but it is only possible to compile it on a Mac computer where Xcode is installed
Yes, embeddinator 4000 works in Windows 10 with Visual Studio 2019.
I have generated .aar for Android + Java.
However, there are many limitations of the generated aar.
e.g. functions that use non-primitive types get ignored and you do not have those in generated aar etc.

Error in PCL projects (MT0011 was built against a more recent runtime (NET_4_0) than MonoTouch supports.)

When i try to deploy my solution from Visual Studio 2012 to a ipad Device or simulator, all PCL projects are giving error like:
MT0011:Cirrious.CrossCore.dll
was built against a more recent runtime (NET_4_0) than MonoTouch supports.
I tried to do Clean and Rebuild all solution with success.
My Xamarin.iOS version is 1.1.200 (stable).
My MonoTouch.xml file in
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETPortable\v4.0\Profile\Profile104\SupportedFrameworks:
<?xml version="1.0" encoding="utf-8"?>
<Framework DisplayName="MonoTouch"
Identifier="MonoTouch"
Profile="*"
MinimumVersion="*"
MaximumVersion="4.0" />
My VS information:
Microsoft Visual Studio Ultimate 2012
Version 11.0.60610.01 Update 3
Microsoft .NET Framework
Version 4.5.50709
Installed Version: Ultimate
GhostDoc 4.5.13017.0
GhostDoc automatically generates XML documentation comments.
Microsoft Advertising SDK for Windows Phone 6.2.923.0
Microsoft Advertising SDK for Windows Phone
Build 6.2.923.0
Microsoft XNA Game Studio 4.0
Microsoft XNA Game Studio 4.0
Build 4.0.40906.0
NuGet Package Manager 2.2.40116.9051
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
PreEmptive Analytics Visualizer 1.0
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
SQL Server Data Tools 11.1.20627.00
Microsoft SQL Server Data Tools
Web Developer Tools 1.2.40308.0
Microsoft Web Developer Tools contains the following components:
Page Inspector: Tool that offers an efficient way to decompose Web Applications and diagnose front-end issues.
Web Publishing: Extensions required for Web Publishing for both hosted servers as well as on premises.
Web Form Templates: Includes the default templates for Web Form Applications.
Editor Extensions: Includes HTML, CSS, and JS editor extensions that greatly enhance the development experience.
Xamarin.Android 4.6.08007 (0cc7ae3b)
Visual Studio plugin to enable development for Xamarin.Android.
Xamarin.iOS 1.1.200 (7d63692c)
Visual Studio extension to enable development for Xamarin.iOS
The solution contain projects and not the build Dll.
The problem must be in my pc because a colleague of mine can deploy the same solution to the same pc mac.
Thank you in advance for help,
Paulo Dias
First MT0011 is a warning not an error. It's mean to tell you that some stuff might not work or build correctly later.
My Xamarin.iOS version is 1.1.200
That looks like the version of the add-in for Visual Studio. This is not the version of Xamarin.iOS itself.
To support .NET 4.0 assemblies you need to use Xamarin.iOS 6.3+ which is, right now. available on our beta channel. On promoted to stable it will be known as 6.4.
The current stable release of Xamarin.iOS is 6.2.7. This version is based on Mono 2.10 and still use the 2.1, Silverlight-like, BCL assemblies (which explains your warning).

MvvmCross binaries for alpha/beta channel Xamarin?

I'd like to use MvvmCross with XS on a Mac, and running the beta channel (Xamarin.iOS 6.3 and Xamarin.Android 4.7). Is this currently possible at all? If so are there binaries available somewhere?
I am using the latest Xamarin.Android alpha, which among other things provide PCL support. However the Visual Studio plug-in does not allow for referencing PCL projects into Android project yet. In order to do this you need to manually edit the .csproj file or do it through Xamarin Studio.
You will need to recompile Mvx from source if you want it to work with the new PCL support. There are however some problems with Profile78 PCL's which result in Mvx Core projects not working, more about this in this thread and in this bugzilla report.
I didn't succeed to compile any PCL library, not only MvvmCross
(on Mono 3.0)

Is Reactive Extensions 2.1 PCL compatible with Xamarin?

Riddle me this:
Can the new PCL version of Reactive Extensions be made to work with Xamarin?
If so, how?
Nope. But check out https://github.com/mono/rx/tree/rx-oss-v2.1/Rx/NET/Source/Rx_Xamarin for versions that do work.
Yes it is possible. At the moment, you will need to switch to the beta channel of the Xamarin tools which implement Mono 3.0. This can be done via Tools > Options > Xamarin in Visual Studio 2012.
Xamarin.Android 4.7 Information
Xamarin.iOS 6.3 Information
The ReactiveUI project should have all of the libraries that you need. Here is a link to the libraries folder on their nuget site.

Resources