{"id":14109,"date":"2024-01-02T14:23:58","date_gmt":"2024-01-02T06:23:58","guid":{"rendered":"https:\/\/www.zhidianwl.net\/zhidianwl\/?p=14109"},"modified":"2024-01-02T14:23:58","modified_gmt":"2024-01-02T06:23:58","slug":"%e7%bd%91%e9%a1%b5%e7%ad%be%e5%90%8d%e6%89%93%e5%8c%85ios%e6%93%8d%e4%bd%9c%e6%96%b9%e6%b3%95%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/www.zhidianwl.net\/zhidianwl\/2024\/01\/02\/%e7%bd%91%e9%a1%b5%e7%ad%be%e5%90%8d%e6%89%93%e5%8c%85ios%e6%93%8d%e4%bd%9c%e6%96%b9%e6%b3%95%e4%bb%8b%e7%bb%8d\/","title":{"rendered":"\u7f51\u9875\u7b7e\u540d\u6253\u5305ios\u64cd\u4f5c\u65b9\u6cd5\u4ecb\u7ecd"},"content":{"rendered":"
\u7f51\u9875\u7b7e\u540d\u662f\u6307\u5c06\u4e00\u4e2a\u7f51\u9875\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u4e00\u4e2a\u53ef\u6267\u884c\u7684iOS\u5e94\u7528\u7a0b\u5e8f\uff0c\u4ee5\u4fbf\u5728iOS\u8bbe\u5907\u4e0a\u5b89\u88c5\u548c\u8fd0\u884c\u3002\u8fd9\u79cd\u6253\u5305\u65b9\u5f0f\u901a\u5e38\u7528\u4e8e\u5f00\u53d1\u4eba\u5458\u548c\u4f01\u4e1a\u5f00\u53d1\u4eba\u5458\uff0c\u4ee5\u4fbf\u5728\u5185\u90e8\u6d4b\u8bd5\u548c\u5206\u53d1\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u7f51\u9875\u7b7e\u540d\u7684\u539f\u7406\u548c\u8be6\u7ec6\u6b65\u9aa4\u3002<\/p>\n
\u4e00\u3001\u539f\u7406<\/p>\n
\u7f51\u9875\u7b7e\u540d\u7684\u539f\u7406\u662f\u5c06\u4e00\u4e2a\u7f51\u9875\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u4e00\u4e2aiOS\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0c\u9700\u8981\u4f7f\u7528\u4e00\u4e2a\u79f0\u4e3a\u201cProvisioning Profile\u201d\u7684\u6587\u4ef6\u6765\u9a8c\u8bc1\u5e94\u7528\u7a0b\u5e8f\u7684\u8eab\u4efd\u3002Provisioning Profile\u6587\u4ef6\u5305\u542b\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u5f00\u53d1\u8005\u8eab\u4efd\u3001\u5e94\u7528\u7a0b\u5e8f\u7684Bundle ID\u548c\u5e94\u7528\u7a0b\u5e8f\u7684\u8bc1\u4e66\u7b49\u4fe1\u606f\u3002\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0c\u8fd8\u9700\u8981\u4f7f\u7528\u4e00\u4e2a\u79f0\u4e3a\u201cDistribution Certificate\u201d\u7684\u6587\u4ef6\u6765\u7b7e\u540d\u5e94\u7528\u7a0b\u5e8f\u3002Distribution Certificate\u662f\u7531\u82f9\u679c\u516c\u53f8\u9881\u53d1\u7684\u6570\u5b57\u8bc1\u4e66\uff0c\u7528\u4e8e\u9a8c\u8bc1\u5e94\u7528\u7a0b\u5e8f\u7684\u8eab\u4efd\u548c\u5b8c\u6574\u6027\u3002<\/p>\n
\u4e8c\u3001\u6b65\u9aa4<\/p>\n
1. \u521b\u5efa\u4e00\u4e2aXcode\u9879\u76ee<\/p>\n
\u9996\u5148\uff0c\u9700\u8981\u5728Xcode\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u9879\u76ee\u3002\u9009\u62e9\u201cFile\u201d\u83dc\u5355\u4e2d\u7684\u201cNew\u201d\u9009\u9879\uff0c\u7136\u540e\u9009\u62e9\u201cProject\u201d\u3002\u5728\u201cProject\u201d\u7a97\u53e3\u4e2d\uff0c\u9009\u62e9\u201cApplication\u201d\u6a21\u677f\uff0c\u7136\u540e\u9009\u62e9\u201cSingle View Application\u201d\u6a21\u677f\u3002\u5728\u201cProject Name\u201d\u5b57\u6bb5\u4e2d\u8f93\u5165\u5e94\u7528\u7a0b\u5e8f\u7684\u540d\u79f0\uff0c\u7136\u540e\u5355\u51fb\u201cNext\u201d\u6309\u94ae\u3002<\/p>\n
2. \u6dfb\u52a0\u4e00\u4e2aWeb\u89c6\u56fe\u63a7\u5236\u5668<\/p>\n
\u5728Xcode\u7684\u9879\u76ee\u5bfc\u822a\u5668\u4e2d\uff0c\u9009\u62e9\u201cMain.storyboard\u201d\u6587\u4ef6\u3002\u7136\u540e\uff0c\u4ece\u201cObject Library\u201d\u9762\u677f\u4e2d\u62d6\u52a8\u4e00\u4e2a\u201cWeb View\u201d\u63a7\u4ef6\u5230\u89c6\u56fe\u63a7\u5236\u5668\u4e2d\u3002\u5728\u201cAttributes Inspector\u201d\u9762\u677f\u4e2d\uff0c\u5c06Web\u89c6\u56fe\u7684URL\u5c5e\u6027\u8bbe\u7f6e\u4e3a\u5e94\u7528\u7a0b\u5e8f\u7684\u7f51\u5740\u3002<\/p>\n
3. \u6dfb\u52a0Provisioning Profile\u548cDistribution Certificate<\/p>\n
\u5728Xcode\u7684\u9879\u76ee\u5bfc\u822a\u5668\u4e2d\uff0c\u9009\u62e9\u201cTargets\u201d\u6587\u4ef6\u5939\uff0c\u7136\u540e\u9009\u62e9\u5e94\u7528\u7a0b\u5e8f\u7684\u76ee\u6807\u3002\u5728\u201cGeneral\u201d\u9009\u9879\u5361\u4e2d\uff0c\u627e\u5230\u201cIdentity\u201d\u90e8\u5206\u3002\u5728\u201cTeam\u201d\u4e0b\u62c9\u83dc\u5355\u4e2d\u9009\u62e9\u60a8\u7684\u5f00\u53d1\u8005\u5e10\u6237\u3002\u5982\u679c\u60a8\u8fd8\u6ca1\u6709\u6dfb\u52a0\u5f00\u53d1\u8005\u5e10\u6237\uff0c\u8bf7\u5355\u51fb\u201cAdd Account\u201d\u6309\u94ae\u6765\u6dfb\u52a0\u3002\u7136\u540e\uff0c\u9009\u62e9\u60a8\u7684Provisioning Profile\u548cDistribution Certificate\u3002<\/p>\n
4. \u6253\u5305\u5e94\u7528\u7a0b\u5e8f<\/p>\n
\u5728Xcode\u7684\u83dc\u5355\u680f\u4e2d\uff0c\u9009\u62e9\u201cProduct\u201d\u83dc\u5355\uff0c\u7136\u540e\u9009\u62e9\u201cArchiv<\/p>\n
e\u201d\u3002Xcode\u5c06\u81ea\u52a8\u7f16\u8bd1\u548c\u6253\u5305\u60a8\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u4e00\u65e6\u6253\u5305\u5b8c\u6210\uff0cXcode\u5c06\u81ea\u52a8\u6253\u5f00\u4e00\u4e2a\u65b0\u7684\u7a97\u53e3\uff0c\u663e\u793a\u60a8\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n 5. \u5bfc\u51fa\u5e94\u7528\u7a0b\u5e8f<\/p>\n \u5728Xcode\u7684\u201cOrganizer\u201d\u7a97\u53e3\u4e2d\uff0c\u9009\u62e9\u60a8\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u5355\u51fb\u201cExport\u201d\u6309\u94ae\u3002\u7136\u540e\uff0c\u9009\u62e9\u201cAd Hoc\u201d\u9009\u9879\uff0c\u9009\u62e9\u60a8\u7684Provisioning Profile\u548cDistribution Certificate\uff0c\u5e76\u5355\u51fb\u201cNext\u201d\u6309\u94ae\u3002\u6700\u540e\uff0c\u9009\u62e9\u60a8\u8981\u5bfc\u51fa\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u4f4d\u7f6e\uff0c\u5e76\u5355\u51fb\u201cExport\u201d\u6309\u94ae\u3002<\/p>\n 6. \u5b89\u88c5\u5e94\u7528\u7a0b\u5e8f<\/p>\n \u5c06\u5bfc\u51fa\u7684\u5e94\u7528\u7a0b\u5e8f\u6587\u4ef6\u53d1\u9001\u7ed9\u60a8\u7684\u6d4b\u8bd5\u4eba\u5458\u6216\u5ba2\u6237\u3002\u4ed6\u4eec\u53ef\u4ee5\u901a\u8fc7iTunes\u6216\u90ae\u4ef6\u7b49\u65b9\u5f0f\u5c06\u5e94\u7528\u7a0b\u5e8f\u5b89\u88c5\u5230\u4ed6\u4eec\u7684iOS\u8bbe\u5907\u4e0a\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4ed6\u4eec\u53ef\u4ee5\u50cf\u5b89\u88c5\u82f9\u679c\u5f00\u53d1\u8bc1\u4e66p12<\/a>\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u4e00\u6837\u4f7f\u7528\u60a8\u7684\u7f51\u9875\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/figure>\n<\/p>\n