Xcodebuild error scheme not configured to run

I am trying to configure jenkins environment for automatic build . Everything works fine when I'm in the project development folder. However, the execution of the same command from the jenkins folder fails:

xcodebuild -scheme myApp -workspace my-app.xcworkspace -configuration Release build

with an error note:

xcodebuild: error: Failed to build workspace my-app with scheme myApp.
Reason: Scheme "myApp" is not configured for running.

Whether the "myApp" schema is in the container project or the workspace that contains this project is irrelevant. When looking inside the schema file, it seems that the work should be in order (but I have to admit, I have no idea why I need to work for a simple assembly):

<BuildAction
  parallelizeBuildables = "NO"
  buildImplicitDependencies = "YES">
  <BuildActionEntries>
     <BuildActionEntry
        buildForTesting = "YES"
        buildForRunning = "YES"
        buildForProfiling = "YES"
        buildForArchiving = "YES"
        buildForAnalyzing = "YES">
        <BuildableReference
           BuildableIdentifier = "primary"
           BlueprintIdentifier = "C0D73B7A15EF580200AFFFA5"
           BuildableName = "myApp.app"
           BlueprintName = "myApp"
           ReferencedContainer = "container:myApp.xcodeproj">
        </BuildableReference>
     </BuildActionEntry>
</BuildActionEntries>

, ? reset, , , , .. ... , , .

: , jenkins xcuserdata . - ?

+5
1

, , , xcodebuild .

, :

myApp.xcodeproj , my-app.xcworkspace.

, my-app.xcworkspace/contents.xcworkspacedata <FileRef>, - container:myApp.xcodeproj.

+2

All Articles