根据文档,我尝试使用 EAS CLI 和 Expo 网站为我的 Expo 应用程序创建机密:https://docs.expo.dev/build-reference/variables/
。但是,在我使用以下命令为 Android 构建 EAS 后:eas build -p android --profile <profile_name>
,并通过我的物理 Android 设备上的安装链接运行它。
似乎当我尝试通过process.env.VARIABLE_NAME
(通过警报)查看秘密时,它只是给了我undefined
.
我想知道是否有人以前遇到过这个问题并且可能找到了解决方案?先感谢您。