Xamarin iOS app not working on device because of ProgressLabel - c#

I am trying run a Xamarin iOS app on a device with Visual Studio. However I get the following error:
Error MT4116: Could not register the assembly 'Xamarin.Auth.iOS':
error MT4118: Cannot register two managed types
('Xamarin.Controls.ProgressLabel, Xamarin.Auth.iOS' and
'Xamarin.Controls.ProgressLabel, Xamarin.Auth') with the same native
name ('Xamarin_Controls_ProgressLabel'). (MT4116)
The ProgressLabel class seems to be defined in Xamarin.Auth.iOS and Xamarin.Auth twice.
Does anyone have an idea how to solve this?

Related

xamarin java.lang.runtimeexception: 'unable to get provider com.google.android.gms.ads.mobileadsinitprovider

I'm just updated my application (more than 1 year without any update) So I decided to move to : xamarin forms 5.0.0.2012
I use Firebase 119.7, downgrade to 119.6,119.5,119.4,119.1, 118.1,71.1601.4
and still the same problem.
xamarin java.lang.runtimeexception: 'unable to get provider com.google.android.gms.ads.mobileadsinitprovider: java.lang.illegalstateexception:
I followed all the several configuration in the manifest in my class and it still doesn't work
I also created a blank shell project (the one coming with xamarin forms) and just add firebase.ads or google.playservice.ads and the same error occurs
here are the tip i already followed:
Implementing admob in xamarin android throws Java.Lang.RuntimeException
Does any one have a clue?
I add a empty xamarin shell form app with just the add of the firebase nuget
all the info are followed but it crashs
https://github.com/refre/AdMonCrash

Xamarin add wcf service, I can't run my project in IOS

An error occurred after compiling on iOS.
I am using mac OS on virtualbox to open the iOS emulator.
Xamarin.Forms adds WCF service.
could not be compiled.
Code in reference file
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
ServiceGolf.CheckLoginResponse ServiceGolf.ServiceGolfSoap.CheckLogin(ServiceGolf.CheckLoginRequest request)
{
return base.Channel.CheckLogin(request);
}
Error Messages
System.InvalidOperationException: 'MonoTouch does not support dynamic proxy code generation. Override this method or its caller to return specific client proxy instance'
enter image description here
Pictures show all information https://ibb.co/p4m7z59

Why is my Unity IOS App crashing after uploading it to Xcode?

