I am developing an app for ios with react-native CLI, and I am facing a problem loading the model.
I've tried every solution possible on the internet, but it still doesn't work, unfortunately.
Linking is working properly, I've tried manual linking and automatic.
I have my model in src/models.
And in Xcode, it's under MyProject > models.
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '11.0'
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
target 'ai_app' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => false
)
pod 'TensorFlowLite', '1.12.0'
pod 'TfliteReactNative', :path => '../node_modules/tflite-react-native/ios'
# target 'ai_appTests' do
# inherit! :complete
# # Pods for testing
# end
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
use_flipper!()
post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end
end
I am developing an app for ios with react-native CLI, and I am facing a problem loading the model. I've tried every solution possible on the internet, but it still doesn't work, unfortunately. Linking is working properly, I've tried manual linking and automatic. I have my model in src/models. And in Xcode, it's under MyProject > models.
This is my code:
Podfile:
Metro.config:
Building is successful on Xcode.
Thanks in advance.