体系结构 arm64 的未定义符号:“_BRANCH_REQUEST_KEY_UPDATE”

Undefined symbols for architecture arm64:"_BRANCH_REQUEST_KEY_UPDATE"

我尝试从 NuGet 安装 Branch SDK 并出现错误

1> Undefined symbols for architecture arm64: 1> "_BRANCH_REQUEST_KEY_UPDATE", referenced from: 1> -u command line option 1> ld: symbol(s) not found for architecture arm64 1> clang: error: linker command failed with exit code 1 (use -v to see invocation) 1>C:\Program Files (x86)\Microsoft Visual Studio17\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(791,3): error : Native linking failed, undefined symbol: _BRANCH_REQUEST_KEY_UPDATE. This symbol was referenced by the managed member IOSNativeBranch.Constants.BRANCH_REQUEST_KEY_UPDATE. Please verify that all the necessary frameworks have been referenced and native libraries linked. 1>C:\Program Files (x86)\Microsoft Visual Studio17\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(791,3): warning : References to 'kernel32' might require additional -framework=XXX or -lXXX instructions to the native linker 1>C:\Program Files (x86)\Microsoft Visual Studio17\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(791,3): error : Native linking failed. Please review the build log.

这是来自 Branch.io 的 Vatsal。

您可以尝试使用 "Framework SDK's only" 设置链接器行为吗?它应该可以解决问题。