在VSTS上的云托管Mac上的Xcode中生成错误 [英] Build error in Xcode on cloud-hosted Mac on VSTS

查看:83
本文介绍了在VSTS上的云托管Mac上的Xcode中生成错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在云上构建项目时出现以下错误

I'm getting following error while building my project on cloud

没有这样的模块'RxCocoa'导入RxCocoa

no such module 'RxCocoa' import RxCocoa

**生成失败**

以下构建命令失败:
CompileSwift普通arm64
CompileSwiftSources正常的arm64com.apple.xcode.tools.swift.compiler(2个失败)错误: /usr/bin/xcodebuild失败,返回码:65

The following build commands failed:
CompileSwift normal arm64
CompileSwiftSources normal arm64com.apple.xcode.tools.swift.compiler (2 failures) Error: /usr/bin/xcodebuild failed with return code: 65

当未在使用库链接二进制文件"中添加框架,然后Xcode抛出此错误时,原因与在本地计算机上构建的原因相同.

the reason is same as building on local machine when frameworks are not added in 'Link Binary With Libraries' then Xcode throw this error.

所以我的问题是如何在云托管的Mac上的Xcode中解决此问题?

So my question is how to fix this issue in Xcode on cloud-hosted Mac?

预先感谢

推荐答案

好的,所以只需将**/*.xcodeproj/project.xcworkspace替换为projectname.xcworkspace即可解决我的问题

ok so just replacing **/*.xcodeproj/project.xcworkspace with projectname.xcworkspace fixed my issue

也许会帮助别人.

谢谢

这篇关于在VSTS上的云托管Mac上的Xcode中生成错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