2

I've added Microsoft Solver Foundation via Nuget to a Xamarin iOS project but it fails to build with this message:

Build FAILED.

MTOUCH : warning MT5215: References to 'gdiplus' might require additional -framework=XXX or -lXXX instructions to the native linker
MTOUCH : warning MT5215: References to 'gdi32' might require additional -framework=XXX or -lXXX instructions to the native linker
MTOUCH : warning MT5215: References to 'user32' might require additional -framework=XXX or -lXXX instructions to the native linker
MTOUCH : warning MT5215: References to 'libX11' might require additional -framework=XXX or -lXXX instructions to the native linker
MTOUCH : warning MT5215: References to 'winspool' might require additional -framework=XXX or -lXXX instructions to the native linker
MTOUCH : warning MT5215: References to 'libcups' might require additional -framework=XXX or -lXXX instructions to the native linker
MTOUCH : warning MT5215: References to 'kernel32' might require additional -framework=XXX or -lXXX instructions to the native linker
clang : error : linker command failed with exit code 1 (use -v to see invocation)
error MT5209 : Native linking error : framework not found Carbon
MTOUCH : error MT5202: Native linking failed. Please review the build log.
    7 Warning(s)
    3 Error(s)

I'm just starting out with Xamarin and I haven't seen these issues before. Does anyone know how I can fix them?

Here's a screenshot enter image description here

4

1 回答 1

1

我不确定最近是否更新了 Mircosoft Solver,但我的理解是它对 Linq 程序集的内部依赖意味着它不能与 MonoFramework 一起正常工作。

我没有看到任何对成功正确链接程序集的人的引用。目前我不完全确定 Solver 是否真的可以与 Xamarin 相关联。

查看上面的异常日志,它将程序集构建推送到本机链接器,并且使用某些 dll 遇到异常。在大多数本机链接器情况下,您必须等待 xamarin 团队推出更新。但我认为 Solver Foundation 不在他们的名单上。


本机链接器错误示例

于 2017-07-25T13:50:36.903 回答