Native linking failed
aloisdeniel opened this issue · comments
Aloïs Deniel commented
I currently have build errors when referencing the version 0.2 of Xamarin.Flex from an iOS project.
Steps to reproduce :
- create a Xamarin.iOS project from the Single screen template
- add reference to version 0.2 of Xamarin.Flex
- add
var item = new Xamarin.Flex.Item();
in theViewDidLoad
method of the main view controller
Here is the stack trace :
clang : error : linker command failed with exit code 1 (use -v to see invocation)
MTOUCH : error MT5214: Native linking failed, undefined symbol: _flex_item_get_self_sizing. This symbol was referenced by the managed member Xamarin.Flex.NativeFunctions.flex_item_get_self_sizing. Please verify that all the necessary frameworks have been referenced and native libraries linked.
MTOUCH : error MT5214: Native linking failed, undefined symbol: _flex_item_set_self_sizing. This symbol was referenced by the managed member Xamarin.Flex.NativeFunctions.flex_item_set_self_sizing. Please verify that all the necessary frameworks have been referenced and native libraries linked.
MTOUCH : error MT5201: Native linking failed. Please review the build log and the user flags provided to gcc: -L/Users/alois/Projects/TestFlex/packages/Xamarin.Flex.0.2/build/XamariniOS/../../native/ios -lflex -force_load /Users/alois/Projects/TestFlex/packages/Xamarin.Flex.0.2/build/XamariniOS/../../native/ios/libflex.a
MTOUCH : error MT5202: Native linking failed. Please review the build log.
Environment:
=== Visual Studio Community 2017 for Mac ===
Version 7.2.2 (build 7)
Installation UUID: 505008b4-7764-455f-aa41-f1aa53cc98d8
Runtime:
Mono 5.4.1.6 (2017-06/1f4613aa1ac) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 504010006
=== NuGet ===
Version: 4.3.1.4445
=== .NET Core ===
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
2.0.0
1.1.2
1.1.1
1.0.5
1.0.4
SDK: /usr/local/share/dotnet/sdk/2.0.0/Sdks
SDK Versions:
2.0.0
1.0.4
1.0.1
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Sdks
=== Xamarin.Profiler ===
Version: 1.5.6
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
=== Apple Developer Tools ===
Xcode 9.0.1 (13249)
Build 9A1004
=== Xamarin.iOS ===
Version: 11.2.1.0 (Visual Studio Community)
Hash: 12e80e01
Branch: d15-4-xi
Build date: 2017-10-13 12:03:42-0400
=== Xamarin.Android ===
Version: 8.0.2.1 (Visual Studio Community)
Android SDK: /Users/alois/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
5.0 (API level 21)
6.0 (API level 23)
7.0 (API level 24)
7.1 (API level 25)
8.0 (API level 26)
SDK Tools Version:
SDK Platform Tools Version: 24.0.4
SDK Build Tools Version: 26.0.0
Java SDK: /usr
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
=== Xamarin.Mac ===
Version: 3.8.1.0 (Visual Studio Community)
=== Xamarin Inspector ===
Version: 1.3.2
Hash: 461f09a
Branch: 1.3-release
Build date: Tue, 03 Oct 2017 18:26:57 GMT
Client compatibility: 1
=== Build Information ===
Release ID: 702020007
Git revision: 2236098c68f51eeb447cb947a87371d1e84f6213
Build date: 2017-10-23 11:43:05-04
Xamarin addins: eaa605cf97f25ce184949f32c712b465ca96f665
Build lane: monodevelop-lion-d15-4
=== Operating System ===
Mac OS X 10.12.6
Darwin 16.7.0 Darwin Kernel Version 16.7.0
Thu Jun 15 17:36:27 PDT 2017
root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
Laurent Sansonetti commented
Hi @aloisdeniel! This could have been a build issue, I just pushed master as 0.3.1 would you mind to try again? https://www.nuget.org/packages/Xamarin.Flex
Aloïs Deniel commented
Just tried and it seems good to me now! Thanks @lrz!