{"id":5043,"date":"2023-05-11T12:05:42","date_gmt":"2023-05-11T04:05:42","guid":{"rendered":"https:\/\/app.applebyme.cn\/cloud\/appshangjia\/5043.html"},"modified":"2023-05-11T12:05:42","modified_gmt":"2023-05-11T04:05:42","slug":"ios%e6%b5%8b%e8%af%95-uuid-ipa%e7%9a%84%e7%94%a8%e9%80%94%e4%b8%bb%e8%a6%81%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/app.applebyme.cn\/cloud\/appshangjia\/5043.html","title":{"rendered":"ios\u6d4b\u8bd5 uuid ipa\u7684\u7528\u9014\u4e3b\u8981\u662f\u4ec0\u4e48\uff1f"},"content":{"rendered":"<p>\u5728iOS\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u4e2d\uff0c\u6d4b\u8bd5\u662f\u975e\u5e38\u91cd\u8981\u7684\u4e00\u73af\uff0c\u5b83\u53ef\u4ee5\u4fdd\u8bc1\u5e94\u7528\u7a0b\u5e8f\u7684\u8d28\u91cf\u548c\u7a33\u5b9a\u6027\u3002\u800c\u5728\u6d4b\u8bd5\u4e2d\uff0cUUID\u548cIP<a href=\"https:\/\/www.yimenapp.net\/dabao-3436.html\">ios \u5f00\u53d1\u5706\u89d2<\/a>A\u662f\u4e24\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u6982\u5ff5\u3002<\/p>\n<p>\u4e00\u3001UUID<\/p>\n<p>UUID\u662fUniversally Unique Identifier\u7684\u7f29\u5199\uff0c\u5373\u901a\u7528\u552f\u4e00\u6807\u8bc6\u7b26\uff0c\u5b83\u662f\u4e00\u79cd\u8f6f\u4ef6\u5efa\u6784\u7684\u6807\u51c6\uff0c\u4e5f\u662f\u4e00\u79cd32\u4f4d\u957f\u5ea6\u7684\u5341\u516d\u8fdb\u5236\u6570\u5b57\uff0c\u5b83\u53ef\u4ee5\u4fdd\u8bc1\u5728\u5168\u7403\u8303\u56f4\u5185\u7684\u552f\u4e00\u6027\u3002\u5728iOS\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u4e2d\uff0cUUID\u901a\u5e38\u7528\u4e8e\u8bbe\u5907\u6807\u8bc6\u3001\u5e94\u7528\u7a0b\u5e8f\u6807\u8bc6\u548c\u63a8\u9001\u901a\u77e5\u6807\u8bc6\u7b49\u65b9\u9762\u3002<\/p>\n<p>1. \u8bbe\u5907\u6807\u8bc6<\/p>\n<p>\u5728iOS\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u8bbe\u5907\u6807\u8bc6\u901a\u5e38\u7528\u4e8e\u552f\u4e00\u6807\u8bc6\u7528\u6237\u8bbe\u5907\uff0c\u4ee5\u4fbf\u4e8e\u8fdb\u884c\u8bbe\u5907\u7ba1\u7406\u548c\u63a8\u9001\u901a\u77e5\u7b49\u64cd\u4f5c\u3002\u5728\u4f7f\u7528\u8bbe\u5907\u6807\u8bc6\u65f6\uff0c\u6211\u4eec\u901a\u5e38\u4f7f\u7528iOS\u7cfb\u7edf\u63d0\u4f9b\u7684UIDevice\u7c7b\u6765\u83b7\u53d6\u8bbe\u5907\u7684\u552f\u4e00\u6807\u8bc6\u7b26\uff0c\u4f8b\u5982\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>NSString *uuid = [[[UIDevice currentDevice] identifierForVendor] UUIDString];<\/p>\n<p>&#8220;`<\/p>\n<p>2. \u5e94\u7528\u7a0b\u5e8f\u6807\u8bc6<\/p>\n<p>\u5728iOS\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u5e94\u7528\u7a0b\u5e8f\u6807\u8bc6\u901a\u5e38\u7528\u4e8e\u552f\u4e00\u6807\u8bc6\u5e94\u7528\u7a0b\u5e8f\uff0c\u4ee5\u4fbf\u4e8e\u8fdb\u884c\u5e94\u7528\u7a0b\u5e8f\u7ba1\u7406\u548c\u63a8\u9001\u901a\u77e5\u7b49\u64cd\u4f5c\u3002\u5728\u4f7f\u7528\u5e94\u7528\u7a0b\u5e8f\u6807\u8bc6\u65f6\uff0c\u6211\u4eec\u901a\u5e38\u4f7f\u7528Xcode\u5de5\u5177\u4e2d\u7684\u201cBundle Identifier\u201d\u6765\u8bbe\u7f6e\u5e94\u7528\u7a0b\u5e8f\u7684\u552f\u4e00\u6807\u8bc6\u7b26\uff0c\u4f8b\u5982\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>com.example.app<\/p>\n<p>&#8220;`<\/p>\n<p>3. \u63a8\u9001\u901a\u77e5\u6807\u8bc6<\/p>\n<p>\u5728iOS\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u63a8\u9001\u901a\u77e5\u6807\u8bc6\u901a\u5e38\u7528\u4e8e\u552f\u4e00\u6807\u8bc6\u63a8\u9001\u901a\u77e5\uff0c\u4ee5\u4fbf\u4e8e\u8fdb\u884c\u63a8\u9001\u901a\u77e5\u7ba1\u7406\u548c\u5904\u7406\u7b49\u64cd\u4f5c\u3002\u5728\u4f7f\u7528\u63a8\u9001\u901a\u77e5\u6807\u8bc6\u65f6\uff0c\u6211\u4eec\u901a\u5e38\u4f7f\u7528APNS\uff08Apple Pu<a href=\"https:\/\/www.yimenapp.net\/dabao-561.html\">jetbrains \u751f\u6210exe<\/a>sh Notification Service\uff09\u6765\u53d1\u9001\u548c\u63a5\u6536\u63a8\u9001\u901a\u77e5\uff0c\u5e76\u4f7f\u7528\u201cdevice token\u201d\u6765\u6807\u8bc6\u7528\u6237\u8bbe\u5907\u548c\u5e94\u7528\u7a0b\u5e8f\uff0c\u4f8b\u5982\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>&#8211; (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {<\/p>\n<p>    NSString *token = [deviceToken description];<\/p>\n<p>    token = [token stringByReplacingOccurrencesOfString:@&#8221;<\/p>\n<p>    token = [token stringByReplacingOccurrencesOfString:@&#8221;&gt;&#8221; withString:@&#8221;&#8221;];<\/p>\n<p>    token = [token stringByReplacingOccurrencesOfString:@&#8221; &#8221; withString:@&#8221;&#8221;];<\/p>\n<p>    NSLog(@&#8221;deviceToken:%@&#8221;, token);<\/p>\n<p>}<\/p>\n<p>&#8220;`<\/p>\n<p>\u4e8c\u3001IPA<\/p>\n<p>IPA\u662fiOS\u5e94\u7528\u7a0b\u5e8f\u7684\u5b89\u88c5\u5305\u683c\u5f0f\uff0c\u5b83\u662f\u4e00\u79cd\u7531\u82f9\u679c\u516c\u53f8\u5236\u5b9a\u7684\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u683c\u5f0f\uff0c\u7528\u4e8e\u5c06\u5f00\u53d1\u8005\u5f00\u53d1\u7684\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u4e00\u4e2a\u53ef\u5b89\u88c5\u7684\u6587\u4ef6\uff0c\u4ee5\u4fbf\u4e8e\u4e0a\u4f20\u5230App Store\u6216\u901a\u8fc7iTunes\u8fdb\u884c\u5b89\u88c5\u3002\u5728iOS\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u4e2d\uff0cIPA\u901a\u5e38\u7528\u4e8e\u5e94\u7528\u7a0b\u5e8f\u7684\u6d4b\u8bd5\u548c\u5206\u53d1\u7b49\u65b9\u9762\u3002<\/p>\n<p>\u5728iOS\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u4e2d\uff0c\u6211\u4eec\u901a\u5e38\u4f7f\u7528Xcode\u5de5\u5177\u6765\u751f\u6210\u548c\u6253\u5305IPA\u6587\u4ef6\uff0c\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<p>1. \u9009\u62e9\u201cProduct\u201d-&gt;\u201cArchive\u201d\u83dc\u5355\uff0c\u5c06\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u4e00\u4e2aArchive\u6587\u4ef6\u3002<\/p>\n<p>2. \u5728Organizer\u7a97\u53e3\u4e2d\uff0c\u9009\u62e9\u521a\u521a\u6253\u5305\u597d\u7684Archive\u6587\u4ef6\uff0c\u70b9\u51fb\u201cExport\u201d\u6309\u94ae\uff0c\u9009\u62e9\u201cSave for Ad Hoc Deployment\u201d\u6216\u201cSave for Enterprise Deployment\u201d\u9009\u9879\uff0c\u4ee5\u4fbf\u4e8e\u751f\u6210IPA\u6587\u4ef6\u3002<\/p>\n<p>3. \u5728Export Options\u7a97\u53e3\u4e2d\uff0c\u9009\u62e9\u5408\u9002\u7684\u9009\u9879\u8fdb\u884c\u914d\u7f6e\uff0c\u4f8b\u5982\uff1a\u9009\u62e9\u5408\u9002\u7684Provisioning Profile\u3001Distribution Certificate\u548cApp <\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.cdn.yimenapp.com\/2023-03\/31\/16\/29731292916.jpg\" \/><\/figure>\n<\/p>\n<p>Icon\u7b49\u3002<\/p>\n<p>4. \u70b9\u51fb\u201cNext\u201d\u6309\u94ae\uff0c\u9009\u62e9\u5408\u9002\u7684\u8f93\u51fa\u8def\u5f84\u548c\u6587\u4ef6\u540d\uff0c\u4ee5\u4fbf\u4e8e\u751f\u6210IPA\u6587\u4ef6\u3002<\/p>\n<p>\u603b\u4e4b\uff0cUUID\u548cIPA\u662fiOS\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u4e2d\u975e\u5e38\u91cd\u8981\u7684\u6982\u5ff5\uff0c\u5b83\u4eec\u53ef\u4ee5\u4fdd\u8bc1\u5e94\u7528\u7a0b\u5e8f\u7684\u8d28\u91cf\u548c\u7a33\u5b9a\u6027\uff0c\u540c\u65f6\u4e5f\u53ef\u4ee5\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u7684\u6d4b\u8bd5\u548c\u5206\u53d1\u6548\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728iOS\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u4e2d\uff0c\u6d4b\u8bd5\u662f\u975e\u5e38\u91cd\u8981\u7684\u4e00\u73af\uff0c\u5b83\u53ef\u4ee5\u4fdd\u8bc1\u5e94\u7528\u7a0b\u5e8f\u7684\u8d28\u91cf\u548c\u7a33\u5b9a\u6027\u3002\u800c\u5728\u6d4b\u8bd5\u4e2d\uff0cUUID\u548cIPA\u662f\u4e24\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u6982\u5ff5\u3002\u4e00\u3001UUIDUUID\u662fUniversally Unique Iden<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[7010,7009,1775,865,922],"class_list":["post-5043","post","type-post","status-publish","format-standard","hentry","category-appshangjia","tag-associated-domains","tag-vueapp","tag-1775","tag-865","tag-922"],"_links":{"self":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/5043","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/comments?post=5043"}],"version-history":[{"count":0,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/5043\/revisions"}],"wp:attachment":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/media?parent=5043"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/categories?post=5043"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/tags?post=5043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}