gpt4 book ai didi

cordova - "ionic build"和 "ionic prepare"之间有什么区别?

转载 作者:行者123 更新时间:2023-12-02 11:25:25 28 4
gpt4 key购买 nike

刚刚学习使用 Ionic 构建混合应用程序,并没有真正找到有关 ionicprepare 命令的大量信息。有人知道它是什么或者它和 ionic build 之间有什么区别吗?

最佳答案

来自官方文档:

If you want to get advanced, you can also open up the project file for a specific platform by opening the required XCode or Android Eclipse project in platforms/PLATFORM inside the root of your project. Then, you can build and test from inside the platform-specific IDE. Note: if you go this route, I recommend still working inside of the root www folder, and when you've made changes to this folder, run the command: $ cordova prepare ios which will update the iOS specific project with the code from the www folder. Note: this will overwrite any changes you've made to the platforms/ios/www and other platform-specific folders.

因此,总结一下这一部分 - 如果您使用 XCode 来测试和运行代码,则在更改代码的某些部分后,您只需运行 ionicprepare 即可更新 iOS 项目然后您将继续在 XCode 中使用它。

ionic build 命令实际上准备了最终的文件(例如在 Android 中是 .apk 文件),然后可以将其复制到您的设备并通过在设备上手动运行它进行测试(或使用ionic emulate 命令在模拟器上进行测试)。

关于cordova - "ionic build"和 "ionic prepare"之间有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31235373/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com