Bug 44641 - iOS 10 Native linking failed, duplicate symbol: '_plcrash__crash_report__get_packed_size'.
Summary: iOS 10 Native linking failed, duplicate symbol: '_plcrash__crash_report__get_...
Status: RESOLVED UPSTREAM
Alias: None
Product: iOS
Classification: Xamarin
Component: MSBuild ()
Version: XI 10.0 (iOS10)
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-09-22 21:01 UTC by Russell Fustino
Modified: 2016-09-23 03:56 UTC (History)
3 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 UPSTREAM

Description Russell Fustino 2016-09-22 21:01:18 UTC
I have several of these errors when I build for iOS 10.0 Xamarin Forms app. Have not rebuilt app in about a year. Updated to latest release of xamarin and all of the NuGet projects. PCL builds fine. for the iOS project I am getting duplicate symbol related errors. I am also seeing this one several times:

Duplicate symbol in: /Users/russfustino/Library/Caches/Xamarin/mtbs/builds/JethroTullX.iOS/c36a91d52c95ccf6f555a7b11b5ac829/obj/iPhoneSimulator/Debug/mtouch-cache/libRaygun4iOS.a(crash_report.pb-c.o) (Location related to previous error

Also I have tried both of these on the mtouch arguments and yield same results.

--registrar:static
-gcc_flags -all_load


and
	

The app needs immediate repair as button images are no longer appearing and the app is crashing is a few places on devices with ios 10.0 and I am hoping a rebuild will fix it, but I can't get that far to test it. Please help.

Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Enterprise

Architecture and Modeling Tools   00322-80000-00000-AA141
Microsoft Architecture and Modeling Tools
    
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

LightSwitch for Visual Studio 2015   00322-80000-00000-AA141
Microsoft LightSwitch for Visual Studio 2015

Visual Basic 2015   00322-80000-00000-AA141
Microsoft Visual Basic 2015

Visual C# 2015   00322-80000-00000-AA141
Microsoft Visual C# 2015

Visual C++ 2015   00322-80000-00000-AA141
Microsoft Visual C++ 2015

Windows Phone SDK 8.0 - ENU   00322-80000-00000-AA141
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   7.7.00920.6
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015.1   14.1.20810.0
ASP.NET and Web Tools 2015.1

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

Azure App Service Tools v2.8.1   14.0.11123.0
Azure App Service Tools v2.8.1

Clang with Microsoft CodeGen   14.0.25516
Clang with Microsoft CodeGen

Command Bus, Event Stream and Async Manager   Merq
Provides ICommandBus, IEventStream and IAsyncManager MEF services for loosely coupled Visual Studio extension components communication and integration.

Common Azure Tools   1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

KofePackagePackage Extension   1.0
KofePackagePackage Visual Studio Extension Detailed Info

Microsoft .NET Core Tools (Preview 2)   14.1.20810.0
Microsoft .NET Core Tools (Preview 2)

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

NuGet Package Manager   3.5.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Office Developer Tools for Visual Studio 2015 ENU   14.0.23928
Microsoft Office Developer Tools for Visual Studio 2015 ENU

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   14.0.60519.0
Microsoft SQL Server Data Tools

TypeScript   1.8.36.0
TypeScript tools for Visual Studio

Visual C++ for Cross Platform Mobile Development (Android)   14.0.25401.00
Visual C++ for Cross Platform Mobile Development (Android)

Visual C++ for Cross Platform Mobile Development (iOS)   14.0.25401.00
Visual C++ for Cross Platform Mobile Development (iOS)

Visual Studio Tools for Apache Cordova   Update 10
Visual Studio Tools for Apache Cordova

Visual Studio Tools for Universal Windows Apps   14.0.25527.01
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin   4.2.0.680 (c4382f5)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   7.0.0.18 (0e59c36)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.0.0.6 (6c3fee4)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 1 Alex Soto [MSFT] 2016-09-23 03:56:15 UTC
Hello Russel

Unfortunately it seems that the libRaygun4iOS.a which I presume comes from the raygun4net component contains duplicated symbols and since they have ForceLoad=true in their LinkWith attribute[1] the native linker will try to resolve all symbols on it and _plcrash__crash_report__get_packed_size is duplicated in this library or is conflicting with some other component in your solution.

My suggestion is to raise a bug directly with Raygun4Net team and let them know your issue and temporary disable Raygun4Net in your solution so you can continue developing and testing, once you hear back from Raygun4Net team and probably fix this issue then you can reenable the component.

Cheers!

[1]: https://github.com/MindscapeHQ/raygun4net/blob/master/Mindscape.Raygun4Net.Xamarin.iOS.Unified/libRaygun4iOS.linkwith.cs#L4