{"id":153,"date":"2016-03-11T20:57:58","date_gmt":"2016-03-11T12:57:58","guid":{"rendered":"http:\/\/www.yusian.com\/blog\/?p=153"},"modified":"2016-07-12T17:09:22","modified_gmt":"2016-07-12T09:09:22","slug":"macos%e4%b8%8b%e5%ae%89%e8%a3%85phonegapcordova%e5%bc%80%e5%8f%91%e7%bc%96%e8%af%91%e7%8e%af%e5%a2%83","status":"publish","type":"post","link":"https:\/\/www.yusian.com\/blog\/project\/2016\/03\/11\/205758153.html","title":{"rendered":"MacOS\u4e0b\u5b89\u88c5PhoneGap\/cordova\u5f00\u53d1\u7f16\u8bd1\u73af\u5883"},"content":{"rendered":"<p><strong>1. \u5728App Store\u5b89\u88c5xcode\uff0c\u6700\u65b0\u7248\u4f4d6.0<\/strong><br \/>\n<strong><br \/>\n2. \u5b89\u88c5node.js\u73af\u5883<\/strong><\/p>\n<p>\u5b98\u7f51\uff1a <a href=\"http:\/\/nodejs.org\/\" target=\"_blank\">http:\/\/nodejs.org\/<\/a><\/p>\n<p>\u70b9\u51fb\u3010install\u3011\uff0c\u4f1a\u4e0b\u8f7dmac\u7684\u5b89\u88c5\u5305\u3002\u6b63\u5e38\u5b89\u88c5\u5373\u53ef<\/p>\n<p><strong>3. \u4f7f\u7528\u547d\u4ee4\u884c\u5b89\u88c5 cordova<\/strong><\/p>\n<p>\u5b98\u7f51\uff1a <a href=\"http:\/\/cordova.apache.org\" target=\"_blank\">http:\/\/cordova.apache.org<\/a><\/p>\n<p>\u547d\u4ee4\u884c\u5e2e\u52a9\uff1a http:\/\/cordova.apache.org\/docs\/en\/4.0.0\/\/guide_cli_index.md.html#The%20Command-Line%20Interface<\/p>\n<p>\u4e3b\u8981\u547d\u4ee4\uff1a sudo npm install -g cordova<!--more--><\/p>\n<p><strong>4. \u521b\u5efa\u65b0\u9879\u76ee<\/strong><\/p>\n<p>\u547d\u4ee4\u884c\uff1acordova create hello com.mydomain.hello HelloWorld<\/p>\n<p>\u7b2c\u4e00\u4e2a\u53c2\u6570\u662f\u6587\u4ef6\u76ee\u5f55\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662fapp id, \u7b2c\u4e09\u4e2a\u53c2\u6570\u662f\u663e\u793a\u7684title<\/p>\n<p><strong>5. \u4e3a\u9879\u76ee\u5b89\u88c5\u5e73\u53f0\u6a21\u5757\uff0c\u8fd9\u91cc\u53ea\u589e\u52a0ios<\/strong><\/p>\n<p>cd hello<\/p>\n<p>cordova platform add ios<\/p>\n<p><strong>6. \u5b89\u88c5\u9700\u8981\u7684\u6269\u5c55\u63d2\u4ef6\uff0c\u4f8b\u5982\uff0c\u5b89\u88c5\u5e94\u7528\u5185\u652f\u4ed8\u6a21\u5757<\/strong><\/p>\n<p>\u6587\u6863\uff1a <a href=\"https:\/\/github.com\/j3k0\/cordova-plugin-purchase\/wiki\/Setup\" target=\"_blank\">https:\/\/github.com\/j3k0\/cordova-plugin-purchase\/wiki\/Setup<\/a><\/p>\n<p>\u547d\u4ee4\uff1acordova plugin add https:\/\/github.com\/j3k0\/cordova-plugin-purchase.git<\/p>\n<p><strong>7. \u53cc\u51fbHelloWorld.xcodeproj\uff0c\u6253\u5f00xcode\u7684\u5f00\u53d1\u73af\u5883<\/strong><\/p>\n<p>xcodeproj\u5de5\u7a0b\u9879\u76ee\u7684\u6587\u4ef6\u4f4d\u7f6e\uff1ahello\/platform\/ios\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u5728App Store\u5b89\u88c5xcode\uff0c\u6700\u65b0\u7248\u4f4d6.0 2. \u5b89\u88c5node.js\u73af\u5883 \u5b98\u7f51\uff1a http:\/\/nodejs.org\/ \u70b9\u51fb\u3010install\u3011\uff0c\u4f1a\u4e0b\u8f7dmac\u7684\u5b89\u88c5\u5305\u3002\u6b63\u5e38\u5b89\u88c5\u5373\u53ef 3. \u4f7f\u7528\u547d\u4ee4\u884c\u5b89\u88c5 cordova \u5b98\u7f51\uff1a http:\/\/cordova.apache.org \u547d\u4ee4\u884c\u5e2e\u52a9\uff1a http:\/\/cordova.apache.org\/docs\/en\/4.0.0\/\/guide_cli_index.md.html#The%20Command-Line%20Interface \u4e3b\u8981\u547d\u4ee4\uff1a sudo npm install -g cordova<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-153","post","type-post","status-publish","format-standard","hentry","category-project"],"_links":{"self":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/comments?post=153"}],"version-history":[{"count":0,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/153\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/media?parent=153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/categories?post=153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/tags?post=153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}