React-native --variant选项 [英] React-native --variant option

查看:111
本文介绍了React-native --variant选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

除了 release 以外,-variant 选项的可能值是什么?它在哪里记录?我在本机文档中找不到.

What are the possible values for --variant option except for release? Where is it documented? I couldn't find in react-native docs.

我应该使用 debug devDebug 值来指定此选项以进行调试吗?

Should I specify this option with debug or devDebug value for debug build?

谢谢

推荐答案

只有两个选项. release debug

默认的 variant 是debug,因此您无需为其设置-variant 标志!

The default variant is debug, so you don't need to set the --variant flag for it!

重要: variant 仅适用于Android( react-native run-android )

Important: variant is only available for Android (react-native run-android)

您可以在iOS上使用 react-native run-ios --configuration Release ,或仅将XCode Scheme更改为 Release

You could use react-native run-ios --configuration Release for iOS, or just change the XCode Scheme to Release

这篇关于React-native --variant选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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