Bug 40695 - Can't build if the project references both Xamarin.Google.iOS.Analytics and Xamarin.Google.iOS.Maps
Summary: Can't build if the project references both Xamarin.Google.iOS.Analytics and X...
Status: RESOLVED FIXED
Alias: None
Product: Components
Classification: Xamarin
Component: Xamarin Components ()
Version: N/A
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Israel Soto [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2016-04-26 08:30 UTC by Aktar
Modified: 2016-07-08 22:47 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Aktar 2016-04-26 08:30:06 UTC
Can't build if the project references both Xamarin.Google.iOS.Analytics (3.14.0.1) and Xamarin.Google.iOS.Maps (1.11.1.2).

It works fine if only one of these packages is referenced.

Here is the error I get :
```
/Users/aktar/Documents/applications/src/mysln/myproject/myproject.csproj (Build) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets (_CompileToNative target) ->

    MTOUCH:  warning MT1302: Could not extract the native library 'GoogleMaps' from '/Users/aktar/Documents/applications/src/mysln/myproject/obj/iPhoneSimulator/Debug/mtouch-cache/GoogleMaps'. Please ensure the native library was properly embedded in the managed assembly (if the assembly was built using a binding project, the native library must be included in the project, and its Build Action must be 'ObjcBindingNativeLibrary').

Errors:

/Users/aktar/Documents/applications/src/mysln/myproject/myproject.csproj (Build) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets (_CompileToNative target) ->

    MTOUCH: error MT5209: Native linking error: file not found: /Users/aktar/Documents/applications/src/mysln/myproject/obj/iPhoneSimulator/Debug/mtouch-cache/GoogleMaps
```
Comment 1 Aktar 2016-05-02 08:54:52 UTC
hello, I wanted to specify that the bug described abose also occurs on version 3.14.0.3 (the last one) of Xamarin.Google.iOS.Analytics.

Is this an issue you can fix any time soon or do I have to move on, and find an alternative solution ?
thanks
Comment 2 Israel Soto [MSFT] 2016-07-08 22:47:14 UTC
This was fixed in version v3.14.0.5 of G.Analytics.

GitHub Pull Request that prove it:

https://github.com/xamarin/GoogleApisForiOSComponents/pull/6