1

I know there are many similar questions like iOS: xcodebuild: error: The workspace '' does not contain a scheme named ''

But I am experiencing build error in Jetbrains AppCode.

xcodebuild: error: The workspace 'Project.xcscheme' does not contain a scheme named 'Project.xcscheme'

Interesting is that XCode builds this project without problem... So that's why managing (deleting or autocreate) of scheme didn't helped for Appcode

Where can be the problem?

Community
  • 1
  • 1
travdu
  • 331
  • 3
  • 9

2 Answers2

0

I found out that I checked out (from Git) also contents.xcworkspacedata

Project.xcodeproj/project.xcworkspace/contents.xcworkspacedata

When I changed following lines AppCode was also able to build the project...

funny thing is that XCode was able to handle this.

 <Workspace version = "1.0">
    <FileRef
-      location = "self:/Users/xyz/Development/Projects/Project.xcodeproj">
+      location = "self:sdk.xcodeproj">
    </FileRef>
 </Workspace>
travdu
  • 331
  • 3
  • 9
0

I encountered the problem before, but I found the solution.

Open "Manage Schemes" dialog, and find your scheme, then tick the "Shared" checkbox, then xcodebuild works well.

I hope it will help you. Image below shows how to do.

enter image description here

JLT
  • 3,052
  • 9
  • 39
  • 86
Fled Zeng
  • 1
  • 2