-
Notifications
You must be signed in to change notification settings - Fork 106
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
iOS: null is not an object evaluating TfliteReactNative.loadmodel #1
Comments
Hi, Can you please try to manually link the library to your project? Thanks, |
Thank you, Qian. I was finally able to resolve the issue by making some additional changes to the Pod file. However, I'll manually link the library later as well. Maybe it could fix this, but I had previously checked to make sure that all the files were added correctly via automatic linking. |
Can you provide me the podfile changes you made to make it work? |
Here you go.
|
@ojiofong since you're using POD, so you didn't had done the manual linking except the Podfile part, right? I did the same, but I'm getting Actually in |
Manually linking with iOS fixed my issue |
@hokaiyipFS which react native version are you using? |
@Tayyaba3317 0.63.2 |
Sorry to rehash an old thread but I'm having this same issue. And have tried the above fixes with no luck. It does work if I build it to Android, which makes me think I have the model files in the wrong place. This is where I have them currently: /ios/AppName/models Any help appreciated. |
Same issue. I tried manual link, however, when I try to build model in XCode, I get this: The link above mentioned some possible solutions. I think this is related to the version of React Native (>0.61). Well, I fixed it by adding conditional import in
|
This comment helped me sort a similar RCTBridge issue. Then just make sure you build it from Xcode from the xcworkspace not the xcodeproj |
First of all, thanks for this awesome project. Had this working on Android but not quite on iOS. The home screen with the buttons shows up. However, clicking on a button results in error:
null is not an object evaluating TfliteReactNative.loadmodel
The only change I made was in the Pod file to get the build to succeed.
Pod file:
My npm version is 6.5.0
Need help with resolving this. Thanks.
The text was updated successfully, but these errors were encountered: