简体   繁体   English

复制多方案的调试配置在 React 本机 iOS 中不起作用

[英]Duplicating debug configuration for multi Scheme is not working in React native-iOS

I've developed my project using react native, and now I am trying to implement multi-scheme for my dev, uat, and prod environments.我已经使用 react native 开发了我的项目,现在我正在尝试为我的 dev、uat 和 prod 环境实现多方案。

For the above, I've setup schemes and duplicated the release and debug configuration for each one of the scheme, and specified the different bundle ids, different app names, user defined variables.对于上述情况,我已经设置了方案并为每个方案复制了发布和调试配置,并指定了不同的包 ID、不同的应用程序名称、用户定义的变量。 Now my situation is if I am running the scheme locally( as for run the debug configuration is set) then I'm falling into the below error:现在我的情况是,如果我在本地运行该方案(至于运行调试配置已设置),那么我将陷入以下错误:

Thread 6: "Unhandled JS Exception: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not be found. Verify that a module by this name is registered in the na..., stack:\ngetEnforcing@4725:28\n@41349:50\nloadModuleImplementation@271:14\n@41308:40\nloadModuleImplementation@271:14\n@35877:18\nloadModuleImplementation@271:14\n@28987:16\nloadModuleImplementation@271:14\nguardedLoadModule@163:47\nglobal code@326655:4\n"线程 6:“未处理的 JS 异常:Invariant Violation:TurboModuleRegistry.getEnforcing(...): 'DevSettings' 找不到。验证该名称的模块是否已在 na... 中注册,堆栈:\ngetEnforcing@4725 :28\n@41349:50\nloadModuleImplementation@271:14\n@41308:40\nloadModuleImplementation@271:14\n@35877:18\nloadModuleImplementation@271:14\n@28987:16\nloadModuleImplementation@271:14 \nguardedLoadModule@163:47\n全局代码@326655:4\n"

Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not be found.由于未捕获的异常“RCTFatalException: Unhandled JS Exception: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' 找不到而终止应用程序。 Verify that a module by this name is registered in the native binary.', reason: 'Unhandled JS Exception: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not be found.验证此名称的模块是否已在本机二进制文件中注册。',原因:'未处理的 JS 异常:不变违规:TurboModuleRegistry.getEnforcing(...):找不到'DevSettings'。 Verify that a module by this name is registered in the na..., stack:验证该名称的模块是否已在 na...,堆栈中注册:

*** I've attached screenshot of my Development scheme setting where I've used release build config(Development) and debug build config(DevelopmentDebug) *** 我附上了我使用发布构建配置(开发)和调试构建配置(开发调试)的开发方案设置的屏幕截图

Check this image检查此图像

FYI:供参考:

If I choose release build configuration for Run, Test and Analyse and run the scheme then it is working fine, but in this case I can't use debugger for my development purpose.如果我为运行、测试和分析选择发布构建配置并运行该方案,那么它工作正常,但在这种情况下,我不能将调试器用于我的开发目的。

Also, I don't have any issues with archiving or releasing the archive to testflight using CICD, as I've selected the release configuration for Archive and Profile under the scheme setting.此外,我在使用 CICD 存档或发布存档到 testflight 时没有任何问题,因为我在方案设置下选择了存档和配置文件的发布配置。

Please help me out, as this will make the development very difficult, as I don't have access to the debugger window.请帮帮我,因为这会使开发变得非常困难,因为我无法访问调试器 window。

Looking forward to get positive help.期待得到积极的帮助。

Thanks谢谢

(: Please try to add some logs that would be very helpful (: 请尝试添加一些非常有用的日志

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM