Skip to content
← Back to activity

Immutable solution version

The project named "Foo does not contain a scheme named "Bar" bitrise.io

Version 1Sign in to save

Complete solution

Based on the Bryan Mussial answer The root cause is that the default behavior of Schemes is to keep schemes 'private' until they are specifically marked as shared.

Based on the Bryan Mussial answer The root cause is that the default behavior of Schemes is to keep schemes 'private' until they are specifically marked as shared. In the case of a command-line initiated build, the Xcode UI never runs and the xcoderun tool doesn't have its own cache of Schemes to work with. To your schema be visible for command-line build you must mark it as a shared scheme. From the menu bar, select Product > Scheme > Manage Schemes Ensure the 'Shared' box is checked for that scheme A new .xcscheme file has been created in your project at WorkspaceName.xcworkspace/xcshareddata/xcschemes. Commit this file to your repository

Context: I just configure a project in bitrise.io. But the xcode-build fails with error: xcodebuild: error: The project named "Foo" does not contain a scheme named "Bar". The "-list" option can be used to find the names of the schemes in the project. I double check and the scheme Bar does exist in the project Foo

Evidence

Source: I just configure a project in bitrise.io. But the xcode-build fails with error: xcodebuild: error: The project named "Foo" does not contain a scheme named "Bar". The "-list" option can be used to find the names of the schemes in the project. I double check and the scheme Bar does exist in the project Foo

Verified resolution: Based on the Bryan Mussial answer The root cause is that the default behavior of Schemes is to keep schemes 'private' until they are specifically marked as shared. In the case of a command-line initiated build, the Xcode UI never runs and the xcoderun tool doesn't have its own cache of Schemes to work with. To your schema be visible for command-line build you must mark it as a shared scheme. From the menu bar, select Product > Scheme > Manage Schemes Ensure the 'Shared' box is checked for that scheme A new .xcscheme file has been created in your project at WorkspaceName.xcworkspace/xcshareddata/xcschemes. Commit this file to your repository

Source URL: https://stackoverflow.com/questions/33521526/the-project-named-foo-does-not-contain-a-scheme-named-bar-bitrise-io

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_vG-o27M0PU6JOYZzv6wosQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">The project named &quot;Foo does not contain a scheme named &quot;Bar&quot; bitrise.io <span>— Vectle</span></a>