Offline Phonegap Build

核能气质少年 提交于 2020-02-04 06:59:41

问题


By means of an Adobe Phonegap account (https://build.phonegap.com/apps) I could create mobile apps using my web application for all types of mobile platforms like IOS, Android, Windows. But, for this to happen, I have to upload my project zip to cloud.

Is it possible to create the apps (for all mobile platforms) offline, in my pc itself, without uploading my project zip to cloud? Is there any desktop application that does a similar job as build.phonegap.com?


回答1:


Yes you can build your app locally and offline.

BUT you should keep in mind that you have to use IDEs for that.

For android you can use Eclipse or Android studio on MacOs or Windows.

For ios you have to use xCode and MacOs.


Pros and cons of locally environment:

pros:

  • you have access for native code and can change plugins and etc.
  • realtime debugging from device and simulator

cons:

  • it will take time to understand what to do
  • for building app for ios you need MacOs (virtual machine is OK)

You can read about different platforms: http://docs.phonegap.com/en/4.0.0/guide_platforms_index.md.html#Platform%20Guides




回答2:


If the question is "Can I build locally a phonegap/cordova app for IOS, android or windows phone on a Windows PC", the answer is unfortunatly no.

To build a app for a platform you need to install the sdk for that platform.

What that means is that :

  • for android you can build on a mac, a linux or a PC
  • for windows phone you can build only on a windows 8 pc (or on a mac running windows 8)
  • for ios you can only build on a mac (as the ios sdk can only be installed on macs).

By the way, even if you are using phonegap build, you can't publish ios apps if you don't have a mac.




回答3:


you can definitely build app offline. I've worked on phonegap for android and I've successfully build and generated .apk file got for android.

you should have ANT environvement setup in-order to build.

for example:

"cordova build android"

try to execute this line inside the folder of your application path in the command prompt and check what are the requirements that your system need in-order to build the required app



来源:https://stackoverflow.com/questions/29558110/offline-phonegap-build

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!