Build error in Xcode on cloud-hosted Mac on VSTS

2020-07-17 07:41发布

问题:

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

no such module 'RxCocoa' import RxCocoa

** BUILD FAILED **

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

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

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

Thanks in Advance

回答1:

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

May be it will help others.

Thanks



回答2:

I have faced another issue and fixed this issue after 4 days.

Please check your configuration: '$(configuration)' scheme: '$(scheme)'

Most of example tell you "configuration" as "Release" if you have custom configuration please use particular name.