Bug 61224 - error updating xamarin.google.ios.maps "Object reference not set to an instance of an object "
Summary: error updating xamarin.google.ios.maps "Object reference not set to an instan...
Status: NEW
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS (show other bugs)
Version: 4.8.0 (15.5)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2018-02-15 23:37 UTC by Ruben
Modified: 2018-03-16 21:43 UTC (History)
4 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 for Bug 61224 on Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.
Related Links:
Status:
NEW

Description Ruben 2018-02-15 23:37:52 UTC
# Steps to reproduce

A pcl app for android and ios mainly
Compiling just fine

# Expected behavior

Updated to Xamarin 4.8.0.713
Updated all nuGet pkgs to last stable versions
Now I cannot compile the ios project

Get this error:
"Object reference not set to an instance of an object CmsMobile.iOS D:\Mis Proyectos\VS15\VC#\Xamarin\CmsMobile\packages\Xamarin.Build.Download.0.4.7\build\Xamarin.Build.Download.targets 52"

So I went back to last backup (without the nuGet pkgs updated)
And now it compiles with no errors again

I updated Xamarin.forms nuget pkg to 2.5.0.122203 and all projects
compiles just fine

I updated xamarin.forms.googlemaps to 2.3.0 in the pcl, compiles fine

I updated xamarin.forms.googlemaps and all xamarin.googleplay*.* in android project, it compiles fine
 
I updated xamarin.google.ios.maps  in the ios project, and i receive again the error


# Actual behavior

I receive this error after updating and compiling
"Object reference not set to an instance of an object CmsMobile.iOS D:\Mis Proyectos\VS15\VC#\Xamarin\CmsMobile\packages\Xamarin.Build.Download.0.4.7\build\Xamarin.Build.Download.targets 52"

# Supplemental info (logs, images, videos)

https://1drv.ms/v/s!AtV6_4mjvBLeg-FWT61mxKMaWreDYQ

# Test environment (full version information)

I have Visual Studio 2015 with latest sp
I have Xamarin 4.8.0.713
Comment 1 Ruben 2018-02-16 19:15:42 UTC
If I update Xamarin.Firebase.* to lastest stable version, I also receive same error
Comment 2 Viral Savani 2018-03-16 21:43:44 UTC
Not sure if this is a correct thread, but something similar is happening on my project as well. I am using Xamarin.Firebase.iOS.Analytics and the build randomly fails with 

MTOUCH : warning MT1302: Could not extract the native library 'FirebaseAnalytics' from 'projectobj/Debug/mtouch-cache/FirebaseAnalytics'. 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').

MTOUCH : warning MT1302: Could not extract the native library 'GoogleSymbolUtilities' from 'projectobj/Debug/mtouch-cache/GoogleSymbolUtilities'. 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').

MTOUCH : warning MT1302: Could not extract the native library 'GoogleInterchangeUtilities' from 'projectobj/Debug/mtouch-cache/GoogleInterchangeUtilities'. 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').

MTOUCH : warning MT1302: Could not extract the native library 'FirebaseInstanceID' from '/projectobjDebug/mtouch-cache/FirebaseInstanceID'. 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').

MTOUCH : warning MT1302: Could not extract the native library 'FirebaseCore' from '/projectobjDebug/mtouch-cache/FirebaseCore'. 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').

clang : error : linker command failed with exit code 1 (use -v to see invocation)
error MT5209 : Native linking error : file not found: /projectobjDebug/mtouch-cache/FirebaseAnalytics

MTOUCH : error MT5201: Native linking failed. Please review the build log and the user flags provided to gcc: -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /projectobjDebug/Entitlements.xcent

MTOUCH : error MT5202: Native linking failed. Please review the build log.

Only when I reinstall the Xamarin.Build.Download again above error resolves.

For Android, this happens for Xamarin.Android.Support.v7.AppCompat. Reinstalling the Xamarin.Build.Download fixes the issue