The static iOS library must be linked into Xamarin.iOS project - xamarin

We have a static library to link to Xamarin.Ios.
First of all we proceeded to the creation of a link project to generate the library.
Then integrate this library into our Xamarin.IOS project when compiling for deployment we have these errors.
Please help so that we can see if it can solve our problem.
See error
No action has been taken if we cannot find out what the problem is

Related

Why does adding the Moq NuGet package generate a MT0109 warning

I've started working on a vanilla Xamarin.Forms project, and I get the below warning when trying to build the iOS project, straight after adding Moq to the Forms project.
MTOUCH : warning MT0109: The assembly 'System.Diagnostics.TraceSource.dll' was loaded from a different path than the provided path (provided path: /Users/{me}/.nuget/packages/system.diagnostics.tracesource/4.3.0/runtimes/win/lib/netstandard1.3/System.Diagnostics.TraceSource.dll, actual path: /Library/Frameworks/Xamarin.iOS.framework/Versions/12.8.0.0/lib/mono/Xamarin.iOS/Facades/System.Diagnostics.TraceSource.dll).
There are no warnings reported when adding the NuGet package itself, only when building the iOS project. In fact, there were two warnings when building but I managed to fix one.
I've tried with various versions of Moq (4.7.x, 4.8.x, 4.9.x, 4.10.x). Same issue.
I've Googled extensively but it hasn't been much help. I came across the following threads which provided some insight but didn't actually help solve the issue:
How do I get rid of these compiler warnings about wrong paths
https://developercommunity.visualstudio.com/content/problem/121551/xamarin-ios-build-assembly-path-mismatch.html
https://github.com/dotnet/standard/issues/481
Questions: How can I resolve this warning? Is this an issue with Moq that needs a bug repro submitted?
My environment:
VS for Mac 2019 V8.0.4 (build 0)
Xamarin.Forms project uses
Xamarin.Forms 3.6.0.x, Xamarin.Essentials 1.0.1, Moq (causing the
warning), and the target framework is .NET Standard 2.0.

Library not found for -lwebsockets

I am trying to integrate custom library to a cocos2dx project. The project builds before giving a macho-o-linker error.

ArcGIS Runtime SDK for Xamarin?

I downloaded ArcGIS Runtime SDK for Xamarin (Quartz Beta).
On installing it out of the box in portable project I get following error :
Could not install package 'Esri.ArcGISRuntime.Xamarin.Forms
100.0.0.1369-beta'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile7
I tried to change the profile number but it doesn't seem to work. How should I proceed?
The sample code from their github project shows that they set up their projects using a shared code approach rather than a Portable Class Library. I'm not sure they designed their library with PCL support in mind.
In the beta forums, an esri employee answered this with regards to whether the SDK could support PCL:
Unfortunately PCL isn't possible for the Runtime due to some of the native dependencies. We recommend using shared projects to share the code you otherwise would have put in a PCL.

Entry point not found error using external lib

Im using the qwt lib (version 6.1.4) to make plots in c++. I have build the library from the source code by using Qt5.5.1 using msvc2013 compiler. I have done this by loading the qwt.pro file in qt-creator and building it. So far so good and the examples work fine when I load them in Qt.
However I am now trying to include the qwt.dll that was created in the previous steps into an existing project using an older version of Qt (5.4.0). This project uses cmake and visual studio 2013 to build and compile. I have managed to include the header files and link to the qwt.dll in the project, but now I get an error when I use the library:
'Entry Point Not Found' in the dynamic link library Qt5Core.dll
This qt5core.dll is the one from q5.4.0. Could this error be caused by the fact that I used a newer version of Qt when building the lib? Or is there another reason for this?
And for my understanding what does the error actually mean?
It was indeed the problem that I build the Qwt lib with a different version of Qt then the existing project used. I solved it by adding a Kit to qt that used the other Qt version. Then I used that kit to build qwt in qtcreator and the resulting lib worked like a charm!

Using a windows.dll in a Xamarin project to deploy on an iPad

I have a C# library that I want to use in my Xamarin project to deploy to an iPad.
Lets suppose the C# library is stored as MyUtilities.dll.
For a regular Windows app, I'd add MyUtilities.dll to my project Resources and then have a
using MyUtilities;
statement in the class where I wanted to use classes from that library.
How do I accomplish this same thing using Xamarin in an iPad app?
You will need to rebuild your library from the source using the Xamarin.iOS compiler. After that you would reference the same way you do in a Windows app - by either including a Reference to the dll in your project, or by including the Library project in your solution and referencing the project.

Resources