[components-devel] Xamarin.iOS automatic translation from cocoapod to nupkg - help needed with mtouch
biholm at microsoft.com
Tue Nov 8 18:50:53 UTC 2016
The build process will throw out dlls if a C# 'link' can not be make giving it a reason to remain. Since there is no public API on GoogleSymbolUtilities there are no API types for FIRApp to reference.
We work around this by creating some empty code to reference. See the loader class that we use.
We add a static constructor to the messaging class and inside we make calls to empty load methods in Firebase Analytics.
From: components-devel <components-devel-bounces at lists.dot.net> on behalf of Alex Sorokoletov <alex at sorokoletov.com>
Sent: Monday, November 7, 2016 6:57:32 PM
To: components-devel at lists.dot.net
Subject: [components-devel] Xamarin.iOS automatic translation from cocoapod to nupkg - help needed with mtouch
I'm working on a tool that generates a set of nuget packages from cocoapods with same structure and dependency graph, as in cocoapods. Let me
For example, from pod Firebase/Database it will generate a set of nuget packages:
["GoogleToolboxForMac/Defines"; "GoogleSymbolUtilities"; "FirebaseInstanceID";
"GoogleToolboxForMac/NSData+zlib"; "GoogleInterchangeUtilities"; "FirebaseCore";
"FirebaseAnalytics"; "FirebaseDatabase"; "Firebase/Core"; "Firebase/Database"]
So as an end result there will be a set of .csproj with bindings and a set of nuget packages.
I have a binding project "FirebaseCore" with lib FirebaseCore.a and API definition (exposing FIRApp class, for example) that has reference to "GoogleSymbolUtilities" project.
GoogleSymbolUtilities project has a GoogleSymbolUtilities.a library and no API exposed (this cocoapod has only binary and is used during iOS linking process).
Now, I have a test application FirebaseTestApp with following code in C#:
FIRApp.bla.blabla //calling some code from FirebaseCore package
and references both to the FirebaseCore and GoogleSymbolUtilities packages.
When I compile the app, I get linker errors because the build doesn't see any dependency on the GoogleSymbolUtilities.a native lib from the FirebaseTestApp project.
Though, the FirebaseCore.dll is referencing GoogleSymbolUtilities.dll.
How do I make Xamarin.iOS consider all binding libraries for linking?
Any help or advice appreciated.
components-devel mailing list
components-devel at lists.dot.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the components-devel