Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/94.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios tid:com.facebook.react.JavaScript在HostObject::set中出现异常:无法在NativeModules上放置:不支持操作_Ios_Xcode_React Native_React Native Ios - Fatal编程技术网

Ios tid:com.facebook.react.JavaScript在HostObject::set中出现异常:无法在NativeModules上放置:不支持操作

Ios tid:com.facebook.react.JavaScript在HostObject::set中出现异常:无法在NativeModules上放置:不支持操作,ios,xcode,react-native,react-native-ios,Ios,Xcode,React Native,React Native Ios,我似乎有点进退两难。几个月来,我一直在启用远程调试器的情况下运行我的应用程序。现在,当我在不进行远程调试的情况下运行它时,会出现以下错误: 2020-09-09 19:37:35.890 [info][tid:main][RCTCxxBridge.mm:1037] Invalidating <RCTCxxBridge: 0x7ff17c4477a0> (parent: <RCTBridge: 0x600001f41b20>, executor: (null)) 2020-

我似乎有点进退两难。几个月来,我一直在启用远程调试器的情况下运行我的应用程序。现在,当我在不进行远程调试的情况下运行它时,会出现以下错误:

2020-09-09 19:37:35.890 [info][tid:main][RCTCxxBridge.mm:1037] Invalidating <RCTCxxBridge: 0x7ff17c4477a0> (parent: <RCTBridge: 0x600001f41b20>, executor: (null))
2020-09-09 19:37:35.891 [info][tid:main][RCTCxxBridge.mm:213] Initializing <RCTCxxBridge: 0x7ff17c793670> (parent: <RCTBridge: 0x600001f41b20>, executor: (null))
2020-09-09 19:37:36.644 [error][tid:com.facebook.react.JavaScript] Exception in HostObject::set: Unable to put on NativeModules: Operation unsupported
2020-09-09 19:37:36.645 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: Exception in HostObject::set: Unable to put on NativeModules: Operation unsupported
2020-09-09 19:37:36.664 [info][tid:main][RCTRootView.m:293] Running application vepo ({
    initialProps =     {
    };
    rootTag = 161;
})
2020-09-09 19:37:36.665 [info][tid:com.facebook.react.JavaScript] Running application "vepo" with appParams: {"rootTag":161,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
2020-09-09 19:37:36.665 [error][tid:com.facebook.react.JavaScript] Application vepo has not been registered.

Hint: This error often happens when you're running the packager (local dev server) from a wrong folder. For example you have multiple apps and the packager is still running for the app you were working on before.
If this is the case, simply kill the old packager instance (e.g. close the packager terminal window) and start the packager in the correct app folder (e.g. cd into app folder and run 'npm start').

This error can also happen due to a require() error during initialization or failure to call AppRegistry.registerComponent.


2020-09-09 19:37:36.668 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: Application vepo has not been registered.

Hint: This error often happens when you're running the packager (local dev server) from a wrong folder. For example you have multiple apps and the packager is still running for the app you were working on before.
If this is the case, simply kill the old packager instance (e.g. close the packager terminal window) and start the packager in the correct app folder (e.g. cd into app folder and run 'npm start').

This error can also happen due to a require() error during initialization or failure to call AppRegistry.registerComponent.


2020-09-09 19:37:36.669 [info][tid:com.facebook.react.JavaScript] 'BugReporting extraData:', { 'AppRegistry.runApplication1': 'Running application "vepo" with appParams: {"rootTag":161,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF' }
2020-09-09 19:37:36.670 [info][tid:com.facebook.react.JavaScript] 'BugReporting extraData:', { 'AppRegistry.runApplication1': 'Running application "vepo" with appParams: {"rootTag":161,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF' }
2020-09-09 19:37:36.670 [info][tid:com.facebook.react.JavaScript] 'BugReporting extraData:', { 'AppRegistry.runApplication1': 'Running application "vepo" with appParams: {"rootTag":161,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF' }
2020-09-09 19:37:39.692 [info][tid:com.facebook.react.JavaScript] 'BugReporting extraData:', { 'AppRegistry.runApplication1': 'Running application "vepo" with appParams: {"rootTag":161,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF' }
2020-09-09 19:37:41.589 [info][tid:com.facebook.react.JavaScript] 'BugReporting extraData:', { 'AppRegistry.runApplication1': 'Running application "vepo" with appParams: {"rootTag":161,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF' }
2020-09-09 19:37:35.890[info][tid:main][RCTCxxBridge.mm:1037]无效(父项:,执行者:(空))
2020-09-09 19:37:35.891[info][tid:main][RCTCxxBridge.mm:213]正在初始化(父级:,执行者:(null))
2020-09-09 19:37:36.644[错误][tid:com.facebook.react.JavaScript]主机对象::集合中出现异常:无法在NativeModule上安装:不支持操作
2020-09-09 19:37:36.645[致命][tid:com.facebook.react.ExceptionsManagerQueue]未经处理的JS异常:HostObject::set中的异常:无法在NativeModule上加载:操作不受支持
2020-09-09 19:37:36.664[信息][tid:main][RCTRootView.m:293]正在运行应用程序vepo({
缩写词={
};
rootTag=161;
})
2020-09-09 19:37:36.665[info][tid:com.facebook.react.JavaScript]运行应用程序“vepo”,并使用appParams:{“rootTag”:161,“initialProps”:{}__DEV_u===true,打开开发级别警告,关闭性能优化
2020-09-09 19:37:36.665[错误][tid:com.facebook.react.JavaScript]应用程序vepo尚未注册。
提示:当您从错误的文件夹运行packager(本地开发服务器)时,经常会发生此错误。例如,您有多个应用程序,而packager仍在为您以前使用的应用程序运行。
如果是这种情况,只需杀死旧的packager实例(例如关闭packager terminal窗口)并在正确的应用程序文件夹中启动packager(例如将cd放入应用程序文件夹并运行“npm start”)。
由于初始化过程中的require()错误或调用AppRegistry.registerComponent失败,也可能发生此错误。
2020-09-09 19:37:36.668[致命][tid:com.facebook.react.exceptions managerqueue]未处理的JS异常:应用程序vepo尚未注册。
提示:当您从错误的文件夹运行packager(本地开发服务器)时,经常会发生此错误。例如,您有多个应用程序,而packager仍在为您以前使用的应用程序运行。
如果是这种情况,只需杀死旧的packager实例(例如关闭packager terminal窗口)并在正确的应用程序文件夹中启动packager(例如将cd放入应用程序文件夹并运行“npm start”)。
由于初始化过程中的require()错误或调用AppRegistry.registerComponent失败,也可能发生此错误。
2020-09-09 19:37:36.669[info][tid:com.facebook.react.JavaScript]“BugReporting extraData:”,{“AppRegistry.runApplication1:”运行应用程序“vepo”,并使用appParams:{“rootTag”:161,“initialProps:{}}。{
2020-09-09 19:37:36.670[info][tid:com.facebook.react.JavaScript]“BugReporting extraData:”,{“AppRegistry.runApplication1:”使用appParams:{“rootTag”:161,“initialProps:{}}运行应用程序“vepo”。u DEV_uu===真,开发级别警告打开,性能优化关闭}
2020-09-09 19:37:36.670[info][tid:com.facebook.react.JavaScript]“BugReporting extraData:”,{“AppRegistry.runApplication1:”使用appParams:{“rootTag”:161,“initialProps:{}}运行应用程序“vepo”。u DEV_uu===真,开发级别警告打开,性能优化关闭}
2020-09-09 19:37:39.692[info][tid:com.facebook.react.JavaScript]“BugReporting extraData:”,{“AppRegistry.runApplication1:”使用appParams:{“rootTag”:161,“initialProps:{}}运行应用程序“vepo”。uu DEV_uu===真,开发级别警告打开,性能优化关闭}
2020-09-09 19:37:41.589[info][tid:com.facebook.react.JavaScript]“BugReporting extraData:”,{“AppRegistry.runApplication1:”使用appParams:{“rootTag”:161,“initialProps:{}}运行应用程序“vepo”。uu DEV_uuuU===真,开发级别警告打开,性能优化关闭}
显然,我现在已经从中学会了定期测试而无需远程调试。通过在线查看,大多数出现此错误的人都必须这样做。然而,我不是为Android开发,我只是为iOS开发。我假设这是一个等价的问题,我必须在某个地方为iOS添加一些依赖项。但我不知道是什么方案导致了这个问题。如何调试此错误?我是否可以从Xcode中获得更详细的错误消息?或者找出它出错时试图读取的依赖项?我没有使用cocoapod作为我的依赖项