Native linking failed, undefined Objective-C class Xamarian - xamarin.ios

I'm using Xamarin Studio to build iOS app.
But I am getting this weird builds with follow error.
Error MT5211: Native linking failed, undefined Objective-C class: PayPalTouch. The symbol '_OBJC_CLASS_$_PayPalTouch' could not be found in any of the libraries or frameworks linked with your application. (MT5211)
Error MT5202: Native linking failed. Please review the build log. (MT5202)
Trying many ways following the stack overflow discussions. But still no good!
Any idea how can i fix it?
Thank you

I fixed similar issues by adding a [Protocol] tag before every classes in error.
https://developer.xamarin.com/guides/ios/advanced_topics/registrar/

I have no experience with using Xamarin Studio, can't find the detial, but there is a question I asked about How to link an Objective-C static library to Xamarin.iOS, you can take a look.
How to bind an Objective-C static library to Xamarin.iOS?
Hope it can help you.

Related

Native Linking Failed, Undefined symbol :

I have a Xamarin.iOs project runs successfully. Recently I upgraded one of the Nugetpackages used in the project and I am ended up with various Native linking failedissues. followings are part of the errors.
What is the reason for these issues and how can I overcome these? Please help me. Thank you!
This happens when you upgrade your Nugetpackages and the native linker can't find a symbol referenced somewhere. For specific solutions, you can refer to the official documentation: MT5210: Native linking failed, undefined symbol: *. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.

CreateSemaphore Library for WinCE 5.0

Building a WinCE 5.0 application to use a semaphore. The function I am using to create the semaphore is CreateSemaphore(). The problem is that the application cannot be linked because there is not reference to the symbol CreateSemaphore. The Windows documentation (https://msdn.microsoft.com/en-us/windows/desktop/ms885184) suggests that as long as I have nk.lib, the application should build. The problem is this library is no where to be found. I am also using the standard sdk for WinCE 5.0.
I have searched for the nk.lib library, but have not been able to find it.
Any thoughts on where this library is or if there is an alternative? I know this stuff is really old, but I am hoping someone knows where I can find this library.
EDIT: I figured I should add the link error:
error LNK2019: unresolved external symbol __imp__CreateSemaphoreA referenced in function _Syn_System_Semaphore_initialize
In CE 5.0, CreateSemaphore is exported by coredll, so you'll need to link with coredll.lib.

Having problems getting F# tutorial to work for me in Monodevelop. Composition error: the type 'Object' is required here and is unavailable

I am trying to work an F# tutorial on Pluralsight (see screencaps) where you have to install Xunit and write the tests but it's not working for me. It works fine for someone using Visual Studio as shown in the screencaps below, but I am not using Visual Studio. I'm on a Linux system using Monodevelop and I get this message: Composition error: the type 'Object' is required here and is unavailable. You must add a reference to assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
I think it must be the Assembly.fs file where I'm supposed to add the reference but I am not sure, nor do I know exactly how to add this reference correctly. Furthermore, I am unsure if the problem may be due to Monodevelop not recognizing a valid Linux path and if so, how to fix that. Any help would be greatly appreciated because I'm completely stuck.
Here is the error I'm getting in Monodevelop:
As already mentioned in the comments, there is not enough information in your answer to give you a proper question. The error generally happens when you add reference to a dll that is itself referencing another dll and you do not have a reference to the other dll. So in general, you can fix this by adding the reference (as mentioned in the error message).
The specific assembly that you're getting an issue on is a core library referenced by portable .NET libraries. Try adding a reference as discussed for example here.
Otherwise, you need to give us more information - what type of project are you creating (what .NET version and profile) and what other libraries are you referencing in your project.

Compiling HTML Agility Pack for Monotouch

I have been pointed to this answer regarding using HTML Agility Pack in Monotouch. However the answer is poorly formatted, ambiguous, and some parts have android mentioned.
I am new to Xamarin could someone please step me through the process of compiling a project for use in Monotouch?
There are multiple ways to tackle this, but one approach would be
create a new iOS Library Project
add the *.cs files from HtmlAgilityPack
build
resolve any build errors
goto 3

C/C++ iOS to Android

I have a game written in C/C++ for iOS (using only obj-c for the GLES initialization) and I would like to port it to Android, I saw that it was possible using the NDK by creating a dynamic library (.so).
I install the Android SDK and NDK compile a simple library load it run, no problem, but I simply can't debug it... I can only debug the Java part (where my GLES context is created etc...) Am I missing something or? how can I debug my dynamic library?
It doesn't seems to have no support for debugging anything created with the NDK for Eclipse... so how am I suppose to debug my C/C++ then?
Anybody have experience with this? Any help would be greatly appreciated!
You have to use ndk-gdb. Take a look at this articles:
http://groups.google.com/group/android-ndk/web/debugging-through-the-jni-with-android-2-2
http://www.eclipse.org/sequoyah/documentation/native_debug.php

Resources