草庐IT

c++ - 用VS2015编译共享库 : "this client is not compatible with the paired build agent"

coder 2024-01-11 原文

我使用 Visual Studio Enterprise 2015 Update 1 创建了一个共享库: 文件 > 新建项目 > 模板 > Visual C++ > 跨平台 > 共享库(Android、iOS)

我默认得到以下项目结构:

android 项目构建成功。但是,当我尝试编译 iOS 项目(屏幕截图中突出显示的项目)时,问题出现了。

由于需要构建代理,我使用 npm 在 Mac 上安装了它和 vcremote (如此处解释:https://msdn.microsoft.com/library/mt147405.aspx)。

我通过进入 Tools > Options > Cross Platform > C++ > iOS > Pairing 成功地将 Visual Studio 与 Mac 配对。

但我仍然收到以下错误:

"Build agent request has failed, this client is not compatible with the paired build agent. Client version "1.3.0", build agent version "2.3.0". Supported build agent versions are: "2.0.0 - 2.2.0". Please update vcremote with "npm update vcremote", on the Mac."

在 Mac 终端上,我收到类似的错误消息:

"Visual Studio is incompatible with the current version of this build agent. Please update vcremote using npm."

我确实运行了 npm update vcremote 命令,它现在是最新的,但错误仍然出现。此外,关于客户端版本,构建代理版本似乎过高。

你们有什么建议?

最佳答案

问题是 vcremote-lib 的版本这太高了 (2.3.0)。我试图只降级这个包,但没有用,所以我降级了整个 vcremote它终于奏效了。以下是我为解决问题而采取的步骤:

卸载vcremote :

(关于 npm“卸载”命令的文档:https://docs.npmjs.com/cli/uninstall)

    sudo npm -g uninstall vcremote --save
    sudo npm -g uninstall vcremote-lib --save

检查可用的版本:

(关于 npm“版本”命令的文档:https://docs.npmjs.com/cli/version)

如果您在安装软件包时没有指定版本号,则默认选择最新版本。要检查特定包的可用版本(这里我们讨论的是 vcremote 包) 运行以下命令:

    npm view vcremote versions

重新安装特定版本的vcremote :

(关于 npm“安装”命令的文档:https://docs.npmjs.com/cli/install)

我不想要最后一个 (1.0.8),所以我在运行以下命令时指定了一个先前的版本 (1.0.6):

    sudo npm install -g --unsafe-perm vcremote@1.0.6

...而不是使用 documentation 中提供的以下命令:

    sudo npm install -g --unsafe-perm vcremote

最后:

现在它工作正常,因为 vcremote 1.0.6 使用 vcremote-lib 2.0.0(而 vcremote 1.0.8 使用 vcremote-lib 2.3.0).

关于c++ - 用VS2015编译共享库 : "this client is not compatible with the paired build agent",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36280149/

有关c++ - 用VS2015编译共享库 : "this client is not compatible with the paired build agent"的更多相关文章

  1. ruby-on-rails - rails : "missing partial" when calling 'render' in RSpec test - 2

    我正在尝试测试是否存在表单。我是Rails新手。我的new.html.erb_spec.rb文件的内容是:require'spec_helper'describe"messages/new.html.erb"doit"shouldrendertheform"dorender'/messages/new.html.erb'reponse.shouldhave_form_putting_to(@message)with_submit_buttonendendView本身,new.html.erb,有代码:当我运行rspec时,它失败了:1)messages/new.html.erbshou

  2. ruby-on-rails - 由于 "wkhtmltopdf",PDFKIT 显然无法正常工作 - 2

    我在从html页面生成PDF时遇到问题。我正在使用PDFkit。在安装它的过程中,我注意到我需要wkhtmltopdf。所以我也安装了它。我做了PDFkit的文档所说的一切......现在我在尝试加载PDF时遇到了这个错误。这里是错误:commandfailed:"/usr/local/bin/wkhtmltopdf""--margin-right""0.75in""--page-size""Letter""--margin-top""0.75in""--margin-bottom""0.75in""--encoding""UTF-8""--margin-left""0.75in""-

  3. ruby-on-rails - Railstutorial : db:populate vs. 工厂女孩 - 2

    在railstutorial中,作者为什么选择使用这个(代码list10.25):http://ruby.railstutorial.org/chapters/updating-showing-and-deleting-usersnamespace:dbdodesc"Filldatabasewithsampledata"task:populate=>:environmentdoRake::Task['db:reset'].invokeUser.create!(:name=>"ExampleUser",:email=>"example@railstutorial.org",:passwo

  4. ruby - 检查 "command"的输出应该包含 NilClass 的意外崩溃 - 2

    为了将Cucumber用于命令行脚本,我按照提供的说明安装了arubagem。它在我的Gemfile中,我可以验证是否安装了正确的版本并且我已经包含了require'aruba/cucumber'在'features/env.rb'中为了确保它能正常工作,我写了以下场景:@announceScenario:Testingcucumber/arubaGivenablankslateThentheoutputfrom"ls-la"shouldcontain"drw"假设事情应该失败。它确实失败了,但失败的原因是错误的:@announceScenario:Testingcucumber/ar

  5. ruby-on-rails - 如何优雅地重启 thin + nginx? - 2

    我的瘦服务器配置了nginx,我的ROR应用程序正在它们上运行。在我发布代码更新时运行thinrestart会给我的应用程序带来一些停机时间。我试图弄清楚如何优雅地重启正在运行的Thin实例,但找不到好的解决方案。有没有人能做到这一点? 最佳答案 #Restartjustthethinserverdescribedbythatconfigsudothin-C/etc/thin/mysite.ymlrestartNginx将继续运行并代理请求。如果您将Nginx设置为使用多个上游服务器,例如server{listen80;server

  6. ruby - 通过 ruby​​ 进程共享变量 - 2

    我正在编写一个gem,我必须在其中fork两个启动两个webrick服务器的进程。我想通过基类的类方法启动这个服务器,因为应该只有这两个服务器在运行,而不是多个。在运行时,我想调用这两个服务器上的一些方法来更改变量。我的问题是,我无法通过基类的类方法访问fork的实例变量。此外,我不能在我的基类中使用线程,因为在幕后我正在使用另一个不是线程安全的库。所以我必须将每个服务器派生到它自己的进程。我用类变量试过了,比如@@server。但是当我试图通过基类访问这个变量时,它是nil。我读到在Ruby中不可能在分支之间共享类变量,对吗?那么,还有其他解决办法吗?我考虑过使用单例,但我不确定这是

  7. ruby-on-rails - 迷你测试错误 : "NameError: uninitialized constant" - 2

    我遵循MichaelHartl的“RubyonRails教程:学习Web开发”,并创建了检查用户名和电子邮件长度有效性的测试(名称最多50个字符,电子邮件最多255个字符)。test/helpers/application_helper_test.rb的内容是:require'test_helper'classApplicationHelperTest在运行bundleexecraketest时,所有测试都通过了,但我看到以下消息在最后被标记为错误:ERROR["test_full_title_helper",ApplicationHelperTest,1.820016791]test

  8. ruby-on-rails - 相关表上的范围为 "WHERE ... LIKE" - 2

    我正在尝试从Postgresql表(table1)中获取数据,该表由另一个相关表(property)的字段(table2)过滤。在纯SQL中,我会这样编写查询:SELECT*FROMtable1JOINtable2USING(table2_id)WHEREtable2.propertyLIKE'query%'这工作正常:scope:my_scope,->(query){includes(:table2).where("table2.property":query)}但我真正需要的是使用LIKE运算符进行过滤,而不是严格相等。然而,这是行不通的:scope:my_scope,->(que

  9. 使用 ACL 调用 upload_file 时出现 Ruby S3 "Access Denied"错误 - 2

    我正在尝试编写一个将文件上传到AWS并公开该文件的Ruby脚本。我做了以下事情:s3=Aws::S3::Resource.new(credentials:Aws::Credentials.new(KEY,SECRET),region:'us-west-2')obj=s3.bucket('stg-db').object('key')obj.upload_file(filename)这似乎工作正常,除了该文件不是公开可用的,而且我无法获得它的公共(public)URL。但是当我登录到S3时,我可以正常查看我的文件。为了使其公开可用,我将最后一行更改为obj.upload_file(file

  10. ruby - 安装 Ruby 时遇到问题(无法下载资源 "readline--patch") - 2

    当我尝试安装Ruby时遇到此错误。我试过查看this和this但无济于事➜~brewinstallrubyWarning:YouareusingOSX10.12.Wedonotprovidesupportforthispre-releaseversion.Youmayencounterbuildfailuresorotherbreakages.Pleasecreatepull-requestsinsteadoffilingissues.==>Installingdependenciesforruby:readline,libyaml,makedepend==>Installingrub

随机推荐