{"id":9252,"date":"2023-11-22T13:04:34","date_gmt":"2023-11-22T05:04:34","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=9252"},"modified":"2023-11-22T13:04:34","modified_gmt":"2023-11-22T05:04:34","slug":"net-%e6%89%93%e5%8c%85%e8%8b%b9%e6%9e%9capp-%e5%bc%80%e5%8f%91%e6%80%8e%e4%b9%88%e5%81%9a%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/9252\/","title":{"rendered":"net \u6253\u5305\u82f9\u679capp \u5f00\u53d1\u600e\u4e48\u505a\uff1f"},"content":{"rendered":"

\u6253\u5305\u82f9\u679c App \u7684\u5f00\u53d1\u8fc7\u7a0b\u53ef\u4ee5\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4<\/p>\n

<\/figure>\n<\/p>\n

\uff1a\u51c6\u5907\u5de5\u4f5c\u3001\u521b\u5efa Xcode \u9879\u76ee\u3001\u914d\u7f6e\u9879\u76ee\u4fe1\u606f\u3001\u7f16\u5199\u4ee3\u7801\u3001\u8bbe\u7f6e\u8bc1\u4e66\u548c\u7b7e\u540d\u3001\u6253\u5305\u53d1\u5e03\u3002\u4e0b\u9762\u6211\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u6bcf\u4e2a\u6b65\u9aa4\u3002<\/p>\n

1. \u51c6\u5907\u5de5\u4f5c\uff1a<\/p>\n

\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u51c6\u5907\u597d\u4e00\u53f0\u8fd0\u884c macOS \u7684\u7535\u8111\u548c\u4e00\u4efd\u6700\u65b0\u7684 Xcode \u5f00\u53d1\u73af\u5883\u3002\u4f60\u8fd8\u9700\u8981\u4e00\u4e2a\u6709\u6548\u7684\u82f9\u679c\u5f00\u53d1\u8005\u8d26\u53f7\uff0c\u4ee5\u53ca\u4e00\u4e2a\u7528\u4e8e\u7b7e\u540d\u548c\u53d1\u5e03 App \u7684\u8bc1\u4e66\u3002<\/p>\n

2. \u521b\u5efa Xcode \u9879\u76ee\uff1a<\/p>\n

\u6253\u5f00 Xcode\uff0c\u9009\u62e9 “Create a new Xcode project”\uff0c\u7136\u540e\u9009\u62e9\u5408\u9002\u7684\u5e94\u7528\u6a21\u677f\uff0c\u6bd4\u5982 Single View App\u3002<\/p>\n

3. \u914d\u7f6e\u9879\u76ee\u4fe1\u606f\uff1a<\/p>\n

\u5728\u521b\u5efa\u9879\u76ee\u540e\uff0c\u4f60\u9700\u8981\u4e3a\u4f60\u7684 App \u8bbe\u7f6e\u4e00\u4e9b\u57fa\u672c\u4fe1\u606f\u3002\u8fd9\u5305\u62ec\u5e94\u7528\u7684\u540d\u79f0\u3001\u6807\u8bc6\u7b26\u3001\u7248\u672c\u53f7\u7b49\u3002\u4f60\u8fd8\u53ef\u4ee5\u4e3a\u4e0d\u540c\u8bbe\u5907\u8bbe\u7f6e\u4e0d\u540c\u7684\u542f\u52a8\u56fe\u7247\u548c\u5e94\u7528\u56fe\u6807\u3002\u6b64\u5916\uff0c\u4f60\u8fd8\u53ef\u4ee5\u914d\u7f6e\u5176\u4ed6\u9009\u9879\uff0c\u6bd4\u5982\u652f\u6301\u7684\u82f9\u679c\u6253\u5305app\u4e0d\u9650\u88c5\u673a\u6570<\/a>\u8bbe\u5907\u3001\u652f\u6301\u7684 iOS \u7248\u672c\u7b49\u3002<\/p>\n

4. \u7f16\u5199\u4ee3\u7801\uff1a<\/p>\n

\u5728 Xcode \u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 Swift \u6216 Objective-C \u7f16\u5199\u4ee3\u7801\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u89c6\u56fe\u63a7\u5236\u5668\u3001\u89c6\u56fe\u548c\u6a21\u578b\u6765\u6784\u5efa\u7528\u6237\u754c\u9762\u548c\u903b\u8f91\u3002\u6b64\u5916\uff0c\u4f60\u8fd8\u53ef\u4ee5\u4f7f\u7528\u82f9\u679c\u63d0\u4f9b\u7684\u5404\u79cd\u6846\u67b6\u548c API \u6765\u5b9e\u73b0\u529f\u80fd\uff0c\u6bd4\u5982 Core Data\u3001MapKit \u7b49\u3002<\/p>\n

5. \u8bbe\u7f6e\u8bc1\u4e66\u548c\u7b7e\u540d\uff1a<\/p>\n

\u5728\u6253\u5305\u548c\u53d1\u5e03\u4f60\u7684 App \u4e4b\u524d\uff0c\u4f60\u9700\u8981\u5c06\u4f60\u7684\u8bc1\u4e66\u548c\u7b7e\u540d\u914d\u7f6e\u5230\u9879\u76ee\u4e2d\u3002\u5728 Xcode \u4e2d\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9 “Signing & Capabilities” \u9009\u9879\u5361\uff0c\u7136\u540e\u9009\u62e9\u5408\u9002\u7684\u5f00\u53d1\u56e2\u961f\u548c\u8bc1\u4e66\u3002\u8fd9\u5c06\u786e\u4fdd\u4f60\u7684 App \u5728\u8bbe\u5907\u4e0a\u8fd0\u884c\u65f6\u80fd\u591f\u88ab\u6b63\u786e\u8bc6\u522b\u548c\u9a8c\u8bc1\u3002<\/p>\n

6. \u6253\u5305\u53d1\u5e03\uff1a<\/p>\n

\u4e00\u5207\u51c6\u5907\u5c31\u7eea\u540e\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9 “Product -> Archive” \u6765\u6253\u5305\u4f60\u7684 A\u82f9\u679capp\u514d\u7b7e\u540dapp\u6253\u5305<\/a>pp\u3002Xcode \u5c06\u4f1a\u6784\u5efa\u4f60\u7684\u9879\u76ee\uff0c\u5e76\u751f\u6210\u4e00\u4e2a\u5f52\u6863\u6587\u4ef6\u3002\u5728\u6b64\u4e4b\u540e\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 Xcode \u4e2d\u7684 “Distribute App” \u529f\u80fd\u6765\u9009\u62e9\u5408\u9002\u7684\u53d1\u5e03\u65b9\u5f0f\uff0c\u6bd4\u5982\u53d1\u5e03\u5230 App Store \u6216\u901a\u8fc7 Ad Hoc \u5206\u53d1\u65b9\u5f0f\u5c06\u5e94\u7528\u5b89\u88c5\u5728\u7279\u5b9a\u8bbe\u5907\u4e0a\u3002<\/p>\n

\u8fd9\u5c31\u662f\u6253\u5305\u82f9\u679c App \u7684\u57fa\u672c\u8fc7\u7a0b\u3002\u5f53\u7136\uff0c\u5177\u4f53\u7684\u7ec6\u8282\u8fd8\u53d6\u51b3\u4e8e\u4f60\u7684\u9879\u76ee\u9700\u6c42\u548c\u5f00\u53d1\u73af\u5883\u7684\u914d\u7f6e\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff0c\u795d\u4f60\u6210\u529f\u5f00\u53d1\u548c\u53d1\u5e03\u81ea\u5df1\u7684\u82f9\u679c App\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

\u6253\u5305\u82f9\u679c App \u7684\u5f00\u53d1\u8fc7\u7a0b\u53ef\u4ee5\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a\u51c6\u5907\u5de5\u4f5c\u3001\u521b\u5efa Xcode \u9879\u76ee\u3001\u914d\u7f6e\u9879\u76ee\u4fe1\u606f\u3001\u7f16\u5199\u4ee3\u7801\u3001\u8bbe\u7f6e\u8bc1\u4e66\u548c\u7b7e\u540d\u3001\u6253\u5305\u53d1\u5e03\u3002\u4e0b\u9762\u6211\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u6bcf\u4e2a\u6b65\u9aa4\u30021. \u51c6\u5907\u5de5\u4f5c\uff1a\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u51c6\u5907\u597d\u4e00\u53f0<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[27,7067,9863,15510,23],"topic":[],"class_list":{"0":"post-9252","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-appkf","7":"tag-27","8":"tag-7067","9":"tag-app","11":"tag-23"},"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/9252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=9252"}],"version-history":[{"count":1,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/9252\/revisions"}],"predecessor-version":[{"id":9341,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/9252\/revisions\/9341"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=9252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=9252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=9252"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=9252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}