{"id":206646,"date":"2024-05-10T13:27:46","date_gmt":"2024-05-10T05:27:46","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/206646.html"},"modified":"2024-05-10T13:27:51","modified_gmt":"2024-05-10T05:27:51","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8mac%e4%b8%8b%e7%94%a8apicloud%e5%bc%80%e5%8f%91app","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/206646.html","title":{"rendered":"\u5982\u4f55\u5728mac\u4e0b\u7528apicloud\u5f00\u53d1APP"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27084343\/25003f56-ee22-46b6-8c93-13549c4a6be5.webp\" alt=\"\u5982\u4f55\u5728mac\u4e0b\u7528apicloud\u5f00\u53d1APP\" \/><\/p>\n<p><p>\u5728Mac\u4e0b\u4f7f\u7528APICloud\u5f00\u53d1APP\u662f\u4e00\u4e2a\u667a\u80fd\u3001\u9ad8\u6548\u7684\u5f00\u53d1\u8fc7\u7a0b\uff0c\u4e3b\u8981\u6d89\u53ca<strong>\u5b89\u88c5\u914d\u7f6e\u5f00\u53d1\u73af\u5883\u3001\u4f7f\u7528APICloud Studio 2\u3001API\u8c03\u7528\u3001\u8c03\u8bd5\u548c\u53d1\u5e03<\/strong>\u7b49\u5173\u952e\u6b65\u9aa4\u3002\u5176\u4e2d\uff0c<strong>\u5b89\u88c5\u914d\u7f6e\u5f00\u53d1\u73af\u5883<\/strong>\u662f\u57fa\u7840\u4e5f\u662f\u9996\u8981\u6b65\u9aa4\uff0c\u5b83\u76f4\u63a5\u5f71\u54cd\u5230\u540e\u7eed\u5f00\u53d1\u5de5\u4f5c\u7684\u987a\u5229\u8fdb\u884c\u3002<\/p>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u66f4\u8be6\u7ec6\u5730\u63a2\u8ba8\u5982\u4f55\u5728Mac\u4e0b\u6709\u6548\u5730\u4f7f\u7528APICloud\u6765\u5f00\u53d1APP\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b89\u88c5\u914d\u7f6e\u5f00\u53d1\u73af\u5883<\/h3>\n<\/p>\n<p><p>\u5728Mac\u4e0b\u914d\u7f6eAPICloud\u5f00\u53d1\u73af\u5883\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5<strong>Node.js<\/strong>\u3002Node.js\u662f\u6267\u884cAPICloud\u547d\u4ee4\u884c\u5de5\u5177\u7684\u57fa\u7840\u3002\u901a\u8fc7\u8bbf\u95eeNode.js\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/nodejs.org\/%EF%BC%89%E4%B8%8B%E8%BD%BD%E9%80%82%E7%94%A8%E4%BA%8EMac%E7%9A%84%E5%AE%89%E8%A3%85%E5%8C%85%EF%BC%8C%E5%B9%B6%E6%8C%89%E7%85%A7%E6%8F%90%E7%A4%BA%E5%AE%8C%E6%88%90%E5%AE%89%E8%A3%85%E3%80%82\">https:\/\/nodejs.org\/\uff09\u4e0b\u8f7d\u9002\u7528\u4e8eMac\u7684\u5b89\u88c5\u5305\uff0c\u5e76\u6309\u7167\u63d0\u793a\u5b8c\u6210\u5b89\u88c5\u3002<\/a><\/p>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u9700\u8981\u5b89\u88c5APICloud\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u8fd9\u53ef\u4ee5\u901a\u8fc7\u6253\u5f00\u7ec8\u7aef\uff0c\u5e76\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u6765\u5b8c\u6210\uff1a<\/p>\n<\/p>\n<p><pre><code>npm install -g apicloud-cli<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6b64\u547d\u4ee4\u4f1a\u5168\u5c40\u5b89\u88c5APICloud\u7684CLI\u5de5\u5177\uff0cCLI\u5de5\u5177\u662f\u5f00\u53d1\u3001\u8c03\u8bd5APICloud\u5e94\u7528\u4e0d\u53ef\u6216\u7f3a\u7684\u90e8\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u5b8c\u6210\u4e0a\u8ff0\u914d\u7f6e\u540e\uff0c\u5f00\u53d1\u73af\u5883\u57fa\u672c\u5c31\u7eea\u3002\u63a5\u4e0b\u6765\uff0c\u9700\u8981\u719f\u6089APICloud\u63d0\u4f9b\u7684\u5404\u79cd\u5de5\u5177\u548c\u670d\u52a1\uff0c\u4e3a\u5f00\u53d1\u5de5\u4f5c\u6253\u4e0b\u575a\u5b9e\u57fa\u7840\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528APICloud Studio 2<\/h3>\n<\/p>\n<p><p>APICloud Studio 2\u662fAPICloud\u5b98\u65b9\u63a8\u51fa\u7684\u4e00\u6b3e\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\uff0c\u5b83\u57fa\u4e8eEclipse\u5f00\u53d1\uff0c\u4e3aAPICloud\u5e94\u7528\u5f00\u53d1\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\u652f\u6301\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u4eceAPICloud\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7dAPICloud Studio 2\u7684Mac\u7248\u672c\uff0c\u5e76\u6309\u7167\u5b89\u88c5\u5411\u5bfc\u8fdb\u884c\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6bd5\u540e\uff0c\u6253\u5f00Studio\uff0c\u914d\u7f6e\u597d\u81ea\u5df1\u7684\u5de5\u4f5c\u7a7a\u95f4\u3002<\/p>\n<\/p>\n<p><p>APICloud Studio 2\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u65b9\u4fbf\u5feb\u6377\u7684\u529f\u80fd\uff0c\u5982<a href=\"https:\/\/docs.pingcode.com\/blog\/project-management\/23316.html\" target=\"_blank\">\u9879\u76ee\u7ba1\u7406<\/a>\u3001\u4ee3\u7801\u7f16\u8f91\u3001\u8c03\u8bd5\u7b49\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a\u65b0\u7684APICloud\u9879\u76ee\u6765\u5f00\u59cb\u4f60\u7684\u5f00\u53d1\u4e4b\u65c5\u3002Studio\u5141\u8bb8\u4f60\u901a\u8fc7\u53ef\u89c6\u5316\u754c\u9762\u7ba1\u7406\u4f60\u7684API\u6587\u4ef6\uff0c\u5e76\u652f\u6301\u4e00\u952e\u4e91\u7f16\u8bd1\u6253\u5305\uff0c\u6781\u5927\u5730\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001API\u8c03\u7528<\/h3>\n<\/p>\n<p><p>\u5728APICloud\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0cAPI\u7684\u8c03\u7528\u662f\u6784\u5efa\u5e94\u7528\u529f\u80fd\u7684\u5173\u952e\u3002APICloud\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684API\u63a5\u53e3\uff0c\u6db5\u76d6\u4e86\u4ece\u6587\u4ef6\u64cd\u4f5c\u3001\u8bbe\u5907\u8bbf\u95ee\u5230\u7f51\u7edc\u8bf7\u6c42\u7b49\u591a\u4e2a\u9886\u57df\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u60f3\u5b9e\u73b0\u4e00\u4e2a\u83b7\u53d6\u7528\u6237\u4f4d\u7f6e\u4fe1\u606f\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u4f7f\u7528APICloud\u7684\u5b9a\u4f4dAPI\u3002\u5728JavaScript\u6587\u4ef6\u4e2d\u8c03\u7528<code>api.getLocation()<\/code>\u51fd\u6570\uff0c\u5c31\u80fd\u591f\u83b7\u53d6\u7528\u6237\u7684\u5f53\u524d\u4f4d\u7f6e\u4fe1\u606f\uff0c\u5e76\u8fdb\u884c\u76f8\u5e94\u5904\u7406\u3002<\/p>\n<\/p>\n<p><p>\u6bcf\u6b21\u8c03\u7528API\u65f6\uff0c\u90fd\u9700\u8981\u6ce8\u610fAPI\u8c03\u7528\u7684\u53c2\u6570\u53ca\u5176\u8fd4\u56de\u503c\uff0c\u6b63\u786e\u5904\u7406\u56de\u8c03\u51fd\u6570\u4e2d\u7684\u7ed3\u679c\uff0c\u8fd9\u5bf9\u4e8e\u5f00\u53d1\u51fa\u7a33\u5b9a\u3001\u9ad8\u6548\u7684\u5e94\u7528\u81f3\u5173\u91cd\u8981\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u8c03\u8bd5\u548c\u53d1\u5e03<\/h3>\n<\/p>\n<p><p>APICloud\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u4fbf\u6377\u7684\u8c03\u8bd5\u65b9\u6848\u3002\u901a\u8fc7APICloud Studio 2\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u5728\u6a21\u62df\u5668\u6216\u771f\u5b9e\u8bbe\u5907\u4e0a\u8fd0\u884c\u5e76\u8c03\u8bd5\u4f60\u7684\u5e94\u7528\u3002\u5728\u8fdb\u884c\u8bbe\u5907\u8c03\u8bd5\u65f6\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528APICloud\u7684Wi-Fi\u8c03\u8bd5\u529f\u80fd\uff0c\u5b83\u5141\u8bb8\u4f60\u901a\u8fc7\u5c40\u57df\u7f51\u65e0\u9700USB\u8fde\u63a5\u5373\u53ef\u5b9e\u73b0\u4ee3\u7801\u7684\u5b9e\u65f6\u9884\u89c8\u548c\u8c03\u8bd5\u3002<\/p>\n<\/p>\n<p><p>\u53d1\u5e03\u5e94\u7528\u524d\uff0c\u9700\u8981\u5bf9\u5e94\u7528\u8fdb\u884c\u5145\u5206\u6d4b\u8bd5\uff0c\u786e\u4fdd\u65e0\u91cd\u5927\u9519\u8bef\u3002\u901a\u8fc7APICloud\u7684\u4e91\u7f16\u8bd1\u670d\u52a1\uff0c\u53ea\u9700\u8981\u51e0\u5206\u949f\uff0c\u5c31\u53ef\u4ee5\u5c06\u4f60\u7684\u5e94\u7528\u6253\u5305\u6210APK\u6216IPA\u6587\u4ef6\uff0c\u968f\u540e\u4fbf\u53ef\u5c06\u5176\u63d0\u4ea4\u5230\u5404\u5927\u5e94\u7528\u5546\u5e97\u8fdb\u884c\u53d1\u5e03\u3002<\/p>\n<\/p>\n<p><p>\u7efc\u4e0a\u6240\u8ff0\uff0c<strong>\u5728Mac\u4e0b\u4f7f\u7528APICloud\u5f00\u53d1APP\u5305\u542b\u4e86\u5b89\u88c5\u914d\u7f6e\u5f00\u53d1\u73af\u5883\u3001\u719f\u6089\u5e76\u5229\u7528APICloud Studio 2\u3001\u5408\u7406\u8c03\u7528API\u4ee5\u53ca\u9ad8\u6548\u8c03\u8bd5\u4e0e\u53d1\u5e03\u7b49\u6b65\u9aa4<\/strong>\u3002\u9075\u5faa\u8fd9\u4e9b\u6307\u5357\uff0c\u5373\u53ef\u6709\u6548\u5229\u7528APICloud\u5e73\u53f0\u7684\u5f3a\u5927\u529f\u80fd\uff0c\u5728Mac\u4e0a\u9ad8\u6548\u5f00\u53d1\u79fb\u52a8\u5e94\u7528\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>Q: \u5728Mac\u4e0b\u5982\u4f55\u5f00\u59cb\u4f7f\u7528apicloud\u8fdb\u884cAPP\u5f00\u53d1\uff1f<\/strong><\/p>\n<p>A: \u5f00\u59cb\u4f7f\u7528apicloud\u8fdb\u884cAPP\u5f00\u53d1\u7684\u7b2c\u4e00\u6b65\u662f\u5728Mac\u7cfb\u7edf\u4e0a\u5b89\u88c5apicloud\u5f00\u53d1\u73af\u5883\u3002\u60a8\u53ef\u4ee5\u4eceapicloud\u5b98\u7f51\u4e0b\u8f7d\u5e76\u5b89\u88c5apicloud Studio\uff0c\u8fd9\u4e2a\u96c6\u6210\u5f00\u53d1\u73af\u5883\u9002\u7528\u4e8eMac\u7528\u6237\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528apicloud Studio\u8fdb\u884cAPP\u7684\u521b\u5efa\u3001\u4ee3\u7801\u7f16\u8f91\u548c\u8c03\u8bd5\u7b49\u64cd\u4f5c\u3002<\/p>\n<p><strong>Q: Mac\u7cfb\u7edf\u4e0a\u5982\u4f55\u4f7f\u7528apicloud\u8fdb\u884cAPP\u5f00\u53d1\u7684\u8c03\u8bd5\uff1f<\/strong><\/p>\n<p>A: \u5728Mac\u7cfb\u7edf\u4e0a\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528apicloud Studio\u5185\u7f6e\u7684\u6a21\u62df\u5668\u8fdb\u884cAPP\u7684\u8c03\u8bd5\u3002\u5728\u4ee3\u7801\u7f16\u8f91\u754c\u9762\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u6a21\u62df\u5668\u7c7b\u578b\u548c\u7248\u672c\uff0c\u5e76\u70b9\u51fb\u542f\u52a8\u6309\u94ae\u8fdb\u884c\u6a21\u62df\u5668\u7684\u542f\u52a8\u3002\u6a21\u62df\u5668\u542f\u52a8\u540e\uff0c\u60a8\u53ef\u4ee5\u5728\u5176\u4e2d\u8fd0\u884c\u548c\u6d4b\u8bd5\u60a8\u7684APP\uff0c\u4ee5\u4fbf\u8fdb\u884c\u8c03\u8bd5\u548c\u4f18\u5316\u3002\u6b64\u5916\uff0capicloud Studio\u8fd8\u652f\u6301\u5c06APP\u5bfc\u51fa\u5230\u771f\u673a\u8bbe\u5907\u4e0a\u8fdb\u884c\u771f\u5b9e\u7684\u6d4b\u8bd5\u548c\u8c03\u8bd5\u3002<\/p>\n<p><strong>Q: \u5728Mac\u7cfb\u7edf\u4e0a\u4f7f\u7528apicloud\u5f00\u53d1APP\u9700\u8981\u638c\u63e1\u54ea\u4e9b\u7f16\u7a0b\u8bed\u8a00\uff1f<\/strong><\/p>\n<p>A: \u5728Mac\u7cfb\u7edf\u4e0a\u4f7f\u7528apicloud\u5f00\u53d1APP\uff0c\u60a8\u65e0\u9700\u638c\u63e1\u7279\u5b9a\u7684\u7f16\u7a0b\u8bed\u8a00\u3002apicloud Studio\u63d0\u4f9b\u4e86\u4e00\u5957\u7b80\u5355\u6613\u7528\u7684JavaScript API\uff0c\u4f7f\u5f00\u53d1\u8005\u53ef\u4ee5\u4f7f\u7528JavaScript\u8bed\u8a00\u8fdb\u884cAPP\u7684\u5f00\u53d1\u3002JavaScript\u662f\u4e00\u79cd\u5e38\u7528\u7684\u524d\u7aef\u5f00\u53d1\u8bed\u8a00\uff0c\u4f7f\u7528\u65b9\u4fbf\u4e14\u529f\u80fd\u5f3a\u5927\u3002\u5982\u679c\u60a8\u5df2\u7ecf\u719f\u6089JavaScript\uff0c\u90a3\u4e48\u5728Mac\u4e0b\u4f7f\u7528apicloud\u8fdb\u884cAPP\u5f00\u53d1\u5c06\u4f1a\u53d8\u5f97\u66f4\u52a0\u5bb9\u6613\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Mac\u4e0b\u4f7f\u7528APICloud\u5f00\u53d1APP\u662f\u4e00\u4e2a\u667a\u80fd\u3001\u9ad8\u6548\u7684\u5f00\u53d1\u8fc7\u7a0b\uff0c\u4e3b\u8981\u6d89\u53ca\u5b89\u88c5\u914d\u7f6e\u5f00\u53d1\u73af\u5883\u3001\u4f7f\u7528APIClo [&hellip;]","protected":false},"author":3,"featured_media":206649,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/206646"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=206646"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/206646\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/206649"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=206646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=206646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=206646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}