[英]React-Native custom npm start script in xcode
Hi all I'm trying to have multiple custom start scripts in my package.json for my React-Native app and I can't figure out how to actually get the custom start scripts to kick off during the build in xcode.大家好,我正在尝试在我的 React-Native 应用程序的 package.json 中有多个自定义启动脚本,但我不知道如何在 xcode 构建期间实际启动自定义启动脚本。 Obviously I can run them manually in the terminal every time but how do I get xcode to bundle and run
显然,我每次都可以在终端中手动运行它们,但是如何让 xcode 捆绑并运行
npm run start-custom vs npm run start? npm run start-custom vs npm run start?
You can add a shell script under Build Phases
in your project.您可以在项目的
Build Phases
下添加 shell 脚本。
Ref: https://medium.com/@ankitkumargupta/xcode-add-build-phase-shell-script-without-cluttering-your-project-file-2de8aa3fe0ce参考: https : //medium.com/@ankitkumargupta/xcode-add-build-phase-shell-script-without-cluttering-your-project-file-2de8aa3fe0ce
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.