Closed santosh-qas closed 2 years ago
with attached setting it built successfully
Hi, @santosh-qas - thanks for opening this issue. What settings did you change to make it build successfully?
From the logs you've shared
"_OBJC_CLASS_$_TwilioVideoSDK", referenced from:
-u command line option
ld: symbol(s) not found for architecture arm64
clang : error : linker command failed with exit code 1 (use -v to see invocation)
MTOUCH : error MT5216: Native linking failed for '/Users/apple/Documents/Workspace/MYAPP-v4/MYAPP/MYAPP.iOS/obj/iPhone/Debug/mtouch-cache/arm64/libTwilio.Video.iOS.dll.dylib'. Please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new
it looks like _TwilioVideoSDK
does not support arm64
architecture. Consider reaching out to the vendor to confirm that they support it.
Hi, @santosh-qas - thanks for opening this issue. What settings did you change to make it build successfully?
From the logs you've shared
"_OBJC_CLASS_$_TwilioVideoSDK", referenced from: -u command line option ld: symbol(s) not found for architecture arm64 clang : error : linker command failed with exit code 1 (use -v to see invocation) MTOUCH : error MT5216: Native linking failed for '/Users/apple/Documents/Workspace/MYAPP-v4/MYAPP/MYAPP.iOS/obj/iPhone/Debug/mtouch-cache/arm64/libTwilio.Video.iOS.dll.dylib'. Please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new
it looks like
_TwilioVideoSDK
does not supportarm64
architecture. Consider reaching out to the vendor to confirm that they support it.
Hi @rachelkang
in iOS build setting uncheck "Enable incremental builds" and rebuild.
Steps to Reproduce
Expected Behavior
app should be deployed and run on debug mode in iPhone
Actual Behavior
Getting error Error MT5216: Native linking failed for '/Users/apple/Documents/Workspace/MYAPP/MYAPP.iOS/obj/iPhone/Debug/mtouch-cache/arm64/libTwilio.Video.iOS.dll.dylib'.
Environment
Macbook Pro OS : macOS BigSur 11.6.2 (20G314)
Build Logs
arget _WriteAppManifest: Directory "bin/iPhone/Debug/MYAPP.iOS.app.dSYM" doesn't exist. Skipping. Target _CompileToNative: /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch @/Users/apple/Documents/Workspace/MYAPP-v4/MYAPP/MYAPP.iOS/obj/iPhone/Debug/response-file.rsp Xamarin.iOS 15.4.0.0 (xcode13.2: 8fc41ae82) using framework: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk MTOUCH : warning MT0109: The assembly 'System.Security.Cryptography.Cng.dll' was loaded from a different path than the provided path (provided path: /Users/apple/.nuget/packages/system.security.cryptography.cng/4.5.0/runtimes/win/lib/netstandard1.6/System.Security.Cryptography.Cng.dll, actual path: /Library/Frameworks/Xamarin.iOS.framework/Versions/15.4.0.0/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.Cng.dll).
Done building target "_CompileToNative" in project "MYAPP.iOS.csproj" -- FAILED.
Done building project "MYAPP.iOS.csproj" -- FAILED.
Build FAILED.
Resources/placeholder_avatar.png : warning : Warning: Input PNG does not have an 8 bit input depth. Please convert your PNG to 8-bit for optimal performance on iPhone OS. /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2218,5): warning MSB3277: Found conflicts between different versions of "System.Numerics.Vectors" that could not be resolved. /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2218,5): warning MSB3277: There was a conflict between "System.Numerics.Vectors, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2218,5): warning MSB3277: "System.Numerics.Vectors, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was chosen because it was primary and "System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was not. /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2218,5): warning MSB3277: References which depend on "System.Numerics.Vectors, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Numerics.Vectors.dll]. /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2218,5): warning MSB3277: /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Numerics.Vectors.dll /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2218,5): warning MSB3277: Project file item includes which caused reference "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Numerics.Vectors.dll". /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2218,5): warning MSB3277: System.Numerics.Vectors /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2218,5): warning MSB3277: References which depend on "System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" []. /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2218,5): warning MSB3277: /Users/apple/.nuget/packages/microsoft.aspnetcore.server.kestrel.core/2.2.0/lib/netstandard2.0/Microsoft.AspNetCore.Server.Kestrel.Core.dll /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2218,5): warning MSB3277: Project file item includes which caused reference "/Users/apple/.nuget/packages/microsoft.aspnetcore.server.kestrel.core/2.2.0/lib/netstandard2.0/Microsoft.AspNetCore.Server.Kestrel.Core.dll". /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2218,5): warning MSB3277: /Users/apple/.nuget/packages/microsoft.aspnetcore.server.kestrel.core/2.2.0/lib/netstandard2.0/Microsoft.AspNetCore.Server.Kestrel.Core.dll /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2218,5): warning MSB3277: /Users/apple/.nuget/packages/microsoft.aspnetcore/2.2.0/lib/netstandard2.0/Microsoft.AspNetCore.dll /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2218,5): warning MSB3277: /Users/apple/.nuget/packages/microsoft.aspnetcore.server.kestrel/2.2.0/lib/netstandard2.0/Microsoft.AspNetCore.Server.Kestrel.dll /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2218,5): warning MSB3277: /Users/apple/.nuget/packages/microsoft.aspnetcore.server.kestrel.https/2.2.0/lib/netstandard2.0/Microsoft.AspNetCore.Server.Kestrel.Https.dll /Users/apple/Documents/Workspace/MYAPP-v4/MYAPP/MYAPP.iOS/Main.cs(17,13,17,58): warning CS0618: 'UIApplication.Main(string[]?, string?, string?)' is obsolete: 'Use the overload with 'Type' instead of 'String' parameters for type safety.' /Users/apple/Documents/Workspace/MYAPP-v4/MYAPP/MYAPP.iOS/Services/IOService.cs(41,30,41,32): warning CS0168: The variable 'ex' is declared but never used MTOUCH : warning MT0109: The assembly 'System.Security.Cryptography.Cng.dll' was loaded from a different path than the provided path (provided path: /Users/apple/.nuget/packages/system.security.cryptography.cng/4.5.0/runtimes/win/lib/netstandard1.6/System.Security.Cryptography.Cng.dll, actual path: /Library/Frameworks/Xamarin.iOS.framework/Versions/15.4.0.0/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.Cng.dll). clang : error : linker command failed with exit code 1 (use -v to see invocation) MTOUCH : error MT5216: Native linking failed for '/Users/apple/Documents/Workspace/MYAPP-v4/MYAPP/MYAPP.iOS/obj/iPhone/Debug/mtouch-cache/arm64/libTwilio.Video.iOS.dll.dylib'. Please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new 10 Warning(s) 2 Error(s)
Time Elapsed 00:01:08.30
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Also it is observed that the file libTwilio.Video.iOS.dll.dylib' is not created at the specified location.