Bug 42352 - [iOS] Xamarin.Forms 2.3.1.111-pre2 does not work with linker
Summary: [iOS] Xamarin.Forms 2.3.1.111-pre2 does not work with linker
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: unspecified
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-07-05 11:24 UTC by Thomas Hagström
Modified: 2016-07-11 19:11 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 FIXED

Description Thomas Hagström 2016-07-05 11:24:28 UTC
# Steps to reproduce
Create a Xamarin.Forms iOS project using Xamarin.Forms 2.3.1.111-pre2 and enable linker (and ensure Xamarin.Forms.Core is in Linker.xml).
Build.

# Expected behavior
Build succeeds

# Actual behavior
Build fails with error 
    C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(681,3): error : Failed to resolve "System.Void 
    Xamarin.Forms.VisualElement::InvalidateMeasure()" reference from "Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null"

Tested several times. Reverting to XF stable removes the issue.

# Supplemental info (logs, images, videos)
Looking at the VisualElement.cs class for iOS in assembly browser reveals some strange artifacts:
VisualElement.\u003C\u003Ec.\u003C\u003E9.\u003C\u002Ecctor\u003Eb__211_1
this.\u003CTargetType\u003Ek__BackingField = targetType;
Sure looks like the linker has corrupted the file, but I can't be sure.

