{"id":8298,"date":"2023-11-08T12:33:24","date_gmt":"2023-11-08T04:33:24","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=8298"},"modified":"2023-11-08T12:33:24","modified_gmt":"2023-11-08T04:33:24","slug":"ios-%e6%89%93%e5%8c%85%e4%b9%8b%e5%90%8e%e9%9d%99%e6%80%81%e5%ba%93%e6%b2%a1%e5%8a%a0%e8%bd%bd%e5%87%ba%e6%9d%a5%e6%80%8e%e4%b9%88%e5%8a%9e%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/8298\/","title":{"rendered":"ios \u6253\u5305\u4e4b\u540e\u9759\u6001\u5e93\u6ca1\u52a0\u8f7d\u51fa\u6765\u600e\u4e48\u529e\uff1f"},"content":{"rendered":"
\u5728iOS\u5f00\u53d1\u4e2d\uff0c\u6253\u5305\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u9700\u8981\u5c06\u6240\u6709\u7684\u4f9d\u8d56\u5e93\u548c\u8d44\u6e90\u6587\u4ef6\u6253\u5305\u6210\u4e00\u4e2a\u5355\u72ec\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002\u5176\u4e2d\uff0c\u9759\u6001\u5e93\u662f\u4e00\u79cd\u5728\u7f16\u8bd1\u65f6\u88ab\u94fe\u63a5\u5230\u5e94\u7528\u7a0b\u5e8f\u4e2d\u7684\u5e93\u6587\u4ef6\uff0c\u5b83\u5305\u542b\u4e86\u4e00\u4e9b\u53ef\u91cd\u7528\u7684\u4ee3\u7801\u548c\u529f\u80fd\u3002<\/p>\n
\u5728iOS\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0c\u5982\u679c\u9759\u6001\u5e93\u6ca1\u6709\u88ab\u6b63\u786e\u52a0\u8f7d\u51fa\u6765\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u539f\u56e0\uff1a<\/p>\n
1. \u7f3a\u5c11\u4f9d\u8d56\u5e93\uff1a\u9759\u6001\u5e93\u53ef\u80fd\u4f9d\u8d56\u4e8e\u5176\u4ed6\u52a8\u6001\u5e93\u6216\u6846\u67b6\uff0c\u5982\u679c\u8fd9\u4e9b\u4f9d\u8d56\u5e93\u6ca1\u6709\u88ab\u6b63\u786e\u5f15\u5165\u9879\u76ee\u4e2d\uff0c\u5219\u65e0\u6cd5\u52a0\u8f7d\u9759\u6001\u5e93\u3002\u5728Xcode\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728\u9879\u76ee\u7684”Build Phases”\u4e2d\u7684”Link Binary With Libraries”\u4e2d\u6dfb\u52a0\u6240\u9700\u7684\u4f9d\u8d56\u5e93\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n
2. \u67b6\u6784\u4e0d\u5339\u914d\uff1aiOS\u8bbe\u5907\u4e0a\u6709\u591a\u79cd\u4e0d\u540c\u7684\u67b6\u6784\uff0c\u4f8b\u5982armv7\u3001arm64\u7b49\u3002\u9759\u6001\u5e93\u5fc5\u987b\u9002\u914d\u8bbe\u5907\u7684\u67b6\u6784\uff0c\u5426\u5219\u4f1a\u5bfc\u81f4\u52a0\u8f7d\u5931\u8d25\u3002\u53ef\u4ee5\u901a\u8fc7\u5728\u9879\u76ee\u7684”Build Settings”\u4e2d\u7684”Architectures”\u8bbe\u7f6e\u4e2d\u9009\u62e9\u8981\u652f\u6301\u7684\u67b6\u6784\uff0c\u5e76\u786e\u4fdd\u9759\u6001\u5e93\u4e5f\u662f\u76f8\u5e94\u7684\u67b6\u6784\u3002<\/p>\n
3. \u7f3a\u5c11\u8d44\u6e90\u6587\u4ef6\uff1a\u9759\u6001\u5e93\u53ef\u80fd\u6709\u4e00\u4e9b\u4f9d\u8d56\u4e8e\u7279\u5b9a\u8d44\u6e90\u6587\u4ef6\u7684\u529f\u80fd\uff0c\u5982\u56fe\u7247\u3001\u97f3\u9891\u7b49\u3002\u5728ios\u6253\u5305ipa\u6b65\u9aa4<\/a>\u6253\u5305\u65f6\uff0c\u5fc5\u987b\u5c06\u8fd9\u4e9b\u8d44\u6e90\u6587\u4ef6\u4e00\u540c\u6253\u5305\u8fdb\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u5426\u5219\u9759\u6001\u5e93\u65e0\u6cd5\u6b63\u5e38\u52a0\u8f7d\u3002\u53ef\u4ee5\u901a\u8fc7\u5c06\u8d44\u6e90\u6587\u4ef6\u6dfb\u52a0\u5230\u9879\u76ee\u7684”Copy Bundle Resources”\u4e2d\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n 4. \u7f16\u8bd1\u9009\u9879\u8bbe\u7f6e\u9519\u8bef\uff1a\u5728Xcode\u4e2d\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u67d0\u4e9b\u7f16\u8bd1\u9009\u9879\u6765\u5f71\u54cd\u9759\u6001\u5e93\u7684\u884c\u4e3a\u3002\u4f8b\u5982\uff0c”Build Active Architecture Only”\u9009\u9879\u53ef\u4ee5\u63a7\u5236\u53ea\u7f16\u8bd1\u5f53\u524d\u8bbe\u5907\u67b6\u6784\u4e0b\u7684\u9759\u6001\u5e93\u3002\u5982\u679c\u8fd9\u4e2a\u9009\u9879\u88ab\u8bbe\u7f6e\u4e3a\u9519\u8bef\u7684\u503c\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u9759\u6001\u5e93\u6ca1\u6709\u6b63\u786e\u52a0\u8f7d\u3002<\/p>\n \u4ee5\u4e0a\u662f\u4e00\u4e9b\u5e38\u89c1\u7684<\/p>\n \u5bfc\u81f4\u9759\u6001\u5e93\u52a0\u8f7d\u5931\u8d25\u7684\u95ee\u9898\u548c\u89e3\u51b3\u65b9\u6cd5\u3002\u5728\u89e3\u51b3\u95ee\u9898\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u67e5\u770bXcode\u7684\u7f16\u8bd1\u8f93\u51fa\u4fe1\u606f\u6765\u786e\u5b9a\u5177\u4f53\u7684\u9519\u8bef\u539f\u56e0\u3002\u53e6\u5916\uff0c\u4e5f\u53ef\u4ee5\u5728\u7ec8\u7aef\u4e2d\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177lipo\u6765\u68c0\u67e5\u9759\u6001\u5e93\u7684\u67b6\u6784\u4fe1\u606f\uff0c\u4ee5\u786e\u4fdd\u9759\u6001\u5e93\u7684\u67b6\u6784\u548c\u5e94\u7528\u7a0b\u5e8f\u7684\u67b6\u6784\u5339\u914d\u3002<\/p>\n \u603b\u4e4b\uff0c\u786e\u4fdd\u6b63\u786e\u5f15\u5165\u4f9d\u8d56\u5e93\u3001\u8bbe\u7f6e\u6b63\u786e\u7684\u67b6\u6784\u3001\u6dfb\u52a0\u5fc5\u8981\u7684\u8d44\u6e90\u6587\u4ef6\u4ee5\u53ca\u6b63\u786e\u914d\u7f6e\u7f16\u8bd1\u9009\u9879\uff0c\u5c31\u80fd\u4fdd\u8bc1\u9759\u6001\u5e93\u80fd\u591f\u6b63\u786e\u52a0\u8f7dios\u6253\u5305\u66f4\u65b0<\/a>\u51fa\u6765\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u5728iOS\u5f00\u53d1\u4e2d\uff0c\u6253\u5305\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u9700\u8981\u5c06\u6240\u6709\u7684\u4f9d\u8d56\u5e93\u548c\u8d44\u6e90\u6587\u4ef6\u6253\u5305\u6210\u4e00\u4e2a\u5355\u72ec\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002\u5176\u4e2d\uff0c\u9759\u6001\u5e93\u662f\u4e00\u79cd\u5728\u7f16\u8bd1\u65f6\u88ab\u94fe\u63a5\u5230\u5e94\u7528\u7a0b\u5e8f\u4e2d\u7684\u5e93\u6587\u4ef6\uff0c\u5b83\u5305\u542b\u4e86\u4e00\u4e9b\u53ef\u91cd\u7528\u7684\u4ee3\u7801\u548c\u529f\u80fd\u3002\u5728iOS\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0c\u5982\u679c<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[14433,14432,160,3340,6092],"topic":[],"class_list":["post-8298","post","type-post","status-publish","format-standard","hentry","category-appkf","tag-iosipa","tag-ios","tag-160","tag-3340","tag-6092"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/8298","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=8298"}],"version-history":[{"count":0,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/8298\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=8298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=8298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=8298"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=8298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}<\/figure>\n<\/p>\n