Closed vincentisambart closed 10 months ago
Thank you for the report @vincentisambart 🙏
I've removed the addition of this build setting entirely, as seems this is causing issues anyway in various setups.
https://github.com/yonaskolb/XcodeGen/pull/1387
Resolved in XcodeGen 2.36.1
After updating to XcodeGen 2.36.0, in our project building a framework (named
TestingCore
here) that depends on XCTest fails during "Verify Modularization":We are using Xcode 14.3.1, but it also happens with Xcode 15 beta 5.
It seems to be caused by the changes in #1385 (issue #1349) that update default settings to the latest recommended settings. More precisely, the cause seems to be the enabling of what is called the "module verifier". It seems that module verifier does not like targets that are not test targets and link to XCTest. A user also mentions this problem on the Swift forums.
If someone has the same problem, the only way I found to make it work is to explicitly disable the module verifier for all targets that depend on XCTest and are not test targets.
XcodeGen could disable the module verifier by default on all non-test targets depending on XCTest, but such hidden behavior could cause problems in the long run so I'm not sure it would be a good idea. Anyway I thought having a issue explaining the problem and workaround would be a good thing to have, even if the issue is just closed.