我正在尝试使用 Hyperloop 从此处将 openALPR iOS 模块集成到 Titanium 应用程序:https://github.com/yasirmturk/openalpr-swift
我通过 cocoapods 成功安装了它,但现在我不知道如何使用它。我有这个代码:
var openALPR = require("OpenALPRSwift");
var oaScanner = openALPR.OAScanner("eu");
但它会引发错误:
openALPR.OAScanner is not a function. (In 'openALPR.OAScanner(\"eu\")', 'openALPR.OAScanner' is undefined)
我的 Podfile 配置如下:
install! 'cocoapods',
:integrate_targets => false
platform :ios, '9.0'
use_frameworks!
pre_install do |installer|
Pod::Installer::Xcode::TargetValidator.send(:define_method,
:verify_no_static_framework_transitive_dependencies) {}
end
post_install do |installer|
installer.pods_project.targets.each do |target|
phase_name = 'Headers'
target.build_phases.each do |phase|
if (phase.display_name.include? phase_name)
target.build_phases.unshift(phase).uniq! unless
target.build_phases.first == phase
end
end
end
end
target 'ALPRproject' do
#pod 'OpenALPRSwift', '~> 1.0.0'
pod 'OpenALPRSwift', :git =>
'https://github.com/yasirmturk/openalpr-swift.git', :tag => 'v1.0.0'
end
请帮助如何使它工作。感谢您的任何回复 最好的问候,玛丽安