{"id":12641,"date":"2023-12-19T13:04:33","date_gmt":"2023-12-19T05:04:33","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=12641"},"modified":"2023-12-19T13:04:33","modified_gmt":"2023-12-19T05:04:33","slug":"%e8%8b%b9%e6%9e%9c%e6%80%8e%e4%b9%88%e6%89%93%e5%8c%85app%e7%a7%bb%e5%8a%a8%e7%89%88%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/12641\/","title":{"rendered":"\u82f9\u679c\u600e\u4e48\u6253\u5305app\u79fb\u52a8\u7248\uff1f"},"content":{"rendered":"

\u82f9\u679c\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\uff08App\uff09\u7684\u6253\u5305\u8fc7\u7a0b\u5b9e\u9645\u4e0a\u662f\u5c06\u5f00\u53d1\u4eba\u5458\u7f16\u5199\u7684\u4ee3\u7801\u548c\u8d44\u6e90\u6587\u4ef6\u6253\u5305\u6210\u4e00\u4e2a\u53ef\u4ee5\u5728iOS\u8bbe\u5907\u4e0a\u5b89\u88c5\u548c\u8fd0\u884c\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u4e0b\u9762\u6211\u5c06\u4e3a\u4f60\u8be6\u7ec6\u4ecb\u7ecd\u82f9\u679cApp\u6253\u5305\u7684\u6b65\u9aa4\u548c\u539f\u7406\u3002<\/p>\n

1. \u5f00\u53d1\u73af\u5883\u51c6\u5907<\/p>\n

\u5728\u5f00\u59cb\u6253\u5305App\u4e4b\u524d\uff0c\u4f60\u9700\u8981\u51c6\u5907\u597d\u4ee5\u4e0b\u5f00\u53d1\u73af\u5883\uff1a<\/p>\n

– macOS\u64cd\u4f5c\u7cfb\u7edf<\/p>\n

– \u6700\u65b0\u7248\u672c\u7684Xcode\u5f00\u53d1\u5de5\u5177<\/p>\n

– \u6709\u6548\u7684\u82f9\u679c\u5f00\u53d1\u8005\u8d26\u53f7<\/p>\n

2. \u521b\u5efa\u5e94\u7528\u7a0b\u5e8f<\/p>\n

\u4f7f\u7528Xcode\u5de5\u5177\u521b\u5efa\u4e00\u4e2a\u65b0\u7684iOS\u9879\u76ee\u3002\u5728Xcode\u4e2d\u9009\u62e9File -> New -> Project\uff0c\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\u9009\u62e9\u201cApp\u201d\uff0c\u518d\u9009\u62e9\u201cSingle View App\u201d\u3002\u8f93\u5165\u5e94\u7528\u7a0b\u5e8f\u7684\u540d\u79f0\u548c\u5176\u4ed6\u76f8\u5173\u4fe1\u606f\uff0c\u70b9\u51fb\u201cNext\u201d\u6765\u521b\u5efa\u9879\u76ee\u3002<\/p>\n

3. \u7f16\u5199\u4ee3\u7801<\/p>\n

\u5728Xcode\u4e2d\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528Objective-C\u6216Swift\u7f16\u7a0b\u8bed\u8a00\u6765\u7f16\u5199\u5e94\u7528\u7a0b\u5e8f\u7684\u529f\u80fd\u4ee3\u7801\u3002\u8fd9\u4e9b\u4ee3\u7801\u5c06\u5b9a\u4e49\u4ea7\u54c1\u7684\u884c\u4e3a\u548c\u5916\u89c2\u3002<\/p>\n

4. \u8bbe\u8ba1\u754c\u9762<\/p>\n

\u4f7f\u7528Xcode\u63d0\u4f9b\u7684Interface Builder\u5de5\u5177\u6765\u8bbe\u8ba1\u5e94\u7528\u7a0b\u5e8f\u7684\u7528\u6237\u754c\u9762\u3002\u4f60\u53ef\u4ee5\u62d6\u62fd\u548c\u8c03\u6574\u5404\u79cdUI\u5143\u7d20\u5e76\u5c06\u5176\u4e0e\u4ee3\u7801\u5173\u8054\u8d77\u6765\u3002<\/p>\n

5. \u7f16\u8bd1\u4ee3\u7801<\/p>\n

\u5728<\/p>\n

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

\u5f00\u53d1\u5b8c\u6210\u540e\uff0c\u4f60\u9700\u8981\u7f16\u8bd1\u6574\u4e2a\u9879\u76ee\u4ee5\u751f\u6210\u53ef\u6267\u884c\u6587\u8da3\u8baf\u4e91\u6253\u5305app\u82f9\u679c\u7248\u4e0b\u8f7d<\/a>\u4ef6\u3002\u70b9\u51fbXcode\u5de5\u5177\u680f\u4e0a\u7684\u201cBuild\u201d\u6309\u94ae\u6216\u4f7f\u7528\u5feb\u6377\u952e\u201cCommand + B\u201d\u8fdb\u884c\u7f16\u8bd1\u3002<\/p>\n

6. \u8c03\u8bd5\u548c\u6d4b\u8bd5<\/p>\n

\u5728\u7f16\u8bd1\u5b8c\u6210\u540e\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u9009\u62e9\u8fd0\u884c\u8bbe\u5907\uff08\u5982\u6a21\u62df\u5668\u6216\u8fde\u63a5\u7684\u771f\u5b9eiOS\u8bbe\u5907\uff09\u5e76\u70b9\u51fbXcode\u5de5\u5177\u680f\u7684\u201cRun\u201d\u6309\u94ae\u6765\u8fdb\u884c\u6d4b\u8bd5\u3002\u5728\u6d4b\u8bd5\u8fc7\u7a0b\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528Xcode\u63d0\u4f9b\u7684\u8c03\u8bd5\u5de5\u5177\u6765\u8ddf\u8e2a\u4ee3\u7801\u548c\u89e3\u51b3\u9519\u8bef\u3002<\/p>\n

7. \u8bc1\u4e66\u548c\u7b7e\u540d<\/p>\n

\u5728\u5c06\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u4e4b\u524d\uff0c\u4f60\u9700\u8981\u4e3a\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u83b7\u53d6\u4e00\u4e2a\u6709\u6548\u7684\u5f00\u53d1\u8005\u8bc1\u4e66\uff0c\u5e76\u4f7f\u7528\u8be5\u8bc1\u4e66\u5bf9\u5e94\u7528\u7a0b\u5e8f\u8fdb\u884c\u7b7e\u540d\u3002\u8fd9\u5c06\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u7684\u8eab\u4efd\u88ab\u9a8c\u8bc1\uff0c\u5e76\u4e14\u53ea\u80fd\u7531\u5408\u6cd5\u7684\u5f00\u53d1\u8005\u8fdb\u884c\u5b89\u88c5\u548c\u4f7f\u7528\u3002<\/p>\n

8. \u914d\u7f6e\u6253\u5305\u8bbe\u7f6e<\/p>\n

\u9009\u62e9Xcode\u5de5\u5177\u680f\u4e2d\u7684\u201cProduct -> Scheme -> Edit Scheme\u201d\uff0c\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\u9009\u62e9\u201cArchive\u201d\u9009\u9879\u5361\u3002\u5728\u8fd9\u91cc\u4f60\u53ef\u4ee5\u914d\u7f6e\u6253\u5305\u8bbe\u7f6e\uff0c\u5982\u9009\u62e9\u6b63\u786e\u7684\u56e2\u961f\uff08\u5f00\u53d1\u8005\u8d26\u53f7\uff09\u3001\u9009\u62e9\u6b63\u786e\u7684\u76ee\u6807\u8bbe\u5907\u7b49\u3002<\/p>\n

9. \u6267\u884c\u6253\u5305<\/p>\n

\u70b9\u51fbXcode\u5de5\u5177\u680f\u4e0a\u7684\u201cProduct -> Archive\u201d\u6309\u94ae\u5f00\u59cb\u6253\u5305\u8fc7\u7a0b\u3002Xcode\u5c06\u81ea\u52a8\u6267\u884c\u4e00\u7cfb\u5217\u7684\u64cd\u4f5c\uff0c\u5305\u62ec\u4ee3\u7801\u7f16\u8bd1\u3001\u5e94\u7528\u7a0b\u5e8f\u7b7e\u540d\u3001\u751f\u6210\u5f52\u6863\u6587\u4ef6\u7b49\u3002<\/p>\n

10. \u5206\u53d1\u548c\u53d1\u5e03<\/p>\n

\u6253\u5305\u5b8c\u6210\u540e\uff0cXcode\u5c06\u5728Organizer\u7a97\u53e3\u4e2d\u663e\u793a\u6253\u5305\u7684\u5f52\u6863\u6587\u4ef6\u3002\u4f60\u53ef\u4ee5\u5c06\u6b64\u6587\u4ef6\u5bfc\u51fa\u4e3a.ipa\u6587\u4ef6\uff0c\u7528\u4e8e\u5206\u53d1\u7ed9\u6d4b\u8bd5\u4eba\u5458\u6216\u4e0a\u4f20\u5230App Stphp\u6253\u5305app\u4e0a\u67b6\u82f9\u679c\u5546\u5e97<\/a>ore\u8fdb\u884c\u53d1\u5e03\u3002<\/p>\n

\u603b\u7ed3\uff1a<\/p>\n

\u82f9\u679cApp\u7684\u6253\u5305\u8fc7\u7a0b\u4e3b\u8981\u5305\u62ec\u51c6\u5907\u5f00\u53d1\u73af\u5883\u3001\u521b\u5efa\u5e94\u7528\u7a0b\u5e8f\u3001\u7f16\u5199\u4ee3\u7801\u3001\u8bbe\u8ba1\u754c\u9762\u3001\u7f16\u8bd1\u4ee3\u7801\u3001\u8c03\u8bd5\u548c\u6d4b\u8bd5\u3001\u8bc1\u4e66\u548c\u7b7e\u540d\u3001\u914d\u7f6e\u6253\u5305\u8bbe\u7f6e\u3001\u6267\u884c\u6253\u5305\u4ee5\u53ca\u5206\u53d1\u548c\u53d1\u5e03\u7b49\u6b65\u9aa4\u3002\u901a\u8fc7\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u5f00\u53d1\u4eba\u5458\u80fd\u591f\u5c06\u4ee3\u7801\u548c\u8d44\u6e90\u6253\u5305\u6210\u4e00\u4e2a\u53ef\u5b89\u88c5\u548c\u8fd0\u884c\u7684iOS\u5e94\u7528\u7a0b\u5e8f\u3002\u5e0c\u671b\u8fd9\u4e2a\u7b80\u8981\u7684\u4ecb\u7ecd\u80fd\u591f\u5e2e\u52a9\u4f60\u4e86\u89e3\u82f9\u679cApp\u7684\u6253\u5305\u8fc7\u7a0b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u82f9\u679c\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\uff08App\uff09\u7684\u6253\u5305\u8fc7\u7a0b\u5b9e\u9645\u4e0a\u662f\u5c06\u5f00\u53d1\u4eba\u5458\u7f16\u5199\u7684\u4ee3\u7801\u548c\u8d44\u6e90\u6587\u4ef6\u6253\u5305\u6210\u4e00\u4e2a\u53ef\u4ee5\u5728iOS\u8bbe\u5907\u4e0a\u5b89\u88c5\u548c\u8fd0\u884c\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u4e0b\u9762\u6211\u5c06\u4e3a\u4f60\u8be6\u7ec6\u4ecb\u7ecd\u82f9\u679cApp\u6253\u5305\u7684\u6b65\u9aa4\u548c\u539f\u7406\u30021. \u5f00\u53d1\u73af\u5883\u51c6\u5907\u5728\u5f00\u59cb\u6253<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[29,27,12,2188,58],"topic":[],"class_list":["post-12641","post","type-post","status-publish","format-standard","hentry","category-appkf","tag-29","tag-27","tag-12","tag-app"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/12641","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=12641"}],"version-history":[{"count":1,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/12641\/revisions"}],"predecessor-version":[{"id":12730,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/12641\/revisions\/12730"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=12641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=12641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=12641"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=12641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}