Custom build configuration names

Can we somehow compile a project that has custom configuration names that are different than Debug/Release? Currently, we get module not found error if let's say we want to build a project with build configuration named Alpha etc.

11 Likes

Unfortunately, no. This is currently a know issue in Xcode. We're tracking this internally.

This is a huge issue for us as well. We can't use SPM in Xcode until this is working.

6 Likes

We are using custom multiple configs in our project and really need SPM to support it.

Seems like there is a workaround until it will be fixed:

1 Like

However, that particular workaround doesn't seem to work for archives with non supported configuration names. Which for me is a problem since my daily test(er) builds rely on this.

1 Like

It seems that it works when you put the script in Build phases before Compile sources.
Take a look at my answer xcode11 - Getting 'no such module' error when importing a Swift Package Manager dependency - Stack Overflow

1 Like

Thanks @nonameplum! This seems to work for me indeed.

You can find a fix here for this issue Swift Package Hack. Read this post if you have “No such
 | by Álvaro Royo | Medium

1 Like

Any updates on this issue?

6 Likes

One year later, this is still an issue. Any progress? Is there a chance you could share the Xcode issue tracker for this?

2 Likes

This is still occurring @NeoNacho do you know if there is a fix for this?

It's a pity that there is no progress here. It's very important for my company's project.

1 Like

bump this!

1 Like

Hi @Aciid Do we have any update on this? I am getting this issue in Xcode 14.2 aswell.

Still an issue in Xcode 14.3.

Using a custom configuration name with Debug or Release prefix seems to work fine (contrary to using a fully custom name), at least in Xcode 15.1.

Configuration name examples:

  • DebugTesting (duplicated from Debug)
  • ReleaseStaging (duplicated from Release)
1 Like