-
Notifications
You must be signed in to change notification settings - Fork 606
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
Fix building error in expo project #1249
Conversation
@radex thoughts on having this merged ? |
Hey All, any reason this PR hasnt been merged? WatermelonDB is broken and pretty unusable on expo 44. This PR fixes the issue. |
@Kudo does this work for expo projects with
and
|
@thecoorum do you have some example repo? because the installation requires add extra pods to
|
@radex Waiting on this to be merged as migrating to expo Modules (specifically Expo 44) from unimodules breaks WatermelonDB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested and it is working good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved!
I was able to get Thank you 👍 |
@radex can you check this? |
Hey guys, can someone please post their patch package diff file, mine keeps failing when I generate it😭 |
|
Thanks @jwoo92 , I tried this already and keep getting a error when running npx patch, this is why I'm asking for the file someone already generated in their patch folder |
@Hannes1 Oh I missed that, here you go:
|
@jwoo92 Greatly appreciated, thanks for the help🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, I want this PR until tomorrow merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved!
@radex why this is not merged? |
Hey guys, checking in on whether this can be merged? |
@alexyoungs Read the above thread. None of us have permission to do so, so it's currently just awaiting review/approval from @radex |
Why is this PR not merged? It seems like it works. Pining @radex and @RafalNozbe for help |
@radex This PR needs to be merged, as WatermelonDB is no longer working for EXPO 44+ Can we merge it? |
Same fix but with: s.public_header_files = [
'native/ios/WatermelonDB/**/*.h',
] to build the library on 0.70.x and |
@radex Some communication is the bare minimum after months of a valid PR from the Expo team. |
@Kudo Thank you |
Hi @radex, I still had to change the content of
And copy :
In :
On 0.70.6 |
@Dallas62 Can you please elaborate? What issues did you see, what changes did you have to make, which Expo version? |
This issue doesn't happen with Expo, it's mainly not resolve import in the native side (same file of this issue). Will provide more details later |
@Dallas62 Please do provide more details. Are you using Turbo Sync by any chance? |
@radex so the issue @Dallas62 was facing is probably related to Relevant thread: #1285 |
@KrisLau Exactly this case, all details are mentioned in this comment #1285 (comment) |
Why
in expo sdk 44+ project, we opened formal swift integration. for swift to call objective-c functions, sometimes the
#import
format should be done right. learn more from expo/expo#15622 (comment)fix #1237
fix expo/expo#15986
How
watermelonDB has a call from
DatabaseBridge.swift
toJSIInstaller.h
. for swift to call objective-c functions, we should makeJSIInstaller.h
as a clang module. this pr movesJSIInstaller.h
as cocoapods public header and the generated umbrella header will includeJSIInstaller.h
as a clang submodule.Test Plan
expo sdk 44 project
ios/Podfile
react-native 0.66 project
ios/Podfile