ios - [NativeScript]:找到 Darwin.strlen 的元数据,但运行时 nativescript 符号不可用
问题描述
我正在处理本机脚本并创建 iOS 应用程序并将其发布到应用程序商店。该应用程序在 iOS 14.6 之前运行顺利,但从 iOS 14.7 开始,我得到了
Metadata for "Darwin.strlen" found but symbol not available at runtime.
toCharPtr(file:///app/vendor.js:182294:30)
at Database(file:///app/vendor.js:182382:32)
at file:///app/bundle.js:830:27
at SqLiteService(file:///app/bundle.js:826:20)
at _createClass(file:///app/vendor.js:20966:28)
at _createProviderInstance(file:///app/vendorjs:20938:38)
at resolveNgModuleDep(file:///app/vendor.js:20902:44)
at _createClass(file:///app/vendor.js:20974:50)
at _createProviderInstance(file:///app/vendorjs:20938:38)
at resolveNgModuleDep(file:///app/vendor.js:20902:44)
at createClass(file:///app/vendor.js:21843:42)
at createDirectivelnstance(file:///app/vendor.js:21714:31)
at createViewNodes(file:///app/vendor.js:30074:59)
at createRootView(file:///app/vendor.js:29988:20)
at file:///app/vendor.js:21193:43
at file:///app/vendor.js:27761:46
at forEach([native code])
t file:///app/vendor.js:27483:51
at file:///app/vendor.js:27451:45
at onInvoke(file:///app/vendor.js:26943:39)
at file:///app/vendor.js:147266:49
at file:///app/vendor.js:148011:37
at onInvokeTask(file:///app/vendor.js:26934:43)
at file:///app/vendor.js:147316:57
at drainMicroTaskQueue(file:///app/vendor.js:147723:42)
at file:///app/vendor.js:134241:44
at file://)app/vendor.js:80750:31
at [native code] at file:///app/vendor.js:60836:36
at file:///app/vendor.js:60828:30
at [native code]
at file:///app)vendor.js:60701:32
at UlApplicationMain([native code])
at run(file:///app/vendor.js:60977:26)
at file:///app/vendor.js:134272:26
at file:///app/vendor.js:134173:38
at file:///app/vendor.js:134153:26
at file:///app/bundle.js:12323:66
at webpack_require_(file:///app/runtime.js:75:34)
at checkDeferredModules(file:///app/runtime.js:44:42)
at webpackJsonpCallback(file:///app/runtime.js:31:39)
at anonymous(file:///app)bundle.js:2:61)
at evaluate([native code])
at moduleEvaluation([native code])
at [native code]
at asyncFunctionResume([native code])
at [native code]
at promiseReactionJob([native code])
这个错误和应用程序在运行时崩溃,我不确定更新的操作系统有什么问题,有人可以帮我解决这个问题吗?
解决方案
它出现在 iOS 14.7 Apple 中删除/隐藏了一些功能。此问题: https ://github.com/NathanaelA/nativescript-sqlite/issues/171正在跟踪实际问题,正如我在该问题中所述,我有一个修复程序等待最终测试,然后再发布。
NS-Sqlite 2.8.2 或更高版本应该可以解决这个问题。
(免责声明:我是该插件的作者)