tvOS project fails to build when building for real device
What is the current bug behavior?
Build fails when building for real device (tvOS)
What is the expected correct behavior?
Build should pass
Relevant logs and/or screenshots
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -framework Foundation -framework UIKit -weak_framework DynamicTVVLCKit -Xlinker -rpath -Xlinker @executable_path/ MyProject.tvOS/obj/iPhone/Debug/mtouch-cache/arm64/LibVLCSharp.dll.o /Library/Frameworks/Xamarin.iOS.framework/Versions/12.99.4.26/SDKs/Xamarin.AppleTVOS.sdk/usr/lib/libmonosgen-2.0.dylib /Library/Frameworks/Xamarin.iOS.framework/Versions/12.99.4.26/SDKs/Xamarin.AppleTVOS.sdk/usr/lib/libxamarin-debug.dylib /Library/Frameworks/Xamarin.iOS.framework/Versions/12.99.4.26/SDKs/Xamarin.AppleTVOS.sdk/usr/lib/libmono-native-unified.dylib -lz -liconv -gdwarf-2 -std=c++14 -I/Library/Frameworks/Xamarin.iOS.framework/Versions/12.99.4.26/SDKs/Xamarin.AppleTVOS.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS13.0.sdk -Qunused-arguments -mtvos-version-min=11.0 -fembed-bitcode-marker -arch arm64 -shared -lc++ -install_name @rpath/libLibVLCSharp.dll.dylib -fapplication-extension -o MyProject.tvOS/obj/iPhone/Debug/mtouch-cache/arm64/libLibVLCSharp.dll.dylib -DDEBUG
Compilation failed with code 1, command:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -framework Foundation -framework UIKit -weak_framework DynamicTVVLCKit -Xlinker -rpath -Xlinker @executable_path/ MyProject.tvOS/obj/iPhone/Debug/mtouch-cache/arm64/LibVLCSharp.dll.o /Library/Frameworks/Xamarin.iOS.framework/Versions/12.99.4.26/SDKs/Xamarin.AppleTVOS.sdk/usr/lib/libmonosgen-2.0.dylib /Library/Frameworks/Xamarin.iOS.framework/Versions/12.99.4.26/SDKs/Xamarin.AppleTVOS.sdk/usr/lib/libxamarin-debug.dylib /Library/Frameworks/Xamarin.iOS.framework/Versions/12.99.4.26/SDKs/Xamarin.AppleTVOS.sdk/usr/lib/libmono-native-unified.dylib -lz -liconv -gdwarf-2 -std=c++14 -I/Library/Frameworks/Xamarin.iOS.framework/Versions/12.99.4.26/SDKs/Xamarin.AppleTVOS.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS13.0.sdk -Qunused-arguments -mtvos-version-min=11.0 -fembed-bitcode-marker -arch arm64 -shared -lc++ -install_name @rpath/libLibVLCSharp.dll.dylib -fapplication-extension -o MyProject.tvOS/obj/iPhone/Debug/mtouch-cache/arm64/libLibVLCSharp.dll.dylib -DDEBUG
ld: framework not found DynamicTVVLCKit
...
lang : error : linker command failed with exit code 1 (use -v to see invocation)
clang : error : linker command failed with exit code 1 (use -v to see invocation)
MTOUCH : error MT5216: Native linking failed for 'MyProject.tvOS/obj/iPhone/Debug/mtouch-cache/arm64/libLibVLCSharp.dll.dylib'. Please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new
9 Warning(s)
3 Error(s)
It's worth to mention that DynamicTVVLCKit
it's actually present in file system after nuget restore.
Environment
- OS: tvOS
- Version 12 and 13
- Device: Apple TV
- LibVLC version and architecture: tvOS 3.2.0
- LibVLCSharp version: 3.2.0