Xamarin-macios: "None" Linking Causes Xamarin.Forms to Break iOS Extension Google Analytics Librarie

Created on 19 Dec 2017  路  5Comments  路  Source: xamarin/xamarin-macios

Initially open by @kspearrin at @xamarin/xamarin-forms

Description

I had originally opened this issue in the GoogleApisForiOSComponents repo since it did not seem relevant to XF, but upon investigation I was directed by @SotoiGhost to move it here.

After playing with some iOS configuration and different kind of projects, I have come to the conclusion that this is an odd scenario caused by Xamarin.Forms, NetStandard, and the linker that affects only G.Analytics, I tried using Firebase.Analytics and everything worked as expected. Please, if you can, file an issue in Xamarin.Forms GitHub repo, explaining what's happening.

Reference original issue for full history here: https://github.com/xamarin/GoogleApisForiOSComponents/issues/116

Steps to Reproduce

  1. Download test Xamarin.Forms project with iOS and iOS Action Extension here: https://github.com/kspearrin/BuildDownloadTest
  2. Run iOS extension on a test device (I am using an iPhone 6S). This problem is not present on the simulator.
  3. Set breakpoint in LoadingViewController
  4. Observe GaiConstants values.

Expected Behavior

GaiConstants will have property values.

Actual Behavior

GaiConstants are all null.

Changing the iOS Extension project from <MtouchLink>None</MtouchLink> to <MtouchLink>Full</MtouchLink> or <MtouchLink>SdkOnly</MtouchLink> seems to resolve the problem.

Basic Information

  • Version with issue: 2.4.0.91020
  • Last known good version: n/a
  • IDE: VS 2017 Windows or Mac
  • Platform Target Frameworks:

    • iOS: 11.6.1.2

  • Nuget Packages: Xamarin.Google.iOS.Analytics v3.17.0.2
  • Affected Devices: iPhone

Screenshots

screen shot 2017-12-16 at 9 59 22 am

Reproduction Link

https://github.com/kspearrin/BuildDownloadTest

bug iOS

Most helpful comment

I'm seeing the same behavior. Null values with Don't Link, but correct values with Link Framework SDKs.

All 5 comments

Any update on this issue? Seems it hasn't even been acknowledged yet.

Sorry for the lack of updates. It seems that this bug felt under a crack in our triaging process and we missed it. I'm on it and will provide feed back ASAP.

Again, sorry for the delay.

I'm seeing the same behavior. Null values with Don't Link, but correct values with Link Framework SDKs.

@timrisi Is there any solution? This is stopping is from updating many of our dependencies.

Are there any updates for this problem?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chamons picture chamons  路  4Comments

michaelstonis picture michaelstonis  路  3Comments

mrward picture mrward  路  4Comments

juepiezhongren picture juepiezhongren  路  3Comments

Mikilll94 picture Mikilll94  路  4Comments