Type 'Bundle' has no member 'module'

Xcode Version 15.4 (15F31d), macOS 14.5 (23F79)

When I build my app for release I get the error:

/Users/danielplatt/Library/Developer/Xcode/DerivedData/DIY_Hypnotism-efkmikwjjzlodvbfszkzazwuwwtk/Build/Intermediates.noindex/DIY Hypnotism.build/Release/DIY Hypnotism.build/DerivedSources/GeneratedAssetSymbols.swift:16:48 Type 'Bundle' has no member 'module'

I have no idea why this is happening. It only happens with a release build. Debug builds and runs correctly.

Any insight would be appreciated.

I have an example project, but can't figure out how I'm supposed to link it to this post.

Type 'Bundle' has no member 'module'
 
 
Q