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

Expo Dev Client Build Crashes: use_modular_headers! #15

Closed
sravis02 opened this issue May 6, 2023 · 4 comments · Fixed by #16
Closed

Expo Dev Client Build Crashes: use_modular_headers! #15

sravis02 opened this issue May 6, 2023 · 4 comments · Fixed by #16

Comments

@sravis02
Copy link

sravis02 commented May 6, 2023

I have installed WatermelonDB, and the Config-Plugin.
Then i wanted to create a development build with expo for the IOS simulator.

The build crashed when installing the pods.

...
Installing libevent (2.1.12)
Installing libvmaf (2.3.0)
Installing libwebp (1.2.4)
Installing react-native-safe-area-context (4.5.0)
Installing react-native-skia (0.1.172)
Installing simdjson (3.1.0-wmelon1)
[!] The following Swift pods cannot yet be integrated as static libraries:
The Swift pod `WatermelonDB` depends upon `simdjson`, 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.

Did I forget to setup something?

This is how the plugins part of my app.json looks

"plugins": [
      "@morrowdigital/watermelondb-expo-plugin",
      [
        "expo-build-properties",
        {
          "android": {
            "kotlinVersion": "1.6.10"
          }
        }
      ],
      [
        "expo-image-picker",
        {
          "photosPermission": "The app accesses your photos to let you preview your tattoos"
        }
      ]
    ]

Thanks

@ersin-demirtas
Copy link

ersin-demirtas commented May 9, 2023

@sravis02 I had the same issue, updated the ios/Podfile for the watermelondb dependencies.

  pod 'WatermelonDB', :path => '../node_modules/@nozbe/watermelondb'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi', :modular_headers => true
  pod 'simdjson', path: '../node_modules/@nozbe/simdjson', :modular_headers => true

to build again run yarn expo run:ios or yarn expo run:andorid

@brunokiafuka
Copy link
Collaborator

Hi thanks for flagging this issue, we have PR which fixes #16 this issue. We will update the lib once we merge it.

@brunokiafuka
Copy link
Collaborator

Hi we will be pushing a fix for "@nozbe/watermelondb": "^0.25.5",

@brunokiafuka
Copy link
Collaborator

brunokiafuka commented May 13, 2023

Hi can we install "@morrowdigital/watermelondb-expo-plugin": "^2.1.1" and re-run the npx expo run:[ios | android]. This new version aims to fix "@nozbe/watermelondb": "^0.26.0", please make sure that you have it on the lates version.

Feel free to reopen the issue if this persists.
Thanks :)

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 a pull request may close this issue.

3 participants