Build log:
amarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/FFImageLoading.Forms.Touch.dll
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/SogetiSrmiOS.exe'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/mscorlib.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Xamarin.Forms.Core.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Runtime.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Core.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Xml.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Mono.Dynamic.Interpreter.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.ComponentModel.Composition.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Collections.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Diagnostics.Debug.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Threading.Tasks.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.ObjectModel.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Globalization.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.ComponentModel.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Xml.ReaderWriter.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Reflection.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Linq.Expressions.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.IO.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Dynamic.Runtime.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Threading.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Xamarin.Forms.Platform.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Xamarin.Forms.Platform.iOS.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Xamarin.iOS.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Net.Http.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Runtime.Serialization.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.ServiceModel.Internals.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Runtime.Extensions.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Linq.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Reflection.Extensions.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/FFImageLoading.Transformations.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/FFImageLoading.Platform.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/FFImageLoading.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/WebP.Touch.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Sogeti.Srm.Forms.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Resources.ResourceManager.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Prism.Unity.Forms.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Prism.Forms.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Prism.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Diagnostics.Tools.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Microsoft.Practices.Unity.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Microsoft.Practices.ServiceLocation.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Sogeti.Forms.Azure.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Microsoft.WindowsAzure.Mobile.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Newtonsoft.Json.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Xml.XDocument.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Xml.Linq.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Runtime.Serialization.Primitives.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Text.RegularExpressions.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Text.Encoding.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Text.Encoding.Extensions.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Microsoft.CSharp.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Mono.CSharp.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Net.Primitives.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Net.Http.Primitives.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Runtime.InteropServices.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Linq.Queryable.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Microsoft.WindowsAzure.Mobile.SQLiteStore.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/SQLitePCL.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Microsoft.WindowsAzure.Storage.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Microsoft.Data.OData.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Microsoft.Data.Edm.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Spatial.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/HLI.Core.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/System.Runtime.Serialization.Xml.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Plugin.Media.Abstractions.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/SQLite.Net.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Plugin.Media.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Sogeti.Forms.Core.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Xamarin.Forms.Xaml.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Sogeti.Forms.Prism.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Sogeti.Forms.Validation.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/FluentValidation.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/FFImageLoading.Forms.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Plugin.LocalNotifications.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Plugin.LocalNotifications.Abstractions.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/HockeySDK.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/Microsoft.WindowsAzure.Mobile.Ext.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/SQLitePCL.Ext.dll'
1>  Loaded '/Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/Link/FFImageLoading.Forms.Touch.dll'
1>  Linking SDK only for assembly bin/iPhoneSimulator/Debug/SogetiSrmiOS.exe into /Users/user119565/Library/Caches/Xamarin/mtbs/builds/SogetiSrmiOS/8ea50dcf176c3209abb04cc5591f3004/obj/iPhoneSimulator/Debug/mtouch-cache/64/PreBuild
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(681,3): error : Failed to resolve "System.Void Xamarin.Forms.VisualElement::InvalidateMeasure()" reference from "Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null"
1>  --- inner exception
1>  Mono.Cecil.ResolutionException: Failed to resolve System.Void Xamarin.Forms.VisualElement::InvalidateMeasure()
1>    at Mono.Linker.Steps.MarkStep.MarkMethod (Mono.Cecil.MethodReference reference) <0x1095d59a0 + 0x00209> in <filename unknown>:0 
1>    at Xamarin.Linker.Steps.MobileMarkStep.MarkMethod (Mono.Cecil.MethodReference reference) <0x1095d56a0 + 0x00042> in <filename unknown>:0 
1>    at Xamarin.Linker.Steps.CoreMarkStep.MarkMethod (Mono.Cecil.MethodReference reference) <0x1095d48c0 + 0x000ff> in <filename unknown>:0 
1>    at MonoTouch.Tuner.MonoTouchMarkStep.MarkMethod (Mono.Cecil.MethodReference reference) <0x1095d4610 + 0x0003a> in <filename unknown>:0 
1>    at Mono.Linker.Steps.MarkStep.MarkInstruction (Mono.Cecil.Cil.Instruction instruction) <0x1095e1b50 + 0x001d3> in <filename unknown>:0 
1>    at Xamarin.Linker.Steps.CoreMarkStep.MarkInstruction (Mono.Cecil.Cil.Instruction instruction) <0x1095e19a0 + 0x0017a> in <filename unknown>:0 
1>    at Mono.Linker.Steps.MarkStep.MarkMethodBody (Mono.Cecil.Cil.MethodBody body) <0x1095e1660 + 0x0027c> in <filename unknown>:0 
1>    at MonoTouch.Tuner.MonoTouchMarkStep.MarkMethodBody (Mono.Cecil.Cil.MethodBody body) <0x1095e15c0 + 0x0006d> in <filename unknown>:0 
1>    at Mono.Linker.Steps.MarkStep.ProcessMethod (Mono.Cecil.MethodDefinition method) <0x1095e0aa0 + 0x003ec> in <filename unknown>:0 
1>    at Xamarin.Linker.Steps.CoreMarkStep.ProcessMethod (Mono.Cecil.MethodDefinition method) <0x1095e08c0 + 0x0003e> in <filename unknown>:0 
1>    at Mono.Linker.Steps.MarkStep.ProcessQueue () <0x1095e06a0 + 0x00084> in <filename unknown>:0 
1>    at Mono.Linker.Steps.MarkStep.Process () <0x1095e0580 + 0x00037> in <filename unknown>:0 
1>    at Mono.Linker.Steps.MarkStep.Process (Mono.Linker.LinkContext context) <0x1095d3ca0 + 0x00062> in <filename unknown>:0 
1>    at Xamarin.Linker.Steps.MobileMarkStep.Process (Mono.Linker.LinkContext context) <0x1095d3a30 + 0x00044> in <filename unknown>:0 
1>    at Xamarin.Linker.Steps.CoreMarkStep.Process (Mono.Linker.LinkContext context) <0x1095d37a0 + 0x000de> in <filename unknown>:0 
1>    at MonoTouch.Tuner.MonoTouchMarkStep.Process (Mono.Linker.LinkContext context) <0x1095d3650 + 0x0006c> in <filename unknown>:0 
1>    at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) <0x1066ad9d0 + 0x00110> in <filename unknown>:0 
1>    at MonoTouch.Tuner.Linker.Process (MonoTouch.Tuner.LinkerOptions options, MonoTouch.Tuner.MonoTouchLinkContext& context, System.Collections.Generic.List`1& assemblies) <0x1043bc210 + 0x002f3> in <filename unknown>:0 
1>  ---
1>    at MonoTouch.Tuner.Linker.Process (MonoTouch.Tuner.LinkerOptions options, MonoTouch.Tuner.MonoTouchLinkContext& context, System.Collections.Generic.List`1& assemblies) <0x1043bc210 + 0x00659> in <filename unknown>:0 
1>    at Xamarin.Bundler.Target.LinkAssemblies (System.String main, System.Collections.Generic.List`1& assemblies, System.String output_dir, MonoTouch.Tuner.MonoTouchLinkContext& link_context) <0x1043bab40 + 0x00568> in <filename unknown>:0 
1>    at Xamarin.Bundler.Target.ManagedLink () <0x1023f18b0 + 0x00cc9> in <filename unknown>:0 
1>    at Xamarin.Bundler.Target.ProcessAssemblies () <0x1023f11e0 + 0x00358> in <filename unknown>:0 
1>    at Xamarin.Bundler.Application.BuildApp () <0x1023f0890 + 0x000af> in <filename unknown>:0 
1>    at Xamarin.Bundler.Application.Build () <0x10226e6e0 + 0x000ee> in <filename unknown>:0 
1>    at Xamarin.Bundler.Driver.Main2 (System.String[] args) <0x102216780 + 0x071b0> in <filename unknown>:0 
1>    at Xamarin.Bundler.Driver.Main (System.String[] args) <0x10216eff0 + 0x00069> in <filename unknown>:0 
1>  Tool /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch execution finished.
1>  MTouch: 2016-07-05T13:06:50.8266320+02:00 - Finished
1>Done executing task "MTouch" -- FAILED.
1>Done building target "_CompileToNative" in project "Sogeti.Srm.iOS.csproj" -- FAILED.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:24.15

# Test environment (full version information)
Windows 10
Visual Studio 2015 Update 2
Comment 1 Samantha Houts [MSFT] 2016-07-05 21:21:48 UTC
Thank you for taking the time to submit the bug. We tried to reproduce the issue you reported but were unable given the description. If you could please attach a reproduction to the bug by starting with a clean Xamarin.Forms project and adding just the code necessary to demonstrate the issue, we would very much appreciate it.  

For your convenience, we have created some reproduction best practices viewable here: https://gist.github.com/jassmith/92405c300e54a01dcc6d  

Warm regards, 
Xamarin Forms Team
Comment 2 Thomas Hagström 2016-07-06 11:27:25 UTC
Thanks - that's a good guideline (put it on the "post bug" page).

Using your guidance I managed to narrow down the root cause:

It was not evident, but a third party lib (FFImageLoading) caused the issue - probably since it references an earlier version of Xamarin.Forms and I imagine it doesn't use the "bait and switch" trick.

Updating my lib to pre as well solved the issue.
Comment 3 E.Z. Hart [MSFT] 2016-07-11 19:11:16 UTC
Turns out this was an incorrect refactoring. We've got a fix for it that should be in an upcoming release.