expo / config-plugins

Out-of-tree Expo config plugins for packages that haven't adopted the config plugin system yet.
432 stars 92 forks source link

The Swift pod `ExpoAdapterBranch` depends upon `react-native-branch`, which does not define modules. #84

Closed haibert closed 2 years ago

haibert commented 2 years ago

Summary

I followed the instructions for the react native branch config plug in, ran eas build, the build failed with the following error.

[!] The following Swift pods cannot yet be integrated as static libraries:
The Swift pod `ExpoAdapterBranch` depends upon `react-native-branch`, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.
pod exited with non-zero code: 1

Config Plugin

@config-plugins/react-native-branch

What platform(s) does this occur on?

iOS

SDK Version

45

Reproducible demo

https://github.com/haibert/BranchIssue

EvanBacon commented 2 years ago

Running expo run:ios in the test app works as expected. Please check the versions ("react-native-branch": "^5.4.0") and try again.