Skip to content

'OpVisionCameraMrzScanner-Swift.h' file not found #1

@Ruslan-BG

Description

@Ruslan-BG

Hi! Thanks for the library, it's very useful.
I'm having trouble building the project on iOS—it won't build.

Xcode 16.2

package.json:

"@op-engineering/op-ocr": "^1.0.2",
"@react-native-firebase/app": "^23.8.3",
"@react-native-firebase/messaging": "^23.8.3",
"react": "19.1.1",
"react-native": "0.82.1",
"react-native-reanimated": "^4.2.1",
"react-native-vision-camera": "^4.7.3",
"react-native-worklets": "^0.7.1",
"react-native-worklets-core": "^1.6.2",

Minmum Deployment 16.6

Android work but, ios not build.

Image

PodFile

Resolve react_native_pods.rb with node to allow for hoisting

require Pod::Executable.execute_command('node', ['-p',
'require.resolve(
"react-native/scripts/react_native_pods.rb",
{paths: [process.argv[1]]},
)', dir]).strip

platform :ios, min_ios_version_supported

platform :ios, '16.6'

prepare_react_native_project!

linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
use_frameworks! :linkage => linkage.to_sym
end

target 'Sana' do
config = use_native_modules!

use_frameworks! :linkage => :static
$RNFirebaseAsStaticFramework = true

use_react_native!(
:path => config[:reactNativePath],
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)

post_install do |installer|
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false,
# :ccache_enabled => true
)
end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions