gpt4 book ai didi

xamarin - 在 VS 2017 中在哪里设置 RemoteRootDirectory 来编译 iOS C++ 共享库

转载 作者:行者123 更新时间:2023-12-03 21:28:56 25 4
gpt4 key购买 nike

我收到错误:
错误 MSB4044 未为“VCRemoteClean”任务指定所需参数“RemoteRootDirectory”的值。

我的环境包括一台装有 Visual Studio 2017(专业版)的 PC
Xamarin 构建代理成功链接到 MAC

我的 Mac 有适用于 MAC 的 Xcode 8.3.3 和 Visual Studio 2017

我的项目是带有 PCL 的 Xamarin 表单。它为 iOS 编译并成功创建了一个 IPA 文件
我添加了一个 C++ 跨平台共享项目。如果我尝试构建或编译 iOS 项目,我会收到上述错误。

我查看了位于 C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Application Type\iOS\1.0 的文件 iOS.Common.targets

它引用环境变量 RemoteRootDirectory。我不确定应该在哪里设置。

在此先感谢您的帮助,
斯科特

最佳答案

错误的原因似乎是vcremote未连接到远程 MacOS 计算机。这是 VS 开发人员社区的答案,可以在搜索此错误时找到:
https://developercommunity.visualstudio.com/content/problem/43015/error-msb4044-the-task-was-not-given-a-value-for-t.html
作者自己回答:

I was able to set it in iOS.Common.targets to /Users//xcremote/. After that the real error became more clear. vcremote was not connected.

See here on how to set it up: https://msdn.microsoft.com/en-us/library/mt147405.aspx



不过,该文章链接到 VS 2015 文章。最新的 VS 2019 链接在这里:
https://docs.microsoft.com/de-de/cpp/cross-platform/install-and-configure-tools-to-build-using-ios?view=vs-2019&redirectedfrom=MSDN

关于xamarin - 在 VS 2017 中在哪里设置 RemoteRootDirectory 来编译 iOS C++ 共享库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45724758/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com