{"id":347,"date":"2020-08-05T16:55:43","date_gmt":"2020-08-05T08:55:43","guid":{"rendered":"http:\/\/123.57.164.21\/?p=347"},"modified":"2020-08-07T17:23:40","modified_gmt":"2020-08-07T09:23:40","slug":"ios-%e4%bc%81%e4%b8%9a%e5%86%85%e9%83%a8%e5%ba%94%e7%94%a8in-house","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=347","title":{"rendered":"iOS  \u4f01\u4e1a\u5185\u90e8\u5e94\u7528(In-House)"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\"><strong>\u4f01\u4e1a\u5185\u90e8\u5e94\u7528<\/strong><\/h4>\n\n\n\n<p>\u4f01\u4e1a\u5185\u90e8\u5e94\u7528\uff0c\u5373\u53ea\u5728\u4f01\u4e1a\u90e8\u95e8\u548c\u5458\u5de5\u5185\u90e8\u4f7f\u7528\u3001\u4e0d\u5bf9\u5916\u516c\u5f00\u7684\u5e94\u7528\u3002\u82f9\u679c\u63d0\u4f9b\u4e86\u4e13\u95e8\u7684<code>In-House<\/code>\u8bc1\u4e66\u7528\u6765\u53d1\u5e03\u8fd9\u79cd\u5e94\u7528\uff0c\u53ef\u4ee5\u5206\u53d1\u7ed9\u4efb\u610f\u7684\u624b\u673a\uff0c\u53ea\u8981\u901a\u8fc7\u4e00\u4e2aURL\u5373\u53ef\u4e0b\u8f7d\u5b89\u88c5\uff0c\u4e0d\u7528\u4e0a\u4f20\u5230<code>App Stroe<\/code>\u5ba1\u6838\u3002<span class=\"has-inline-color has-very-dark-gray-color\">\u6211\u628a\u4f01<\/span>\u4e1a\u5185\u90e8\u5e94\u7528\u4e5f\u53eb\u505a<code>In-House<\/code>\u5e94\u7528\u3002<\/p>\n\n\n\n<p><code>In-House<\/code>\u5e94\u7528\uff0c\u6709\u65f6\u9700\u8981\u6839\u636e\u90e8\u95e8\u9700\u6c42\u8fdb\u884c\u7248\u672c\u7684\u5feb\u901f\u8fed\u4ee3\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981<code>App Store<\/code>\u5ba1\u6838\uff0c\u6240\u4ee5\u53ef\u4ee5\u505a\u5230\u968f\u65f6\u4fee\u6539\uff0c\u968f\u65f6\u53d1\u5e03\uff0c\u8282\u7701\u4e86\u5927\u91cf\u7684\u65f6\u95f4\u3002<code>In-House<\/code>\u8bc1\u4e66\u8fd8\u53ef\u4ee5\u7528\u4e8e\u5e94\u7528\u7684\u5185\u6d4b\u5206\u53d1\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u5fc5\u987b\u5177\u5907\u7684\u4e24\u4e2a\u6761\u4ef6\uff1a<\/strong><\/h4>\n\n\n\n<ul><li>\u4f01\u4e1a\u5f00\u53d1\u8005\u8d26\u53f7\u300299$\u7684\u666e\u901a\u5f00\u53d1\u8005\u8d26\u53f7\u4e0d\u884c\uff0c\u5fc5\u987b\u4ee5\u4f01\u4e1a\u7684\u540d\u4e49\u7533\u8bf7\u4e00\u4e2a299$\u7684\u4f01\u4e1a\u5f00\u53d1\u8005\u8d26\u53f7<code>Apple Developer Enterprise Program<\/code><\/li><li>\u5e26SSL\u8bc1\u4e66\u7684\u57df\u540d\u3002\u4f01\u4e1a\u5185\u90e8\u5e94\u7528\u9700\u8981\u628aipa\u6587\u4ef6\u4e0a\u4f20\u5230\u670d\u52a1\u5668\uff0c\u7136\u540e\u901a\u8fc7\u4e00\u4e2a\u94fe\u63a5\u6765\u4e0b\u8f7d\u5b89\u88c5\uff0c\u800c\u82f9\u679c\u5f88\u91cd\u89c6\u5b89\u5168\u6027\uff0c\u8981\u6c42\u8fd9\u4e2a\u94fe\u63a5\u7684\u57df\u540d\u5fc5\u987b\u5177\u6709SSL\u8bc1\u4e66\uff0c\u652f\u6301 https \uff0c\u5426\u5219\u65e0\u6cd5\u5b89\u88c5\u3002<\/li><\/ul>\n\n\n\n<p>SSL\u8bc1\u4e66\u5176\u5b9e\u5e76\u4e0d\u662f\u5fc5\u9700\u7684\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u77e5\u540d\u7684\u4e91\u5b58\u50a8\u670d\u52a1\uff0c\u6bd4\u5982\u4e9a\u9a6c\u900a\u7684AWS\uff0c\u963f\u91cc\u4e91\u7b49\uff0c\u8fd9\u4e9b\u5927\u516c\u53f8\u7684\u4e91\u5b58\u50a8\u90fd\u652f\u6301Https\uff0c\u6211\u7528\u7684\u5c31\u662fAWS\u7684S3\u4e91\u5b58\u50a8\uff0c\u4f46299$\u7684\u4f01\u4e1a\u5f00\u53d1\u8005\u8d26\u53f7\u5c31\u907f\u514d\u4e0d\u4e86\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u51c6\u5907\u7684\u6587\u4ef6<\/strong><\/h4>\n\n\n\n<ul><li><code>ipa<\/code>\u6587\u4ef6\u3002<\/li><li><code>plist<\/code>\u6587\u4ef6\u3002\u540d\u79f0\u5fc5\u987b\u4e0e<code>ipa<\/code>\u6587\u4ef6\u4e00\u81f4\uff0c\u7528\u4e8e\u914d\u7f6ebundle id\u3001\u7248\u672c\u53f7\u3001<code>ipa<\/code>\u6587\u4ef6\u7684URL\u3001\u5e94\u7528\u56fe\u6807\u7b49\u3002<\/li><li>@1x \u548c @2x \u7684Icon\u3002\u4e0b\u8f7d\u5b89\u88c5\u65f6\u663e\u793a\u5e94\u7528\u56fe\u6807\u3002<\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u6253\u5305<\/strong><\/h4>\n\n\n\n<p>1. \u521b\u5efa\u53d1\u5e03\u8bc1\u4e66(<strong>Production Certificates<\/strong>)\uff0c\u9009\u62e9<code>In-House<\/code>\u7c7b\u578b\u7684\uff0c\u8fc7\u7a0b\u6211\u5c31\u4e0d\u8d58\u8ff0\u4e86\uff0c\u548c\u5176\u4ed6\u8bc1\u4e66\u4e00\u6837\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/08\/image-2-702x1024.png\" alt=\"\" class=\"wp-image-355\" width=\"514\" height=\"750\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-2-702x1024.png 702w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-2-206x300.png 206w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-2-768x1120.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-2-1053x1536.png 1053w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-2.png 1192w\" sizes=\"(max-width: 514px) 100vw, 514px\" \/><\/figure><\/div>\n\n\n\n<p>2. \u521b\u5efa\u914d\u7f6e\u6587\u4ef6(<strong>Distribution Provisioning Profiles<\/strong>)<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/08\/image-8-898x1024.png\" alt=\"\" class=\"wp-image-448\" width=\"495\" height=\"565\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-8-898x1024.png 898w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-8-263x300.png 263w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-8-768x876.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-8-1347x1536.png 1347w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-8-830x946.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-8-230x262.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-8-350x399.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-8-480x547.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-8.png 1468w\" sizes=\"(max-width: 495px) 100vw, 495px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/08\/image-9-1024x465.png\" alt=\"\" class=\"wp-image-449\" width=\"513\" height=\"233\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-9-1024x465.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-9-300x136.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-9-768x349.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-9-830x377.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-9-230x105.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-9-350x159.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-9-480x218.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-9.png 1448w\" sizes=\"(max-width: 513px) 100vw, 513px\" \/><\/figure><\/div>\n\n\n\n<p>3. \u5728Xcode\u9009\u62e9\u5bf9\u5e94\u7684Code Signing \u548c Provisioning Profile, Archive<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/08\/image-10-1024x569.png\" alt=\"\" class=\"wp-image-451\" width=\"487\" height=\"270\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-10-1024x569.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-10-300x167.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-10-768x427.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-10-1536x854.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-10-830x461.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-10-230x128.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-10-350x195.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-10-480x267.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-10.png 1698w\" sizes=\"(max-width: 487px) 100vw, 487px\" \/><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>4. \u5bfc\u51fa ipa \u6587\u4ef6<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/08\/image-11-1024x610.png\" alt=\"\" class=\"wp-image-452\" width=\"570\" height=\"339\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-11-1024x610.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-11-300x179.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-11-768x457.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-11-830x494.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-11-230x137.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-11-350x208.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-11-480x286.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-11.png 1162w\" sizes=\"(max-width: 570px) 100vw, 570px\" \/><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">plist \u6587\u4ef6<\/h4>\n\n\n\n<p>Xcode 5 \u53ca\u5176\u4ee5\u524d\u6253\u5305<code>In-House<\/code>\u5e94\u7528\u4f1a\u4e00\u8d77\u751f\u6210<code>ipa<\/code>\u548c<code>plist<\/code>\u6587\u4ef6\uff0c\u4f46Xcode 6 \u4ee5\u540e\u5c31\u53ea\u6709<code>ipa<\/code>\u6587\u4ef6\u4e86\uff0c\u6240\u4ee5\u8981\u624b\u52a8\u751f\u6210&nbsp;<code>plist<\/code>\u6587\u4ef6\u3002\u5728<code>plist<\/code>\u6587\u4ef6\u4e2d\u8f93\u5165<code>ipa<\/code>\u7684URL\u3001\u5b89\u88c5\u65f6\u663e\u793a\u7684 icon \u7684url\u3001bundle id\u3001\u7248\u672c\u53f7\u3001\u5b89\u88c5\u524d\u7684\u63d0\u793a\u4fe1\u606f\u3002<br>\u6587\u4ef6\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"xml\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">    &lt;?xml version=\"1.0\" encoding=\"UTF-8\"?>\n    &lt;!DOCTYPE plist PUBLIC \"-\/\/Apple\/\/DTD PLIST 1.0\/\/EN\" \"http:\/\/www.apple.com\/DTDs\/PropertyList-1.0.dtd\">\n    &lt;plist version=\"1.0\">\n    &lt;dict>\n        &lt;key>items&lt;\/key>\n        &lt;array>\n            &lt;dict>\n                &lt;key>assets&lt;\/key>\n                &lt;array>\n                    &lt;dict>\n                        &lt;key>kind&lt;\/key>\n                        &lt;string>software-package&lt;\/string>\n                        &lt;key>url&lt;\/key>\n                        &lt;string>[INSERT THE URL FOR YOUR IPA HERE. e.g : https:\/\/s3-us-west-2.amazonaws.com\/folder\/appName-version.ipa]&lt;\/string>\n                    &lt;\/dict>\n                    &lt;dict>\n                        &lt;key>kind&lt;\/key>\n                        &lt;string>full-size-image&lt;\/string>\n                        &lt;key>needs-shine&lt;\/key>\n                        &lt;true\/>\n                        &lt;key>url&lt;\/key>\n                        &lt;string>[INSERT THE URL FOR INSTALLATION @2x ICON HERE. e.g : https:\/\/s3-us-west-2.amazonaws.com\/folder\/images\/Icon@2x.png]&lt;\/string>\n                    &lt;\/dict>\n                    &lt;dict>\n                        &lt;key>kind&lt;\/key>\n                        &lt;string>display-image&lt;\/string>\n                        &lt;key>needs-shine&lt;\/key>\n                        &lt;true\/>\n                        &lt;key>url&lt;\/key>\n                        &lt;string>[INSERT THE URL FOR INSTALLATION ICON HERE. e.g : https:\/\/s3-us-west-2.amazonaws.com\/folder\/images\/Icon.png]&lt;\/string>\n                    &lt;\/dict>\n                &lt;\/array>\n                &lt;key>metadata&lt;\/key>\n                &lt;dict>\n                    &lt;key>bundle-identifier&lt;\/key>\n                    &lt;string>[INSERT BUNDLE ID HERE]&lt;\/string>\n                    &lt;key>bundle-version&lt;\/key>\n                    &lt;string>[INSERT VERSION HERE]&lt;\/string>\n                    &lt;key>kind&lt;\/key>\n                    &lt;string>software&lt;\/string>\n                    &lt;key>title&lt;\/key>\n                    &lt;string>[INSERT APP TITLE HERE. The Title will present to the user installing the app]&lt;\/string>\n                &lt;\/dict>\n            &lt;\/dict>\n        &lt;\/array>\n    &lt;\/dict>\n    &lt;\/plist><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u53d1\u5e03\u4e0e\u5b89\u88c5<\/h4>\n\n\n\n<p>\u628a<code>ipa<\/code>\u3001\u914d\u7f6e\u597d\u7684<code>plist<\/code>&nbsp;\u6587\u4ef6\u548c\u56fe\u6807\u4e00\u8d77\u4e0a\u4f20AWS\u7684S3\u4e91\u5b58\u50a8\u4e0a\u5373\u53ef\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u5b89\u88c5<\/h4>\n\n\n\n<p>iOS\u7684\u4f01\u4e1a\u5185\u90e8\u5e94\u7528\u662f\u901a\u8fc7\u8bbf\u95ee<code>plist<\/code>\u6587\u4ef6\u6765\u5b89\u88c5\u7684\uff0c\u56e0\u4e3a<code>plist<\/code>\u6587\u4ef6\u4e2d\u5305\u542b\u4e86\u5bf9\u5e94\u7684<code>ipa<\/code>\u6587\u4ef6\u548c\u56fe\u6807\u7684URL\uff0ciPhone\u4f1a\u6839\u636eURL\u81ea\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n\n\n\n<p>\u5728iPhone\u7684<code>Safari<\/code>\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">itms-services:\/\/?action=download-manifest&amp;url=https:\/\/s3-us-west-2.amazonaws.com\/folder\/appName-version.plist<\/pre>\n\n\n\n<p>\u9996\u5148\u4f1a\u8be2\u95ee\u662f\u5426\u6253\u5f00\u8981\u6253\u5f00\u94fe\u63a5\uff0c\u70b9\u51fb\u201c\u6253\u5f00\u201d<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/08\/image-12-572x1024.png\" alt=\"\" class=\"wp-image-453\" width=\"440\" height=\"787\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-12-572x1024.png 572w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-12-168x300.png 168w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-12-768x1374.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-12-858x1536.png 858w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-12-830x1485.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-12-230x412.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-12-350x626.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-12-480x859.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-12.png 998w\" sizes=\"(max-width: 440px) 100vw, 440px\" \/><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>\u7136\u540e\u8be2\u95ee\u662f\u5426\u8981\u5b89\u88c5App\uff0c\u70b9\u51fb\u201c\u5b89\u88c5\u201d<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/08\/image-13-561x1024.png\" alt=\"\" class=\"wp-image-454\" width=\"444\" height=\"810\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-13-561x1024.png 561w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-13-164x300.png 164w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-13-768x1401.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-13-842x1536.png 842w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-13-830x1514.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-13-230x420.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-13-350x639.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-13-480x876.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-13.png 980w\" sizes=\"(max-width: 444px) 100vw, 444px\" \/><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u81ea\u52a8\u66f4\u65b0<\/h4>\n\n\n\n<p>\u4e3a\u4e86\u907f\u514d\u6bcf\u6b21\u53d1\u5e03\u540e\u90fd\u9700\u8981\u901a\u77e5\u522b\u4eba\u66f4\u65b0App\u7684\u9ebb\u70e6\u4e8b\uff0c\u81ea\u52a8\u66f4\u65b0\u662f\u5fc5\u5907\u7684\u3002\u4e0e\u540e\u53f0\u6c9f\u901a\uff0c\u8bbe\u8ba1\u4e00\u4e2a\u66f4\u65b0\u63a5\u53e3<code>GET \/updates<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"232\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/08\/image-3-1024x232.png\" alt=\"\" class=\"wp-image-362\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-3-1024x232.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-3-300x68.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-3-768x174.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-3.png 1402w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Response<\/p>\n\n\n\n<p>Status-Code: 200 OK<em><\/em><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\n    \"data\": {\n        \"update\" : true,\n        \"lastest\" : \"1.0.1\",\n        \"url\" : \"itms-services:\/\/?action=download-manifest&amp;url=https:\/\/s3-us-west-2.amazonaws.com\/folder\/appName-1.0.1.plist\"\n    },\n    \"error\": {}\n}<\/pre>\n\n\n\n<p>App\u4e00\u542f\u52a8\u65f6\uff0c\u8c03\u7528<code>GET \/updates<\/code>\u63a5\u53e3\u4f20\u9012\u5e73\u53f0\u53c2\u6570\u548c\u5f53\u524d\u7248\u672c\u53f7\u7ed9\u540e\u53f0\u8fdb\u884c\u68c0\u67e5\uff0c\u540e\u53f0\u5224\u65ad\u5f53\u524d\u7248\u672c\u662f\u5426\u4e3a\u6700\u65b0\u7248\uff0c\u5982\u679c\u4e0d\u662f\u6700\u65b0\u7248\uff0c\u5219\u8fd4\u56de\u6700\u65b0\u7248\u672c\u53f7\u548c\u5bf9\u5e94\u7684\u4e0b\u8f7d\u94fe\u63a5\uff0c\u7136\u540e\u7528\u6d4f\u89c8\u5668\u6253\u5f00\u8fd4\u56de\u7684URL\u8fdb\u884c\u5b89\u88c5\u5373\u53ef\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">func upgrade()\n    {\n        let params = [\n            \"platform\" : \"ios\", \n            \"version\" : CKAppInfo.releaseVersion()\n        ]\n        ObjectRequest(URLRequest: UpdateRouter.CheckUpdate(params)).load(\n            successHandler: { (promotion: Promotion?) -> Void in\n                SWLog(promotion)\n                \n                if promotion?.update == true { \/\/ different version\n                    \n                    let alert = DVAlertController(title: \"Upgrade\", message: \"update to latest version\", preferredStyle: UIAlertControllerStyle.Alert)\n                    alert.addAction(UIAlertAction(title: \"Upgrade\", style: UIAlertActionStyle.Default, handler: { (_) -> Void in\n                        let url = NSURL(string:promotion!.url!)\n                        UIApplication.sharedApplication().openURL(url!)\n                    }))\n                    \n                    alert.show(animated: true, completion: nil)\n                    SWLog(\"different version\")\n                }\n            }, failHandler: { (error) -> Void in\n                self.creatAlert(\"checkout upgrade failed\")\n        })\n    }<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4f01\u4e1a\u5185\u90e8\u5e94\u7528 \u4f01\u4e1a\u5185\u90e8\u5e94\u7528\uff0c\u5373\u53ea\u5728\u4f01\u4e1a\u90e8\u95e8\u548c\u5458\u5de5\u5185\u90e8\u4f7f\u7528\u3001\u4e0d\u5bf9\u5916\u516c\u5f00\u7684\u5e94\u7528\u3002\u82f9\u679c\u63d0\u4f9b\u4e86\u4e13\u95e8\u7684In-House\u8bc1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,8],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/347"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=347"}],"version-history":[{"count":16,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/347\/revisions"}],"predecessor-version":[{"id":455,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/347\/revisions\/455"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}