Nozbe / WatermelonDB

🍉 Reactive & asynchronous database for powerful React and React Native apps ⚡️
https://watermelondb.dev
MIT License
10.53k stars 590 forks source link

Error when compiling project ios #1267

Open WilliamPeralta opened 2 years ago

WilliamPeralta commented 2 years ago

image

image

I get this error when I compile the project, can anyone help me? today i lost all day :(

React native 0.64 Watermelon 0.24 Xcode 13.2.1

KrisLau commented 2 years ago

Has this error always been there since you installed the package? I haven't seen that error before

WilliamPeralta commented 2 years ago

@KrisLau On android everything works fine, on ios it doesn't work, I also tried on a clean install of react native and I have the same problem. I gave up, I don't have much experience with Ios, what a frustration. i spent hours updating xcode, osx, changing build settings, installing to clean project, but nothing, don't compile, always have these swift syntax errors.

Has this error always been there since you installed the package? I haven't seen that error before

KrisLau commented 2 years ago

Hmmm that's really weird I don't think I've run into it or seen any other issues on here like this from what I remember. I mainly develop my app on iOS as well. I'm assuming you've tried removing the package then reinstalling? Or maybe clearing the build folder before doing a pod install?

WilliamPeralta commented 2 years ago

I tried all the ways, I also tried remotely on a friend's macbook pro with M1 chip, thinking that the error was something to do with the new architecture, but nothing. As you can see I have 2 other errors that say I am using a method as a property. The error does it even if I delete the pods and redo from scratch, and launching from command line I have similar output in the console so it's not just xcode hightlight.

hariks789 commented 2 years ago

@WilliamPeralta Did you solve this? I am also facing this issue when integrating watermelon into an existing DB. But it works fine on a fresh install. My hunch is this is due to some conflicts with some other library I am using. Can you please share your package.json dependencies

Update: I was able to reproduce the issue when I added @darron1217/react-native-background-geolocation

WilliamPeralta commented 2 years ago

@WilliamPeralta Did you solve this? I am also facing this issue when integrating watermelon into an existing DB. But it works fine on a fresh install. My hunch is this is due to some conflicts with some other library I am using. Can you please share your package.json dependencies

Update: I was able to reproduce the issue when I added @darron1217/react-native-background-geolocation

Hi, how did you solve it ?, I have removed watermelon and use the sqlite library.

KrisLau commented 2 years ago

@WilliamPeralta Did you solve this? I am also facing this issue when integrating watermelon into an existing DB. But it works fine on a fresh install. My hunch is this is due to some conflicts with some other library I am using. Can you please share your package.json dependencies Update: I was able to reproduce the issue when I added @darron1217/react-native-background-geolocation

Hi, how did you solve it ?, I have removed watermelon and use the sqlite library.

It's in his update, it was a conflict with another library