Unable to use SWIFT_EXPLICIT_MODULES

I'm following the guidance from [wwdc24/10171] using Xcode 16 beta 2 on Sonoma (https://developer.apple.com/wwdc24/10171) and find myself unable to active the _EXPERIMENTAL_SWIFT_EXPLICIT_MODULES = YES setting.

I tried both in the project file and in the XCConfig file and nothing. After cleaning and building with timing summary, I can't find any "Compiling Swift module" nor any "modules report".

I only get multiple statements of "Compiling clang module" and the "GenerateClangModulesReport"

What am I doing wrong?

Answered by andreimatei in 793709022

Found the problem:

It's due to `SWIFT_OBJC_INTEROP_MODE = objcxx

Accepted Answer

Found the problem:

It's due to `SWIFT_OBJC_INTEROP_MODE = objcxx

Unable to use SWIFT_EXPLICIT_MODULES
 
 
Q