{"id":6126,"date":"2023-09-28T16:12:46","date_gmt":"2023-09-28T08:12:46","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=6126"},"modified":"2023-09-28T16:12:46","modified_gmt":"2023-09-28T08:12:46","slug":"%e5%ae%89%e5%8d%93%e5%88%86%e5%8f%91%e5%b9%b3%e5%8f%b0%e8%ae%be%e7%bd%ae%e5%af%86%e7%a0%81%e6%80%8e%e4%b9%88%e5%81%9a%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/6126\/","title":{"rendered":"\u5b89\u5353\u5206\u53d1\u5e73\u53f0\u8bbe\u7f6e\u5bc6\u7801\u600e\u4e48\u505a\uff1f"},"content":{"rendered":"

\u5b89\u5353\u5206\u53d1\u5e73\u53f0\u662f\u4e00\u79cd\u53ef\u4ee5\u7528\u6765\u53d1\u5e03\u548c\u5206\u53d1\u5b89\u5353\u5e94\u7528\u7684\u5e73\u53f0\uff0c\u5b83\u5141\u8bb8\u5f00\u53d1\u8005\u5c06\u81ea\u5df1\u7684\u5e94\u7528\u7a0b\u5e8f\u4e0a\u4f20\u5230\u5e73\u53f0\u4e0a\uff0c\u5e76\u4e14\u53ef\u4ee5\u9009\u62e9\u5c06\u8fd9\u4e9b\u5e94\u7528\u7a0b\u5e8f\u5411\u516c\u4f17\u53d1\u5e03\u6216\u8005\u4ec5\u9650\u4e8e\u7279\u5b9a\u7528\u6237\u8fdb\u884c\u5206\u53d1\u3002\u4e3a\u4e86\u4fdd\u62a4\u5e94\u7528\u7a0b\u5e8f\u7684\u5b89\u5168\u6027\uff0c\u5b89\u5353\u5206\u53d1\u5e73\u53f0\u901a\u5e38\u4f1a\u8981\u6c42\u5f00\u53d1\u8005\u4e3a\u5176\u5e94\u7528\u7a0b\u5e8f\u8bbe\u7f6e\u5bc6\u7801\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5b89\u5353\u5206\u53d1\u5e73\u53f0\u8bbe\u7f6e\u5bc6\u7801\u7684\u539f\u7406\u548c\u6b65\u9aa4\u3002<\/p>\n

\u4e00\u3001\u5b89\u5353\u5206\u53d1\u5e73\u53f0\u8bbe\u7f6e\u5bc6\u7801\u7684\u539f\u7406<\/p>\n

\u5728\u5b89\u5353\u5206\u53d1\u5e73\u53f0\u4e0a\u8bbe\u7f6e\u5e94\u7528\u7a0b\u5e8f\u5bc6\u7801\u7684\u539f\u7406\u662f\u5229\u7528\u4e86\u5e94\u7528\u7a0b\u5e8f\u5305\u7b7e\u540d\u7684\u673a\u5236\u3002\u5f53\u5f00\u53d1\u8005\u4e3a\u81ea\u5df1\u7684\u5e94\u7528\u7a0b\u5e8f\u7b7e\u540d\u65f6\uff0c\u53ef\u4ee5\u9009\u62e9\u751f\u6210\u4e00\u4e2a\u5bc6\u94a5\u5e93\u3002\u8fd9\u4e2a\u5bc6\u94a5\u5e93\u5305\u542b\u4e86\u4e00\u4e2a\u79c1\u94a5\u548c\u4e00\u4e2a\u516c\u94a5\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u4f7f\u7528\u79c1\u94a5\u5bf9\u5e94\u7528\u7a0b\u5e8f\u8fdb\u884c\u7b7e\u540d\uff0c\u800c\u5176\u4ed6\u4eba\u53ea\u80fd\u4f7f\u7528\u516c\u94a5\u6765\u9a8c\u8bc1\u5e94\u7528\u7a0b\u5e8f\u7684\u7b7e\u540d\u662f\u5426\u6709\u6548\u3002\u5728\u5b89\u5353\u5206\u53d1\u5e73\u53f0\u4e0a\u8bbe\u7f6e\u5bc6\u7801\u65f6\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5c06\u5bc6\u7801\u4e0e\u79c1\u94a5\u76f8\u5173\u8054\uff0c\u8fd9\u6837\u53ea\u6709\u77e5\u9053\u5bc6\u7801\u7684\u7528\u6237\u624d\u80fd\u591f\u4f7f\u7528\u79c1\u94a5\u5bf9\u5e94\u7528\u7a0b\u5e8f\u8fdb\u884c\u7b7e\u540d\u3002<\/p>\n

\u4e8c\u3001\u5b89\u5353\u5206\u53d1\u5e73\u53f0\u8bbe\u7f6e\u5bc6\u7801\u7684\u6b65\u9aa4<\/p>\n

1. \u751f\u6210\u5bc6\u94a5\u5e93<\/p>\n

\u5728\u8bbe\u7f6e\u5e94\u7528\u7a0b<\/p>\n

<\/figure>\n<\/p>\n

\u5e8f\u5bc6\u7801\u4e4b\u524d\uff0c\u5f00\u53d1\u8005\u9700\u8981\u5148\u751f\u6210\u4e00\u4e2a\u5bc6\u94a5\u5e93\u3002\u53ef\u4ee5\u4f7f\u7528Java keytool\u5de5\u5177\u6765\u751f\u6210\u5bc6\u94a5\u5e93\u3002\u4ee5\u4e0b\u662f\u751f\u6210\u5bc6\u94a5\u5e93\u7684\u547d\u4ee4\uff1a<\/p>\n

keytool -genkey -alias myalias -keyalg RSA -keystore mykeystore.keystore<\/p>\n

\u5176\u4e2d\uff0cmyalias\u662f\u5bc6\u94a5\u5e93\u7684\u522b\u540d\uff0cRSA\u662f\u5bc6\u94a5\u7b97\u6cd5\uff0cmykeystore.keystore\u662f\u5bc6\u94a5\u5e93\u7684\u6587\u4ef6\u540d\u3002<\/p>\n

2. \u5728Android Studio\u4e2d\u914d\u7f6e\u5bc6\u94a5\u5e93<\/p>\n

\u5728Android Studio\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u6765\u914d\u7f6e\u5bc6\u94a5\u5e93\uff1a<\/p>\n

1\uff09\u5728\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u7684build.gradle\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n

“`<\/p>\n

android {<\/p>\n

…<\/p>\n

defaultConfig {<\/p>\n

…<\/p>\n

signingConfigs {<\/p>\n

release {<\/p>\n

storeFile file(“mykeystore.keystore”) \/\/ \u5bc6\u94a5\u5e93\u6587\u4ef6\u8def\u5f84<\/p>\n

storePassword “mypassword” \/\/ \u5bc6\u94a5\u5e93\u5bc6\u7801<\/p>\n

keyAlias “myalias” \/\/ \u522b\u540d<\/p>\n

keyPassword “mypassword” \/\/ \u522b\u540d\u5bc6\u7801<\/p>\n

}<\/p>\n

}<\/p>\n

…<\/p>\n

}<\/p>\n

…<\/p>\n

}<\/p>\n

“`<\/p>\n

\u5176\u4e2d\uff0cmykeystore.keystore\u662f\u5bc6\u94a5\u5e93\u6587\u4ef6\u7684\u8def\u5f84\uff0cmypassword\u662f\u5bc6\u94a5\u5e93\u5bc6\u7801\uff0cmyalias\u662f\u522b\u540d\uff0cmypassword\u662f\u522b\u540d\u5bc6\u7801\u3002<\/p>\n

2\uff09\u5728\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u7684gradle.properties\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n

“`<\/p>\n

MYAPP_RELEASE_STORE_FILE=mykeystore.keystore<\/p>\n

MYAPP_RELEASE_KEY_ALIAS=myalias<\/p>\n

MYAPP_RELEASE_STORE_PASSWORD=mypassword<\/p>\n

MYAPP_RELEASE_KEY_PASSWORD=mypassword<\/p>\n

“`<\/p>\n

3. \u5728\u5b89\u5353\u5206\u53d1\u5e73\u53f0\u8bbe\u7f6e\u5bc6\u7801<\/p>\n

\u5728\u5b89\u5353\u5206\u53d1\u5e73\u53f0\u4e0a\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u6765\u8bbe\u7f6e\u5e94\u7528\u7a0b\u5e8f\u5bc6\u7801\uff1a<\/p>\n

1\uff09\u767b\u5f55\u5230\u5b89\u5353\u5206\u53d1\u5e73\u53f0\u3002<\/p>\n

2\uff09\u9009\u62e9\u8981\u8bbe\u7f6e\u5bc6\u7801\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n

3\uff09\u5728\u5e94\u7528\u7a0b\u5e8f\u8bbe\u7f6e\u754c\u9762\u4e2d\uff0c\u627e\u5230\u7b7e\u540d\u8bc1\u4e66\u8bbe\u7f6e\u9009\u9879\u3002<\/p>\n

4\uff09\u70b9\u51fb\u201c\u8bbe\u7f6e\u5bc6\u7801\u201d\u6309\u94ae\u3002<\/p>\n

5\uff09\u8f93\u5165\u5bc6\u7801\u5e76\u4fdd\u5b58\u8bbe\u7f6e\u3002<\/p>\n

6\uff09\u4e0b\u8f7d\u7b7e\u540d\u8bc1\u4e66\u5e76\u4f7f\u7528\u5bc6\u7801\u8fdb\u884c\u7b7e\u540d\u3002<\/p>\n

\u4e09\u3001\u603b\u7ed3<\/p>\n

\u5b89\u5353\u5206\u53d1\u5e73\u53f0\u8bbe\u7f6eapp\u5206\u53d1\u7f51\u7ad9\u5982\u4f55\u9632\u5c01<\/a>\u5bc6\u7801\u7684\u539f\u7406\u662f\u5229\u7528\u4e86\u5e94\u7528\u7a0b\u5e8f\u5305\u7b7e\u540d\u7684\u673a\u5236\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u751f\u6210\u4e00\u4e2a\u5bc6\u94a5\u5e93\uff0c\u5e76\u5c06\u7f51\u7ad9\u5c01\u88c5\u6253\u5305\u53ca\u82f9\u679c\u5185\u6d4b\u5206\u53d1<\/a>\u5bc6\u7801\u4e0e\u79c1\u94a5\u76f8\u5173\u8054\u3002\u5728Android Studio\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u5bc6\u94a5\u5e93\u6765\u5b9e\u73b0\u5bc6\u7801\u7684\u8bbe\u7f6e\u3002\u5728\u5b89\u5353\u5206\u53d1\u5e73\u53f0\u4e0a\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u7b7e\u540d\u8bc1\u4e66\u5bc6\u7801\u6765\u4fdd\u62a4\u5e94\u7528\u7a0b\u5e8f\u7684\u5b89\u5168\u6027\u3002<\/p>\n

\u4e00\u95e8APP\u8bc1\u4e66\u5236\u4f5c\u5de5\u5177(https:\/\/platform.yimenapp.com\/)\u63d0\u4f9bAPP\u8bc1\u4e66\u5728\u7ebf\u5236\u4f5c\uff0c\u652f\u6301\u82f9\u679c\u8bc1\u4e66\u3001\u5b89\u5353\u8bc1\u4e66\u5728\u7ebf\u4e00\u952e\u5feb\u6377\u5236\u4f5c\u3002\u5de5\u5177\u5b8c\u5168\u514d\u8d39\uff0c\u6ce8\u518c\u6210\u4e3a\u4e00\u95e8APP\u5f00\u53d1\u8005\u5373\u53ef\u4f7f\u7528\uff0c\u5168\u4e2d\u6587\u5316\u4e91\u7aefAPP\u8bc1\u4e66\u5de5\u5177\u3002
\n\u4e00\u952e\u5236\u4f5cIOS\u82f9\u679c\u8bc1\u4e66\uff0c\u5305\u542bappstore\u4e0a\u67b6\u8bc1\u4e66\u3001\u5f00\u53d1\u73af\u5883\u6d4b\u8bd5\u8bc1\u4e66\u3001ADhoc\u751f\u4ea7\u73af\u5883\u6d4b\u8bd5\u8bc1\u4e66\u3001\u5728\u7ebf\u751f\u6210P12\u5f00\u53d1\u8005\u8bc1\u4e66\u8bc1\u4e66\uff0cP12\u63a8\u9001\u8bc1\u4e66\u3001P8\u63a8\u9001\u8bc1\u4e66\uff0c\u5feb\u6377\u7ed1\u5b9aUDID\u3001\u81ea\u5b9a\u4e49\u5305\u540dBundle ID\u3001\u5728\u7ebf\u83b7\u53d6\u63cf\u8ff0\u6587\u4ef6\uff1b
\n\u4e00\u952e\u5236\u4f5c\u5b89\u5353\u8bc1\u4e66\uff0c\u652f\u6301\u81ea\u5b9a\u4e49\u5b89\u5353\u5305\u540d\u3001\u7b7e\u540d\u6587\u4ef6\u5bc6\u7801(storepass)\u3001\u522b\u540d(alias)\u3001\u522b\u540d\u5bc6\u7801(keypass)\u3001\u516c\u53f8\/\u673a\u6784\u540d\u79f0 (O)\u3001\u90e8\u95e8 (OU)\u3001\u56fd\u5bb6\/\u5730\u533a (C)\u3001\u7701\u4efd (ST)\u3001\u57ce\u5e02 (L)\u3001\u90ae\u7bb1 (E)\u3001\u4ee5\u53ca\u5b89\u5353\u8bc1\u4e66\u6709\u6548\u671f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5b89\u5353\u5206\u53d1\u5e73\u53f0\u662f\u4e00\u79cd\u53ef\u4ee5\u7528\u6765\u53d1\u5e03\u548c\u5206\u53d1\u5b89\u5353\u5e94\u7528\u7684\u5e73\u53f0\uff0c\u5b83\u5141\u8bb8\u5f00\u53d1\u8005\u5c06\u81ea\u5df1\u7684\u5e94\u7528\u7a0b\u5e8f\u4e0a\u4f20\u5230\u5e73\u53f0\u4e0a\uff0c\u5e76\u4e14\u53ef\u4ee5\u9009\u62e9\u5c06\u8fd9\u4e9b\u5e94\u7528\u7a0b\u5e8f\u5411\u516c\u4f17\u53d1\u5e03\u6216\u8005\u4ec5\u9650\u4e8e\u7279\u5b9a\u7528\u6237\u8fdb\u884c\u5206\u53d1\u3002\u4e3a\u4e86\u4fdd\u62a4\u5e94\u7528\u7a0b\u5e8f\u7684\u5b89\u5168\u6027\uff0c\u5b89\u5353\u5206\u53d1\u5e73\u53f0\u901a<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[11244,1099,693,12,485],"topic":[],"class_list":["post-6126","post","type-post","status-publish","format-standard","hentry","category-appff","tag-app","tag-1099","tag-693","tag-12","tag-485"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/6126","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\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=6126"}],"version-history":[{"count":0,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/6126\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=6126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=6126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=6126"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=6126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}