{"id":208552,"date":"2014-01-09T15:11:02","date_gmt":"2014-01-09T11:11:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=208552"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=208552","title":{"rendered":"<span class=\"post_title\">\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 Quick Look plugin \u0434\u043b\u044f OS X<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \tQuick Look \u2014 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 OS X, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 thumbnails (\u0438\u043a\u043e\u043d\u043a\u0438) \u0438 previews (\u043e\u043a\u043d\u043e \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c\/\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c \u0444\u0430\u0439\u043b\u0430 \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043f\u0440\u043e\u0431\u0435\u043b\u0430 \u0432 Finder). \u041e\u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0440\u044f\u0434 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u0434\u043b\u044f \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c QL plugins \u2014 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438\u043a\u043e\u043d\u043e\u043a \u0438\/\u0438\u043b\u0438 \u043f\u0440\u0435\u0432\u044c\u044e. \u041e\u043d\u0438 \u0438\u043c\u0435\u044e\u0442 \u0444\u043e\u0440\u043c\u0430\u0442 <code>.qlgenerator<\/code>, \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u044e\u0442\u0441\u044f \u0432 <code>~\/Library\/QuickLook<\/code> \u0438 <code>\/Library\/QuickLook<\/code>.<\/p>\n<p>  \u042f \u043f\u0438\u0448\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434 iOS, \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u043e\u0434 OSX. \u0421\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043c\u0438 QuickLook \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430\u043c\u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0443\u0432\u0438\u0434\u0435\u043b \u043f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f \u043f\u0435\u0440\u0432\u044c\u044e <code>.mobileprovision<\/code> \u2014 <a href=\"https:\/\/github.com\/chockenberry\/Provisioning\">Provisioning<\/a>.<br \/>  <code>.mobileprovision\/.provisionprofile <\/code> \u2014 \u043f\u0440\u043e\u0444\u0438\u043b\u044c, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b, \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043b\u044f \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f iOS &#038; OSX \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.<\/p>\n<p>  \u0412\u043e\u0442 \u0442\u0430\u043a \u043f\u0430\u043f\u043a\u0430 \u0441 \u043f\u0440\u043e\u0444\u0438\u043b\u044f\u043c\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0431\u0435\u0437 \u0432\u0441\u044f\u043a\u0438\u0445 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u0434\u043b\u044f Quick Look:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/e6b\/c27\/954\/e6bc27954e16155b9446e6cac70d6650.png\"\/><br \/>  \u0412\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0435\u0433\u043e \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e TestFlight. \u041f\u043e\u043d\u044f\u0442\u044c \u0434\u043b\u044f \u043a\u0430\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043a\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0431\u0440\u0430\u0442\u044c \u2014 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.<\/p>\n<p>  \u0421\u043f\u0435\u0440\u0432\u0430 \u044f \u0441\u0442\u0430\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c open-source <a href=\"https:\/\/github.com\/chockenberry\/Provisioning\">Provisioning<\/a>, \u043f\u043e\u0442\u043e\u043c \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439, \u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0439 \u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 <a href=\"http:\/\/ipaql.com\/\">ipaql<\/a>. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0432\u043e\u0435\u0433\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0430\u0432\u0442\u043e\u0440 <a href=\"http:\/\/ipaql.com\/\">ipaql<\/a> \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441 OS X Mavericks \u043b\u0438\u0448\u044c \u0441\u043f\u0443\u0441\u0442\u044f \u043f\u043e\u043b\u0433\u043e\u0434\u0430 \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u0445\u043e\u0434\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0438\u043a\u043e\u043d\u043e\u043a \u043d\u0435 \u043f\u043e\u0447\u0438\u043d\u0438\u043b \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440.<\/p>\n<p>  \u0412\u043e\u0442 \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u2014 <a href=\"https:\/\/github.com\/ealeksandrov\/ProvisionQL\">ProvisionQL<\/a>.<br \/>  \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0442\u0438\u043f\u044b \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438\u043a\u043e\u043d\u043e\u043a \u0438 \u043f\u0440\u0435\u0432\u044c\u044e:  <\/p>\n<ul>\n<li><code>.ipa<\/code> \u2014 iOS packaged application (\u043a\u0430\u043a \u0438\u0437 Xcode, \u0442\u0430\u043a \u0438 \u0438\u0437 AppStore)<\/li>\n<li><code>.app<\/code> \u2014 iOS application bundle<\/li>\n<li><code>.mobileprovision<\/code> \u2014 iOS provisioning profile<\/li>\n<li><code>.provisionprofile<\/code> \u2014 OSX provisioning profile<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/0f6\/f4f\/73b\/0f6f4f73b390b67960df8688bb72347c.png\"\/><\/p>\n<p>  \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e\u0431 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0448\u0430\u0433\u0430\u0445 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 Quick Look \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h4>\n<p>  \u0412 Xcode \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442: File &gt; New &gt; Project\u2026 OS X &gt; System plug-in &gt; Quick Look Plug-in. \u0412 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u0435 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0439\u0434\u0435\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c Info.plist:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/9c9\/2b3\/651\/9c92b365174c0f9314c4d05c09035527.png\"\/><br \/>  \u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0438\u0442\u0435 CFBundleDocumentTypes \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043d\u0443\u0436\u043d\u044b\u0435 \u0442\u0438\u043f\u044b \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 LSItemContentTypes. \u0427\u0442\u043e\u0431\u044b \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u043a\u043e\u043d\u043a\u0438 \u0432 \u0441\u043f\u0438\u0441\u043a\u0430\u0445 \u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u0445 \u044f \u0438\u0437\u043c\u0435\u043d\u0438\u043b QLThumbnailMinimumSize \u0441 17 \u043d\u0430 16. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 QLPreviewHeight \u0438 QLPreviewWidth \u2014 \u043e\u043d\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435, \u043a\u043e\u0433\u0434\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0434\u043e\u043b\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 preview. \u0423 \u043c\u0435\u043d\u044f \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 ipa \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u0437 zip \u0430\u0440\u0445\u0438\u0432\u0430, \u0447\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0434\u043e\u043b\u0433\u043e (\u043e\u0442 0,06 \u0434\u043e 0,12 \u0441) \u2014 \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0437 plist. \u0415\u0441\u043b\u0438 \u0432\u0430\u0448 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0431\u044b\u0441\u0442\u0440\u043e \u043e\u0442\u0434\u0430\u0441\u0442 preview \u2014 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043e\u0442\u0440\u0435\u0441\u0430\u0437\u0438\u0442 \u043e\u043a\u043d\u043e \u043f\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \u0438\u043b\u0438 HTML, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u043e\u0442\u0434\u0430\u0434\u0438\u0442\u0435.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435, \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u0435\u0442\u0435 obj-c \u0438 \u043a\u043b\u0430\u0441\u0441\u044b Foundation \u2014 \u0441\u043c\u0435\u043b\u043e \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u0443\u0439\u0442\u0435 <code>GenerateThumbnailForURL.c \u0438 GeneratePreviewForURL.c<\/code> \u0432 <code>GenerateThumbnailForURL.m \u0438 GeneratePreviewForURL.m<\/code> \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0432 \u0438\u0445 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438:  <\/p>\n<pre><code class=\"objectivec\">#import &lt;Foundation\/Foundation.h&gt; #import &lt;Cocoa\/Cocoa.h&gt; <\/code><\/pre>\n<p>  \u0422.\u043a. \u043c\u043d\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0438\u043a\u043e\u043d\u043a\u0438 (GenerateThumbnailForURL), \u0438 \u043e\u043a\u043d\u043e \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 (GeneratePreviewForURL) \u2014 \u044f \u0432\u044b\u0434\u0435\u043b\u0438\u043b \u043e\u0431\u0449\u0438\u0435 include\/import \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 Shared.h\/m. \u041f\u0440\u0438\u0432\u043e\u0436\u0443 \u043c\u043e\u0439 Shared.h:  <\/p>\n<pre><code class=\"objectivec\">#include &lt;CoreFoundation\/CoreFoundation.h&gt; #include &lt;CoreServices\/CoreServices.h&gt; #include &lt;QuickLook\/QuickLook.h&gt;  #import &lt;Foundation\/Foundation.h&gt; #import &lt;Cocoa\/Cocoa.h&gt; #import &lt;Security\/Security.h&gt;  #import &lt;NSBezierPath+IOS7RoundedRect.h&gt;  static NSString * const kPluginBundleId = @&quot;com.FerretSyndicate.ProvisionQL&quot;; static NSString * const kDataType_ipa               = @&quot;com.apple.itunes.ipa&quot;; static NSString * const kDataType_app               = @&quot;com.apple.application-bundle&quot;; static NSString * const kDataType_ios_provision     = @&quot;com.apple.mobileprovision&quot;; static NSString * const kDataType_ios_provision_old = @&quot;com.apple.iphone.mobileprovision&quot;; static NSString * const kDataType_osx_provision     = @&quot;com.apple.provisionprofile&quot;;  #define SIGNED_CODE 0  NSImage *roundCorners(NSImage *image); NSImage *imageFromApp(NSURL *URL, NSString *dataType, NSString *fileName); NSString *mainIconNameForApp(NSDictionary *appPropertyList); int expirationStatus(NSDate *date, NSCalendar *calendar); <\/code><\/pre>\n<p>  \u0418 \u0432\u043e\u0442 \u043a\u0430\u043a\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/79d\/321\/f4c\/79d321f4ce77bc5ed2052f44e53ecfd4.png\"\/><\/p>\n<p>  NSBezierPath+IOS7RoundedRect \u2014 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u0432\u044b\u0440\u0435\u0437\u0430\u043d\u0438\u044f \u0437\u0430\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u043e \u0442\u0438\u043f\u0443 iOS7 \u0438\u043a\u043e\u043d\u043a\u0438 \u0438\u0437 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u043e\u0439.<br \/>  Install.sh \u2014 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043f\u0440\u0438 \u0441\u0431\u043e\u0440\u043a\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430:  <\/p>\n<pre><code class=\"bash\">#!\/bin\/sh  PRODUCT=&quot;${PRODUCT_NAME}.qlgenerator&quot; QL_PATH=~\/Library\/QuickLook\/  rm -rf &quot;$QL_PATH\/$PRODUCT&quot; test -d &quot;$QL_PATH&quot; || mkdir -p &quot;$QL_PATH&quot; && cp -R &quot;$BUILT_PRODUCTS_DIR\/$PRODUCT&quot; &quot;$QL_PATH&quot; qlmanage -r  echo &quot;$PRODUCT installed in $QL_PATH&quot; <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0439\u0434\u0438\u0442\u0435 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Target, \u0432 \u043c\u0435\u043d\u044e \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 Editor &gt; Add Build Phase &gt; Add Run Script Build Phase \u0438 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0443\u0442\u044c \u0434\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0432 \u043f\u0430\u043f\u043a\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/d25\/0ac\/83d\/d250ac83d06df5facc66fe4eabc5435a.png\"\/><\/p>\n<p>  \u0415\u0449\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d. \u0422.\u043a. \u043e\u043d \u0441\u0430\u043c \u043f\u043e \u0441\u0435\u0431\u0435 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c \u0444\u0430\u043b\u043e\u043c \u2014 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u0439\u0442\u0438 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0445\u0435\u043c\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u2014 Edit Scheme\u2026 &gt; Run &gt; Info &gt; Executable &gt; Other &gt; \u043d\u0430\u0436\u0430\u0442\u044c Cmd+Shft+G &gt; \/usr\/bin\/ &gt; Go &gt; qlmanage:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/f9d\/ed0\/4bb\/f9ded04bb92c43b4fb9d546746a7b88b.png\"\/><\/p>\n<p>  \u0417\u0430\u0442\u0435\u043c \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 Arguments \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0432 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u0445 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0444\u043b\u0430\u0433 <code>-t<\/code> (\u0434\u043b\u044f \u0434\u0435\u0431\u0430\u0433\u0430 \u0438\u043a\u043e\u043d\u043e\u043a) \u0438\u043b\u0438 <code>-p<\/code> (\u0434\u043b\u044f \u0434\u0435\u0431\u0430\u0433\u0430 \u043f\u0440\u0435\u0432\u044c\u044e) \u0438 \u0437\u0430\u0442\u0435\u043c \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043a \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0443 (\u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044f \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u044e \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0443 \u0438\u043a\u043e\u043d\u043a\u0438 \u043d\u0430 .ipa):<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/e73\/e5e\/876\/e73e5e876689ef366e8e5d71ad4d7933.png\"\/><\/p>\n<h4>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0438\u043a\u043e\u043d\u043e\u043a<\/h4>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u0440\u0438\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0438\u043a\u043e\u043d\u043a\u0443 (<a href=\"https:\/\/raw2.github.com\/ealeksandrov\/ProvisionQL\/master\/ProvisionQL\/Resources\/defaultIcon.png\">defaultIcon.png<\/a>). \u0412 ProvisionQL \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0432\u044b\u0431\u043e\u0440 \u0438\u043a\u043e\u043d\u043a\u0438 \u0438\u0437 ipa \u0444\u0430\u0439\u043b\u0430, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0432\u044b\u0432\u043e\u0434 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f (\u0438\u0441\u0442\u0435\u043a \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438\u043b\u0438 \u043d\u0435\u0442) \u0434\u043b\u044f provision.<\/p>\n<p>  \u0412\u043e\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 <code>GenerateThumbnailForURL.m<\/code>:  <\/p>\n<pre><code class=\"objectivec\">#import &quot;Shared.h&quot;  OSStatus GenerateThumbnailForURL(void *thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize); void CancelThumbnailGeneration(void *thisInterface, QLThumbnailRequestRef thumbnail);  \/* -----------------------------------------------------------------------------     Generate a thumbnail for file     This function's job is to create thumbnail for designated file as fast as possible    ----------------------------------------------------------------------------- *\/  OSStatus GenerateThumbnailForURL(void *thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize) {     @autoreleasepool {         NSString *dataType = (__bridge NSString *)contentTypeUTI;         NSImage *appIcon;                  if([dataType isEqualToString:kDataType_app] || [dataType isEqualToString:kDataType_ipa]) {             NSURL *iconURL = [[NSBundle bundleWithIdentifier:kPluginBundleId] URLForResource:@&quot;defaultIcon&quot; withExtension:@&quot;png&quot;];             appIcon = [[NSImage alloc] initWithContentsOfURL:iconURL];         } else {             return noErr;         }                  if (QLThumbnailRequestIsCancelled(thumbnail)) {             return noErr;         }                  NSSize canvasSize = appIcon.size;         NSRect renderRect = NSMakeRect(0.0, 0.0, appIcon.size.width, appIcon.size.height);                  CGContextRef _context = QLThumbnailRequestCreateContext(thumbnail, canvasSize, false, NULL);         if (_context) {             NSGraphicsContext* _graphicsContext = [NSGraphicsContext graphicsContextWithGraphicsPort:(void *)_context flipped:NO];                          [NSGraphicsContext setCurrentContext:_graphicsContext];             [appIcon drawInRect:renderRect];             \/\/draw anything you want here                           QLThumbnailRequestFlushContext(thumbnail, _context);             CFRelease(_context);         }     }          return noErr; }  void CancelThumbnailGeneration(void *thisInterface, QLThumbnailRequestRef thumbnail) {     \/\/ Implement only if supported } <\/code><\/pre>\n<p>  \u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043f\u0430\u0440\u0443 \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u0432:  <\/p>\n<ul>\n<li>\u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>NSImage imageNamed:<\/code> \u2014 \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043a\u0430\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441 \u0432 \u0431\u0430\u043d\u0434\u043b\u0435 qlmanage (\u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430), \u0430 \u043d\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/li>\n<li>\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 <code>QLThumbnailRequestIsCancelled(thumbnail)<\/code> \u043f\u0435\u0440\u0435\u0434 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0437\u0430\u043d\u044f\u0442\u044c \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f<\/li>\n<\/ul>\n<h4>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u0435\u0432\u044c\u044e<\/h4>\n<p>  \u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c HTML \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 preview.<br \/>  \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d template.html (\u0442\u0443\u0434\u0430 \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0442\u0438\u043b\u0438 \u0434\u043b\u044f \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f):  <\/p>\n<pre><code class=\"html\">&lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot;&gt;     &lt;body&gt;         &lt;div&gt;             &lt;h1&gt;App info&lt;\/h1&gt;             Name: &lt;strong&gt;__CFBundleDisplayName__&lt;\/strong&gt;&lt;br \/&gt;             Version: __CFBundleShortVersionString__ (__CFBundleVersion__)&lt;br \/&gt;             BundleId: __CFBundleIdentifier__&lt;br \/&gt;         &lt;\/div&gt;     &lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  \u0412\u0441\u0435, \u0447\u0442\u043e \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043e <code>__KEY__<\/code> \u0431\u0443\u0434\u0435\u043c \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0438\u0437 \u043a\u043e\u0434\u0430.<\/p>\n<p>  \u041f\u0440\u0438\u0432\u043e\u0436\u0443 \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 <code>GeneratePreviewForURL.m<\/code>:  <\/p>\n<pre><code class=\"objectivec\">#import &quot;Shared.h&quot;  OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options); void CancelPreviewGeneration(void *thisInterface, QLPreviewRequestRef preview);  \/* -----------------------------------------------------------------------------  Generate a preview for file    This function's job is to create preview for designated file  ----------------------------------------------------------------------------- *\/  OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options) {     @autoreleasepool {         NSURL *URL = (__bridge NSURL *)url;         NSString *dataType = (__bridge NSString *)contentTypeUTI;         NSData *appPlist = nil;                  if([dataType isEqualToString:kDataType_app]) {             \/\/ get the embedded plist for the iOS app             appPlist = [NSData dataWithContentsOfURL:[URL URLByAppendingPathComponent:@&quot;Info.plist&quot;]];         } else if([dataType isEqualToString:kDataType_ipa]) {             \/\/ get the embedded plist from an app archive using: unzip -p &lt;URL&gt; &lt;files to unzip&gt; (piped to standart output)             NSTask *unzipTask = [NSTask new];             [unzipTask setLaunchPath:@&quot;\/usr\/bin\/unzip&quot;];             [unzipTask setStandardOutput:[NSPipe pipe]];             [unzipTask setArguments:@[@&quot;-p&quot;, [URL path], @&quot;Payload\/*.app\/Info.plist&quot;]];             [unzipTask launch];             [unzipTask waitUntilExit];                          appPlist = [[[unzipTask standardOutput] fileHandleForReading] readDataToEndOfFile];         } else {             return noErr;         }                  if(QLPreviewRequestIsCancelled(preview)) {             return noErr;         }          NSMutableDictionary *synthesizedInfo = [NSMutableDictionary dictionary];         NSURL *htmlURL = [[NSBundle bundleWithIdentifier:kPluginBundleId] URLForResource:@&quot;template&quot; withExtension:@&quot;html&quot;];         NSMutableString *html = [NSMutableString stringWithContentsOfURL:htmlURL encoding:NSUTF8StringEncoding error:NULL];                  NSDictionary *appPropertyList = [NSPropertyListSerialization propertyListWithData:appPlist options:0 format:NULL error:NULL];         [synthesizedInfo setObject:[appPropertyList objectForKey:@&quot;CFBundleDisplayName&quot;] forKey:@&quot;CFBundleDisplayName&quot;];         [synthesizedInfo setObject:[appPropertyList objectForKey:@&quot;CFBundleIdentifier&quot;] forKey:@&quot;CFBundleIdentifier&quot;];         [synthesizedInfo setObject:[appPropertyList objectForKey:@&quot;CFBundleShortVersionString&quot;] forKey:@&quot;CFBundleShortVersionString&quot;];         [synthesizedInfo setObject:[appPropertyList objectForKey:@&quot;CFBundleVersion&quot;] forKey:@&quot;CFBundleVersion&quot;];                  for (NSString *key in [synthesizedInfo allKeys]) {             NSString *replacementValue = [synthesizedInfo objectForKey:key];             NSString *replacementToken = [NSString stringWithFormat:@&quot;__%@__&quot;, key];             [html replaceOccurrencesOfString:replacementToken withString:replacementValue options:0 range:NSMakeRange(0, [html length])];         }                  NSDictionary *properties = @{ \/\/ properties for the HTML data                                      (__bridge NSString *)kQLPreviewPropertyTextEncodingNameKey : @&quot;UTF-8&quot;,                                      (__bridge NSString *)kQLPreviewPropertyMIMETypeKey : @&quot;text\/html&quot; };                  QLPreviewRequestSetDataRepresentation(preview, (__bridge CFDataRef)[html dataUsingEncoding:NSUTF8StringEncoding], kUTTypeHTML, (__bridge CFDictionaryRef)properties); \t} \t \treturn noErr; }  void CancelPreviewGeneration(void *thisInterface, QLPreviewRequestRef preview) {     \/\/ Implement only if supported } <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u0441\u043f\u0435\u0440\u0432\u0430 \u043c\u044b \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c Info.plist (\u043b\u0438\u0431\u043e \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c \u0435\u0433\u043e \u0438\u0437 \u0430\u0440\u0445\u0438\u0432\u0430), \u0437\u0430\u0442\u0435\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u043d\u0435\u0433\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 <code>synthesizedInfo<\/code>. \u0412\u0441\u0435 \u043a\u043b\u044e\u0447\u0438 \u0438\u0437 <code>synthesizedInfo<\/code> \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 \u0441\u0442\u0440\u043e\u043a\u0435, \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0439 \u0438\u0437 <code>template.html<\/code>. \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u043e\u0442\u0434\u0430\u0435\u0442\u0441\u044f qlmanage \u043d\u0430\u0440\u044f\u0434\u0443 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438, \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0438\u043c\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u0430\u043a HTML.<\/p>\n<h4>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u041f\u043e \u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0443 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0438\u043a\u043e\u043d\u043e\u043a \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u043f\u0440\u0438\u0435\u0442\u0430\u0440\u043d\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u0438\u043b\u0438 \u0436\u0435 \u0434\u043b\u044f \u043a\u0430\u043a\u043e\u0433\u043e-\u043b\u0438\u0431\u043e \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f.<\/p>\n<p>  \u0427\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f <a href=\"https:\/\/github.com\/ealeksandrov\/ProvisionQL\">ProvisionQL<\/a> \u2014 \u044f \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043b\u044e\u0431\u044b\u043c \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u0438 \u043f\u0443\u043b-\u0440\u0435\u043a\u0432\u0435\u0441\u0442\u0430\u043c \u043f\u043e \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0437\u0430\u0434\u0430\u0447\u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u0430.    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/208552\/\"> http:\/\/habrahabr.ru\/post\/208552\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \tQuick Look \u2014 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 OS X, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 thumbnails (\u0438\u043a\u043e\u043d\u043a\u0438) \u0438 previews (\u043e\u043a\u043d\u043e \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c\/\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c \u0444\u0430\u0439\u043b\u0430 \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043f\u0440\u043e\u0431\u0435\u043b\u0430 \u0432 Finder). \u041e\u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0440\u044f\u0434 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u0434\u043b\u044f \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c QL plugins \u2014 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438\u043a\u043e\u043d\u043e\u043a \u0438\/\u0438\u043b\u0438 \u043f\u0440\u0435\u0432\u044c\u044e. \u041e\u043d\u0438 \u0438\u043c\u0435\u044e\u0442 \u0444\u043e\u0440\u043c\u0430\u0442 <code>.qlgenerator<\/code>, \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u044e\u0442\u0441\u044f \u0432 <code>~\/Library\/QuickLook<\/code> \u0438 <code>\/Library\/QuickLook<\/code>.<\/p>\n<p>  \u042f \u043f\u0438\u0448\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434 iOS, \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u043e\u0434 OSX. \u0421\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043c\u0438 QuickLook \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430\u043c\u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0443\u0432\u0438\u0434\u0435\u043b \u043f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f \u043f\u0435\u0440\u0432\u044c\u044e <code>.mobileprovision<\/code> \u2014 <a href=\"https:\/\/github.com\/chockenberry\/Provisioning\">Provisioning<\/a>.<br \/>  <code>.mobileprovision\/.provisionprofile <\/code> \u2014 \u043f\u0440\u043e\u0444\u0438\u043b\u044c, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b, \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043b\u044f \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f iOS &#038; OSX \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.<\/p>\n<p>  \u0412\u043e\u0442 \u0442\u0430\u043a \u043f\u0430\u043f\u043a\u0430 \u0441 \u043f\u0440\u043e\u0444\u0438\u043b\u044f\u043c\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0431\u0435\u0437 \u0432\u0441\u044f\u043a\u0438\u0445 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u0434\u043b\u044f Quick Look:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/e6b\/c27\/954\/e6bc27954e16155b9446e6cac70d6650.png\"\/><br \/>  \u0412\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0435\u0433\u043e \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e TestFlight. \u041f\u043e\u043d\u044f\u0442\u044c \u0434\u043b\u044f \u043a\u0430\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043a\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0431\u0440\u0430\u0442\u044c \u2014 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.<\/p>\n<p>  \u0421\u043f\u0435\u0440\u0432\u0430 \u044f \u0441\u0442\u0430\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c open-source <a href=\"https:\/\/github.com\/chockenberry\/Provisioning\">Provisioning<\/a>, \u043f\u043e\u0442\u043e\u043c \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439, \u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0439 \u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 <a href=\"http:\/\/ipaql.com\/\">ipaql<\/a>. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0432\u043e\u0435\u0433\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0430\u0432\u0442\u043e\u0440 <a href=\"http:\/\/ipaql.com\/\">ipaql<\/a> \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441 OS X Mavericks \u043b\u0438\u0448\u044c \u0441\u043f\u0443\u0441\u0442\u044f \u043f\u043e\u043b\u0433\u043e\u0434\u0430 \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u0445\u043e\u0434\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0438\u043a\u043e\u043d\u043e\u043a \u043d\u0435 \u043f\u043e\u0447\u0438\u043d\u0438\u043b \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440.<\/p>\n<p>  \u0412\u043e\u0442 \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u2014 <a href=\"https:\/\/github.com\/ealeksandrov\/ProvisionQL\">ProvisionQL<\/a>.<br \/>  \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0442\u0438\u043f\u044b \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438\u043a\u043e\u043d\u043e\u043a \u0438 \u043f\u0440\u0435\u0432\u044c\u044e:  <\/p>\n<ul>\n<li><code>.ipa<\/code> \u2014 iOS packaged application (\u043a\u0430\u043a \u0438\u0437 Xcode, \u0442\u0430\u043a \u0438 \u0438\u0437 AppStore)<\/li>\n<li><code>.app<\/code> \u2014 iOS application bundle<\/li>\n<li><code>.mobileprovision<\/code> \u2014 iOS provisioning profile<\/li>\n<li><code>.provisionprofile<\/code> \u2014 OSX provisioning profile<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/0f6\/f4f\/73b\/0f6f4f73b390b67960df8688bb72347c.png\"\/><\/p>\n<p>  \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e\u0431 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0448\u0430\u0433\u0430\u0445 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 Quick Look \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-208552","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/208552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=208552"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/208552\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=208552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=208552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=208552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}