Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build error in Xcode on cloud-hosted Mac on VSTS

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

like image 277
MadLeo Avatar asked Dec 23 '22 06:12

MadLeo


2 Answers

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

May be it will help others.

Thanks

like image 159
MadLeo Avatar answered Dec 29 '22 11:12

MadLeo


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.

like image 35
Chathurka Avatar answered Dec 29 '22 12:12

Chathurka