反应原生 xcode 调试和发布方案两种不同的构建 [英] React native xcode debug and release scheme two different builds

查看:47
本文介绍了反应原生 xcode 调试和发布方案两种不同的构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 react native 项目,当 XCode 中的架构设置为调试项目时,我添加了最新的代码更改.当我更改方案以发布发布版本时,没有最新的代码更改.

I have a react native project and when the schema in XCode is set to debug the project builds with the latest code changes I added. When I change the scheme to release the release build doesn't have the latest code changes.

为什么会发生这种情况?是否有一个设置我必须从调试更改为发布以获取最新更改?

Why is this this happening is there a setting that I have to change from debug to release to get the latest changes?

推荐答案

通常不会,

尝试删除 ios/build 并在发布模式下重新构建.

Try to remove ios/build and re-build in release mode.

签入产品 -> 方案 -> 编辑方案 -> 如果您处于发布模式启用和调试可执行文件未选中.

Check in Product -> Scheme -> Edit Scheme -> if you are in release mode enable and debug executable unchecked.

你能告诉我更多关于你的项目的调试和发布之间的代码区别吗?

Can you tell me more about the code difference between debug and release on your project?

问候.

这篇关于反应原生 xcode 调试和发布方案两种不同的构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