Skip to content

Conversation

@Pretz
Copy link

@Pretz Pretz commented Oct 31, 2025

Xcode 26 has started treating warnings in SPM headers as project-level warnings for users of the package. This causes issues for any project that has warnings as errors enabled and imports FLEX.

See similar discussions at
facebook/facebook-ios-sdk#2602 and RevenueCat/purchases-ios#5290

Fix two issues with FLEX that hit this change:

  • Wrap uses of UIScreen.mainScreen in FLEXMacros.h in clang diagnostic ignored "-Wdeprecated-declarations"
  • Add FLEXFileBrowserController.h to FLEX.h and mark as public in the Xcode project config.  Since FLEXFileBrowserController.h is part of the SwiftPM public headers after being added in Make FLEXFileBrowserController public #702 , it must be declared in the umbrella header to avoid FLEX/Classes/Headers/FLEX.h:26:1 umbrella header for module 'FLEX' does not include header 'FLEXFileBrowserController.h'. Once added to the umbrella header, the Xcode project would not build because the header was not marked public in the project file.

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.

1 participant