{"id":877,"date":"2013-09-08T01:34:15","date_gmt":"2013-09-08T01:34:15","guid":{"rendered":"http:\/\/tw.newtonstudio.com\/?p=877"},"modified":"2013-09-08T13:13:12","modified_gmt":"2013-09-08T13:13:12","slug":"%e4%bd%bf%e7%94%a8-phonegap-%e5%bb%ba%e7%ab%8bios%ef%bc%8fandroid%e5%b0%88%e6%a1%88","status":"publish","type":"post","link":"https:\/\/tw.newtonstudio.com\/?p=877","title":{"rendered":"\u4f7f\u7528 PhoneGap \u5efa\u7acbiOS\uff0fAndroid\u5c08\u6848"},"content":{"rendered":"<p><b>PhoneGap Tutorial<\/b><\/p>\n<h2>Windows \u65b9\u6cd5<\/h2>\n<p><b>Android<\/b><br \/>\n1. \u627e\u5230\/PhoneGap\/lib\/android\u2028<br \/>\n2. \u958b\u555f\u300cEclipse\u300d\u78ba\u5b9a\u5176\u4e2d\u5df2\u5b89\u88ddAndroid SDK,\u4e26\u627e\u51fa\u5b89\u88dd\u8def\u5f91<br \/>\n3. \u5728PATH\u74b0\u5883\u8b8a\u6578\u4e2d\u52a0\u5165(\u4ee5\u4e0b\u7684\u8b8a\u6578\u8acb\u6309\u7167\u4f7f\u7528\u8005\u7684\u5be6\u969b\u74b0\u5883\u505a\u8abf\u6574, \u52ff\u7167\u6284):<br \/>\n&#8230;;\/Android SDK\/platform-tools;\/Android SDK\/tools;C:\\ANT\\bin;<br \/>\n4. \u57f7\u884c\u300ccmd\u300d,\u4e26\u5207\u63db\u8def\u5f91\u81f3\/PhoneGap\/lib\/android\/bin<br \/>\n5. \u57f7\u884c\u5efa\u7acb\u5c08\u6848\u7684\u6307\u4ee4:<br \/>\ncreate.bat ~\/Desktop\/app\/HelloWorld_android com.test.HelloWorld HelloWorld\u2028<br \/>\n6. \u5f9e\u300cEclipse\u300d\u5efa\u7acb\u65b0\u5c08\u6848\u5c0d\u61c9\u5230\u525b\u5230\u525b\u624d\u5efa\u7acb\u7684\u5c08\u6848\u4e26\u6e2c\u8a66\u57f7\u884c<\/p>\n<p><b>iOS\u5c08\u6848<\/b><br \/>\n\u5728Windows\u4e0a\u5efa\u7acbiOS\u5c08\u6848\u5f8c\u9084\u662f\u5f97\u53bbMAC\u4f5c\u6253\u5305\u7684\u52d5\u4f5c\uff0c\u6240\u4ee5\u4e7e\u8106\u76f4\u63a5\u5728MAC OS\u5efa\u7acb\u5427\u3002<\/p>\n<h2>MAC OS \u65b9\u6cd5<\/h2>\n<p><b>How to Create Android Project?<\/b><br \/>\n1. \u7d42\u7aef\u6a5f\u4e0a<br \/>\nexport PATH=${PATH}:\/Users\/username\/android-sdks\/platform-tools:\/Users\/username\/android-sdks\/tools<\/p>\n<p>2. cd ~\/Desktop\/app\/phonegap-2.9.0\/lib\/android\/bin<\/p>\n<p>3. .\/create ~\/Desktop\/app\/AppName_android com.test.appname Appname<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;<\/p>\n<p><b>How to Create iOS Project?<\/b><\/p>\n<p>1. \u7d42\u7aef\u6a5f\u4e0a<br \/>\ncd ~\/Desktop\/app\/phonegap-2.9.0<\/p>\n<p>2. .\/create ~\/Desktop\/app\/AppName_ios com.test.appname Appname<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PhoneGap Tutorial Windows \u65b9\u6cd5 Android 1. \u627e\u5230\/PhoneGap\/lib [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[200,1],"tags":[238],"class_list":["post-877","post","type-post","status-publish","format-standard","hentry","category-phonegap","category-uncategorized","tag-phonegap"],"_links":{"self":[{"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/posts\/877","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=877"}],"version-history":[{"count":6,"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/posts\/877\/revisions"}],"predecessor-version":[{"id":883,"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/posts\/877\/revisions\/883"}],"wp:attachment":[{"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=877"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=877"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}