Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Xcode 14.3's ENABLE_MODULE_VERIFIER #12390

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sharplet
Copy link
Contributor

The module verifier validates framework modularity in a clean test environment that doesn't work out of the box with the way CocoaPods framework targets are installed in CONFIGURATION_BUILD_DIR. Specifically, Xcode's default behaviour is to build framework bundles directly in $(CONFIGURATION_BUILD_DIR), whereas pod framework targets are built in a nested directory $(PODS_CONFIGURATION_BUILD_DIR)/PodName/. The result is that any Xcode framework target with ENABLE_MODULE_VERIFIER set to YES will fail to locate pod framework headers when verifying modularity.

By customizing OTHER_MODULE_VERIFIER_FLAGS, we can add pod framework build directories to the framework search path, allowing Xcode framework targets that depend on pod framework targets to use the module verifier.

The module verifier validates framework modularity in a clean test
environment that doesn't work out of the box with the way CocoaPods
framework targets are installed in CONFIGURATION_BUILD_DIR.
Specifically, Xcode's default behaviour is to build framework bundles
directly in $(CONFIGURATION_BUILD_DIR), whereas pod framework targets
are built in a nested directory $(PODS_CONFIGURATION_BUILD_DIR)/PodName/.
The result is that any Xcode framework target with ENABLE_MODULE_VERIFIER
set to YES will fail to locate pod framework headers when verifying modularity.

By customizing OTHER_MODULE_VERIFIER_FLAGS, we can add pod framework
build directories to the framework search path, allowing Xcode framework
targets that depend on pod framework targets to use the module verifier.
@CocoaPodsBarista
Copy link

1 Warning
⚠️ Please include a CHANGELOG entry to credit yourself!
You can find it at CHANGELOG.md.

Here's an example of your CHANGELOG entry:

* Add Support for Xcode 14.3's ENABLE_MODULE_VERIFIER  
  [sharplet](https://github.com/sharplet)
  [#issue_number](https://github.com/CocoaPods/CocoaPods/issues/issue_number)

note: There are two invisible spaces after the entry's text.

Generated by 🚫 Danger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants