phonegap在xcode编译和封装遇到的有关问题集

phonegap在xcode编译和封装遇到的问题集

第一次用phonegap封装ios app

1. 用sencha 代码替代了phonegap生成的www文件夹文件,编译无法通过

解决: 不能用sencha完全替代phonegap的代码,需要在index.html中加入

 <script type="text/javascript" src="cordova-2.5.0.js"></script>
        <script type="text/javascript" src="js/index.js"></script>
        <script type="text/javascript">
            app.initialize();
            </script> 


2. 在xcode中需要导入证书,然后achieve build

具体参看http://blog.csdn.net/zltianhen/article/details/6946848


3. 发布成为ipa,发现没有上文说到的share按钮

解决:原来是Distribute...-->save for enterprise or ad-hoc deployment
就可以达到原来share按钮的效果...