I've been a developer Unity iOS developer for a while now and I recently tried to test out my app on my phone. After building the project and uploading it to xCode so I can upload the app on my phone, the app was developed but crashes once I opened it. There are some warning logs but not sure which one is causing the crashing.
https://i.stack.imgur.com/FKY8e.jpg
https://i.stack.imgur.com/D4ryX.png
I also might think this is because I am not paying for the Apple developer program, yet before I was able to test it without paying for it.
Logs:
2020-03-28 14:11:21.207192-0700 TheSuccFinal[2733:973093] Error loading /var/containers/Bundle/Application/A8DD7379-FF01-4A00-AF26-77A546A87C8E/TheSuccFinal.app/Frameworks/UnityFramework.framework/UnityFramework: dlopen(/var/containers/Bundle/Application/A8DD7379-FF01-4A00-AF26-77A546A87C8E/TheSuccFinal.app/Frameworks/UnityFramework.framework/UnityFramework, 265): no suitable image found. Did find:
/var/containers/Bundle/Application/A8DD7379-FF01-4A00-AF26-77A546A87C8E/TheSuccFinal.app/Frameworks/UnityFramework.framework/UnityFramework: code signature invalid for '/var/containers/Bundle/Application/A8DD7379-FF01-4A00-AF26-77A546A87C8E/TheSuccFinal.app/Frameworks/UnityFramework.framework/UnityFramework'
/var/containers/Bundle/Application/A8DD7379-FF01-4A00-AF26-77A546A87C8E/TheSuccFinal.app/Frameworks/UnityFramework.framework/UnityFramework: stat() failed with errno=3
/private/var/containers/Bundle/Application/A8DD7379-FF01-4A00-AF26-77A546A87C8E/TheSuccFinal.app/Frameworks/UnityFramework.framework/UnityFramework: code signature invalid for '/private/var/containers/Bundle/Application/A8DD7379-FF01-4A00-AF26-77A546A87C8E/TheSuccFinal.app/Frameworks/UnityFramework.framework/UnityFramework'
2020-03-28 14:11:21.247919-0700 TheSuccFinal[2733:973093] Error loading /var/containers/Bundle/Application/A8DD7379-FF01-4A00-AF26-77A546A87C8E/TheSuccFinal.app/Frameworks/UnityFramework.framework/UnityFramework: dlopen(/var/containers/Bundle/Application/A8DD7379-FF01-4A00-AF26-77A546A87C8E/TheSuccFinal.app/Frameworks/UnityFramework.framework/UnityFramework, 265): no suitable image found. Did find:
/var/containers/Bundle/Application/A8DD7379-FF01-4A00-AF26-77A546A87C8E/TheSuccFinal.app/Frameworks/UnityFramework.framework/UnityFramework: code signature invalid for '/var/containers/Bundle/Application/A8DD7379-FF01-4A00-AF26-77A546A87C8E/TheSuccFinal.app/Frameworks/UnityFramework.framework/UnityFramework'
/private/var/containers/Bundle/Application/A8DD7379-FF01-4A00-AF26-77A546A87C8E/TheSuccFinal.app/Frameworks/UnityFramework.framework/UnityFramework: code signature invalid for '/private/var/containers/Bundle/Application/A8DD7379-FF01-4A00-AF26-77A546A87C8E/TheSuccFinal.app/Frameworks/UnityFramework
It is related to iOS 13.3.1 since recent releases from Apple iOS builder, personal (non-developer) Apple accounts cannot sign frameworks correctly, since Unity is a framework itself it is not signed when built.
You can check this unity forum discussion and this discussion in the flutter framework about the bug.
Apparently it is fixed in iOS 13.4, so check your XCode version, iOS target version and you should be good to go.

Xamarin iOS - "Native linking failed for .." with Static Library Bind

I'm trying to build an, only iOS, app but I get two errors:
linker command failed with exit code 1 (use -v to see invocation)
Native linking failed for '/Users/{name}/Desktop/{application name}/{application name}/obj/iPhone/Debug/device-builds/iphone8.1-11.1.2/mtouch-cache/arm64/libSomething.dll.dylib'. Please file a bug report at http://bugzilla.xamarin.com
I get these errors with a dll generated from a binding of a (native obj-c) static library with XCode 9.2
I'm using Visual Studio 7.2 with Xamarin.iOS 11.6.1.2
I fixed it.
The error was in the Static Library, was missing two classes.
I've added these two in XCode and then works.

Jabber.net on Unity/Android error (No JNI_OnLoad found in /system/lib/libc.so, skipping init)

I am trying to create a Jabber (Jabber.net) chat client using Unity3D(Mono/C#) for iOS and Android. I got the client working in iOS (also runs well in Unity simulator). However, when running it on a Nexus 7 or HTC Desire it does not work. It does not crash, but does not connect either. It just produces the following error:
D/dalvikvm(9368): No JNI_OnLoad found in /system/lib/libc.so 0x413b7270, skipping init
This error is connected to the Connect method of my Jabber.net client:
jc = new JabberClient();
...
// Setting up the jabberclient and attaching eventhandlers
...
jc.Connect();
Any ideas how to solve it?
Edit: Reseaching JNI_OnLoad, I found this description:
"The VM calls JNI_OnLoad when the native library is loaded (for example, through System.loadLibrary). JNI_OnLoad must return the JNI version needed by the native library.
In order to use any of the new JNI functions, a native library must export a JNI_OnLoad function that returns JNI_VERSION_1_2. If the native library does not export a JNI_OnLoad function, the VM assumes that the library only requires JNI version JNI_VERSION_1_1. If the VM does not recognize the version number returned by JNI_OnLoad, the native library cannot be loaded."
from http://docs.oracle.com/javase/6/docs/technotes/guides/jni/spec/invocation.html#wp9502
Could it be possible to rebuild Jabber.net with a JNI_OnLoad method returning JNI_VERSION_1_2 ??
It's simply not possible. Don't try this at home kids.

Categories

Resources