{"servererror":"","status":1,"message":[{"title":"CocoaPods\u521b\u5efa\u516c\u6709\u5e93\u548c\u79c1\u6709\u5e93\u7684\u6b65\u9aa4\u603b\u7ed3","date":"2019-03-20","content":"<\/span>

\u524d\u8a00\uff1a<\/h3>

\u8be5\u6587\u7ae0\u9ed8\u8ba4\u4f60\u5df2\u7ecf\u4f1a\u7528CocoaPods\uff0c\u5e76\u4e14\u5df2\u7ecf\u5b89\u88c5\u597dCocoaPods\u3002\u4e3b\u8981\u8bf4\u6bcf\u4e2a\u521b\u5efa\u6b65\u9aa4\uff0c\u6309\u987a\u5e8f\u8ddf\u7740\u6b65\u9aa4\u64cd\u4f5c\u5373\u53ef\uff0c\u5982\u679c\u662f\u8be6\u7ec6\u7684\u8bb2\u89e3\u63a8\u8350\u8fd9\u4e24\u4e2a\u6587\u7ae0\u300aCocoaPods \u516c\u6709\u4ed3\u5e93\u7684\u521b\u5efa\uff08\u8d85\u8be6\u7ec6\uff09<\/a>\u300b\uff0c\u300aCocoaPods\u521b\u5efa\u516c\u6709\u548c\u79c1\u6709Pod\u5e93\u65b9\u6cd5\u603b\u7ed3<\/a>\u300b\u3002\u5982\u679c\u5b89\u88c5\u6709\u95ee\u9898\uff0c\u4e0d\u59a8\u770b\u770b\u8fd9\u4e2a\u300acocoapods\u5b89\u88c5\u4e2d\u95f4\u6ce8\u610f\u7684\u4e8b\u9879<\/a>\u300b\u3002<\/p><\/span>

\u51c6\u5907\u5de5\u4f5c<\/h2><\/span>

1\u3001\u6ce8\u518c CocoaPods \u8d26\u53f7\uff08\u5982\u679c\u5df2\u6ce8\u518c\u8bf7\u5ffd\u7565\u8fd9\u4e00\u6b65\uff09<\/h3>

\u628a\u547d\u4ee4\u884c\u884c\u4e2d\u7684email<\/code>\u548cuser_name <\/code>\u6362\u6210\u4f60\u81ea\u5df1\u7684\u90ae\u7bb1\u548c\u7528\u6237\u540d<\/p>

pod trunk register email 'user_name' --verbose<\/code><\/pre>

\u6536\u5230\u90ae\u4ef6\u6fc0\u6d3b\u4e4b\u540e\uff0c\u53ef\u4ee5\u6267\u884c\u4e0b\u9762\u547d\u4ee4\u67e5\u770b\u4f60\u7684\u6ce8\u518c\u4fe1\u606f<\/p>

pod trunk me<\/code><\/pre><\/span>

\u793a\u4f8b\u5e93\u7ed3\u6784<\/h2>

\u5171\u4eab\u5e93\u9700\u8981\u4e09\u4e2a\u5fc5\u4e0d\u53ef\u5c11\u7684\u90e8\u5206:<\/p>

  1. \u5171\u4eab\u6587\u4ef6\u5939 (\u6587\u4ef6\u5939\u5b58\u653e\u7740\u4f60\u8981\u5171\u4eab\u7684\u5185\u5bb9, \u4e5f\u5c31\u662f\u5176\u4ed6\u4ebapod\u5f97\u5230\u7684\u6587\u4ef6);<\/li>
  2. LICENSE\u6587\u4ef6 (\u9ed8\u8ba4\u4e00\u822c\u9009\u62e9MIT\uff0c\u5728github\u521b\u5efa\u4ed3\u5e93\u7684\u65f6\u5019\u53ef\u4ee5\u9009\u62e9);<\/li>
  3. \u5e93\u63cf\u8ff0\u6587\u4ef6.podspec(\u672c\u5e93\u7684\u5404\u9879\u4fe1\u606f\u63cf\u8ff0, \u9700\u8981\u63d0\u4ea4\u7ed9CocoaPods, pod\u901a\u8fc7\u8fd9\u4e2a\u6587\u4ef6\u67e5\u627e\u5230\u4f60\u5171\u4eab\u7684\u5e93).<\/li><\/ol>

    \u4ee5HDShareTools<\/code>\u4e3a\u4f8b\uff0c\u5f53\u524d\u7684\u9879\u76ee\u7ed3\u6784\u5982\u4e0b\u56fe\uff0c\u8fd9\u4e2a\u4e3b\u8981\u662f\u4e3a\u4e86\u5bf9\u5e94\u5e93\u63cf\u8ff0\u6587\u4ef6\u91cc\u9762\u6d89\u53ca\u5230\u7684\u6587\u4ef6\u8def\u5f84\uff0c\u6211\u60f3\u4e0a\u4f20\u7684\u662fHDShareTools.h<\/code>\u548cHDShareTools.m<\/code>\u3002<\/p>

    \"\u5c4f\u5e55\u5feb\u7167<\/p><\/span>

    \u4e00\u3001\u521b\u5efa\u516c\u6709\u5e93<\/h2><\/span>

    1\u3001\u521b\u5efagithub\u7684\u4ed3\u5e93\uff0c\u5f97\u5230\u5e93\u5730\u5740\u548cLICENSE\u6587\u4ef6<\/h3>

    \u5982\u56fe\u6240\u793a\uff0c\u521b\u5efa\u7684\u65f6\u5019\u53ef\u4ee5\u9009\u62e9\u8bc1\u4e66\u4e3aMIT<\/p>

    \"Jietu20190320-172557.png\"<\/p><\/span>

    2\u3001\u53ef\u4ee5\u624b\u52a8\u521b\u5efa\u4e00\u4e2a\u7eaf\u6587\u672c\u6587\u4ef6\uff0c\u547d\u540d\u4e3aHDShareTools.podspec<\/code><\/h3>
    Pod::Spec.new do |s|\ns.name = 'HDShareTools'\ns.version = '1.0.0'\ns.license= { :type => "MIT", :file => "LICENSE" }\ns.summary = 'HDShareTools,\u5c01\u88c5sharesdk\u548c\u7cfb\u7edf\u5206\u4eab'\ns.homepage = 'https:\/\/github.com\/DamonHu\/HDShareTools'\ns.authors = { 'DamonHu' => 'dong765@qq.com' }\ns.source = { :git => "https:\/\/github.com\/DamonHu\/HDShareTools.git", :tag => s.version}\ns.requires_arc = true\ns.ios.deployment_target = '9.0'\ns.source_files = "HDShareTools\/HDShareTools\/*.{h,m}"\ns.frameworks = 'UIKit','Foundation'\nend<\/code><\/pre>

    \u5982\u679c\u8fd8\u8981\u6709\u4f9d\u8d56\u5176\u4ed6\u5e93, \u52a0\u4e0a s.dependency '\u5e93\u540d'<\/code> \u5373\u53ef\uff0c\u4f8b\u5982<\/p>

    s.dependency 'AFNetworking', '~>3.1.0'\ns.dependency 'SVProgressHUD'<\/code><\/pre>

    \u5982\u679c\u8fd8\u60f3\u4e0a\u4f20\u5176\u4ed6\u6587\u4ef6\uff0c\u5728s.source_files<\/code>\u540e\u9762\u6839\u636e\u8def\u5f84\u8ffd\u52a0\u5373\u53ef\uff0c\u7c7b\u4f3c\u4e8es.frameworks<\/code>\u7684\u683c\u5f0f\u3002<\/p>

    \u8fd9\u4e2a\u662f\u6700\u7b80\u5355\u7684\u521b\u5efa.podspec\u7684\u65b9\u6848\uff0c\u5f53\u7136\u4f60\u53ef\u4ee5\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u521b\u5efa\u5b8c\u6574\u7248\uff0c\u4f46\u662f\u914d\u7f6e\u9879\u53ef\u80fd\u4f1a\u8ba9\u4f60\u5934\u75bc<\/p>

    pod spec create HDShareTools<\/code><\/pre><\/span>

    3\u3001\u68c0\u67e5.podspec\u914d\u7f6e\u6587\u4ef6\u662f\u5426\u53ef\u7528<\/h3>

    \u68c0\u67e5\u547d\u4ee4\u53ef\u4ee5\u52a0\u4e0a--allow-warnings<\/code>\u5ffd\u7565\u8b66\u544a\uff0c\u4e5f\u53ef\u4ee5\u4e0d\u52a0\uff0c\u4e0d\u52a0\u7684\u8bdd\u8fd9\u4e2a\u5ffd\u7565\u8b66\u544a\u7684\uff0c\u5982\u679c\u6709\u8b66\u544a\u7684\u8bdd\u4f1a\u63d0\u793a\uff0c\u8fd9\u4e2a\u770b\u4e2a\u4eba\u9009\u62e9\u3002<\/p>

    pod lib lint --allow-warnings<\/code><\/pre>

    \u5f53\u770b\u5230passed validation<\/code>\u5c31\u8bf4\u660e\u662f\u6b63\u786e\u7684<\/p><\/span>

    4\u3001\u5c06\u9879\u76ee\u4ee3\u7801\u4e0a\u4f20\u5230github\uff0c\u53d1\u5e03release\u7248\u672c<\/h3>

    \u5c06\u9879\u76ee\u4ee3\u7801\u4e0a\u4f20\u5230github\uff0c\u540c\u65f6\u53d1\u5e03\u4e00\u4e2arelease\u7248\u672c\u548c\u914d\u7f6e\u6587\u4ef6\u91cc\u9762\u5199\u7684s.version<\/code>\u7684\u7248\u672c\u4e00\u81f4<\/p>

    \"\u5c4f\u5e55\u5feb\u7167<\/p><\/span>

    5\u3001\u53d1\u5e03\u5230cocoapod<\/h3>

    \u5728\u9879\u76ee\u76ee\u5f55\u4e0b\u6267\u884c\u4e0b\u9762\u547d\u4ee4\uff0c\u53d1\u5e03\u6210\u529f\u547d\u4ee4\u884c\u4f1a\u6709Congrats\u7684\u795d\u8d3a\u63d0\u793a<\/p>

    pod trunk push HDShareTools.podspec<\/code><\/pre>

    \u521a\u53d1\u5e03\u5b8c\u53ef\u80fd\u641c\u4e0d\u5230\uff0c\u9700\u8981\u7b49\u51e0\u4e2a\u5c0f\u65f6\u7684\u7f13\u5b58\u3002\u66f4\u65b0\u5e93\u7684\u6b65\u9aa4\u548c\u53d1\u5e03\u662f\u4e00\u6837\u7684\u3002<\/p>

    \u5982\u679c\u8fc7\u4e86\u5f88\u4e45\u8fd8\u6ca1\u641c\u5230\uff0c\u53ef\u4ee5\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u884c\u5237\u65b0\u4e00\u4e0b\u672c\u5730\u7684pod\u4ed3\u5e93<\/p>

    pod setup<\/code><\/pre><\/span>

    \u4e8c\u3001\u521b\u5efa\u79c1\u6709\u5e93<\/h2>

    \u79c1\u6709\u5e93\u548c\u516c\u5171\u5e93\u7684\u9879\u76ee\u5185\u5bb9\u521b\u5efa\u90fd\u662f\u4e00\u6837\u7684\uff0c\u4e0d\u4e00\u6837\u7684\u662f\u8bfb\u53d6\u7684\u914d\u7f6e\u4e0d\u540c\u3002\u6bd4\u516c\u6709\u5e93\u591a\u4e00\u6b65\u662f\u5148\u521b\u5efa\u4e00\u4e2a\u79c1\u6709\u7684\u7d22\u5f15\u5e93\uff0c\u9632\u6b62\u548c\u516c\u5171\u7684\u76f8\u4e92\u5f71\u54cd<\/p><\/span>

    1\u3001\u914d\u7f6egithub\uff0c\u5141\u8bb8\u4f7f\u7528SSH\u8bbf\u95ee<\/h3>

    \u5728github\u7684\u8bbe\u7f6e\u9875\u9762\uff0c\u6dfb\u52a0SSH Keys\uff0c\u5982\u679c\u4e0d\u77e5\u9053\u600e\u4e48\u751f\u6210\uff0c\u53ef\u4ee5\u53c2\u8003\u8fd9\u4e2a\u6587\u7ae0\u300aGIT\u7ecf\u5e38\u4f7f\u7528\u7684SSH keys\u5728MAC\u4e0a\u7684\u751f\u6210\u548c\u4f7f\u7528<\/a>\u300b<\/p>

    \"Jietu20190320-180721.png\"<\/p><\/span>

    2\u3001github\u4e0a\u9762\u521b\u5efa\u4e00\u4e2a\u79c1\u6709\u7684\u7d22\u5f15\u5e93<\/h3>

    \u4f8b\u5982\u60f3\u8981\u521b\u5efa\u7684\u79c1\u6709\u7d22\u5f15\u5e93\u7684\u540d\u79f0\u662fHDPrivateCocoaTools<\/code><\/p>

    \"Jietu20190320-180341.png\"<\/p><\/span>

    3\u3001\u672c\u5730\u901a\u8fc7\u547d\u4ee4\u884c\u6dfb\u52a0git\u521b\u5efa\u7684\u7d22\u5f15\u5e93<\/h3>

    \"\u5c4f\u5e55\u5feb\u7167<\/p>

    \u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u884c\u53bb\u5728\u672c\u5730\u6dfb\u52a0\u79c1\u6709\u7d22\u5f15\u5e93\uff0c\u628aGIT\u7684SSH\u5730\u5740\u66ff\u6362\u6210\u4f60\u7684\u521a\u624d\u521b\u5efa\u7684\u79c1\u6709\u7d22\u5f15\u5e93\u7684\u5730\u5740<\/p>

    pod repo add HDPrivateCocoaTools GIT\u7684SSH\u5730\u5740<\/code><\/pre>

    \u6dfb\u52a0\u6210\u529f\u540e\u53ef\u4ee5\u5728\u672c\u5730\u7684\/.cocoapods\/repos\/\u76ee\u5f55\u4e0b\u53ef\u4ee5\u770b\u5230\u5b98\u65b9\u7684master\u548c\u521a\u521a\u52a0\u5165\u7684HDPrivateCocoaTools\u8fd9\u4e24\u4e2a\u7d22\u5f15\u5e93\u5206\u652f\u3002<\/p><\/span>

    4\u3001\u521b\u5efa\u79c1\u6709\u5e93<\/h3>

    \u91cd\u590d\u521b\u5efa\u516c\u6709\u5e93\u76841\u30012\u30013\u30014\u6b65\u9aa4\uff0c\u53ea\u662f\u5728github\u521b\u5efaHDShareTools\u8fd9\u4e2a\u9879\u76ee\u7684\u65f6\u5019\uff0c\u5e93\u7c7b\u578b\u9009\u62e9private\u79c1\u6709\u3002<\/p>

    \u6267\u884c\u7b2c3\u6b65\u7684pod lib lint<\/code>\u68c0\u9a8c\u914d\u7f6e\u662f\u5426\u6b63\u786e\u7684\u65f6\u5019\uff0c\u4e5f\u8981\u50cf\u4e0b\u9762\u5199\u7684\u533a\u5206\uff1a\u5982\u679c\u79c1\u6709\u5e93\u6ca1\u6709\u4f9d\u8d56\u5176\u4ed6\u516c\u5f00\u5e93\uff0c\u5c31\u6267\u884c\u4e0a\u9762\u516c\u6709\u5e93\u7684\u7b2c3\u6b65\u5373\u53ef\u3002\u5982\u679c\u4f9d\u8d56\u4e86\u5176\u4ed6\u516c\u6709\u5e93\uff0c\u5219\u9700\u8981\u6dfb\u52a0\u4e0b\u9762\u6240\u8bf4\u7684--use-libraries<\/code>\u548c--sources<\/code>\u8fd9\u4e24\u4e2a\u540e\u7f00<\/p><\/span>

    5\u3001\u5c06\u79c1\u6709\u5e93\u6dfb\u52a0\u5230\u79c1\u6709\u7d22\u5f15\u5e93<\/h3><\/span>

    1. \u79c1\u6709\u5e93\u6ca1\u6709\u4f9d\u8d56\u5176\u4ed6\u516c\u5f00\u5e93<\/h4>

    \u79c1\u6709\u5e93HDShareTools\u5df2\u7ecf\u521b\u5efa\u597d\uff0c\u63a5\u4e0b\u6765\u5c31\u662f\u8981\u6dfb\u52a0\u5230\u4e0a\u9762\u521a\u521b\u5efa\u7684\u79c1\u6709\u7684\u7d22\u5f15\u5e93HDPrivateCocoaTools\u4e2d\u53bb\u3002\u6267\u884c\u4e0b\u9762\u547d\u4ee4\u884c\u5373\u53ef<\/p>

    pod repo push HDPrivateCocoaTools HDShareTools.podspec<\/code><\/pre>

    \u8fd9\u65f6\u5019\u4f1a\u8ba9\u4f60\u8f93\u5165\u4e4b\u524d\u6dfb\u52a0\u5230github\u540e\u53f0\u7684\u90a3\u4e2a\u79d8\u94a5\u7684\u5bc6\u7801\uff0c\u4f60\u8f93\u5165\u5373\u53ef\u66f4\u65b0\uff0c\u6267\u884c\u8fd9\u4e00\u6b65\u4f1a\u540c\u65f6\u66f4\u65b0\u4f60\u672c\u5730\u7684\u79c1\u6709\u7d22\u5f15\u5e93\uff0c\u540c\u65f6\u4e5f\u4f1a\u66f4\u65b0github\u7684\u79c1\u6709\u7d22\u5f15\u5e93\u5185\u5bb9\u3002<\/p><\/span>

    2. \u79c1\u6709\u5e93\u4f9d\u8d56\u4e86\u5176\u4ed6\u516c\u5f00\u5e93<\/h4>

    \u5982\u679c\u4f60\u8fd9\u4e2a\u79c1\u6709\u5e93\u4f9d\u8d56\u4e86\u5176\u4ed6\u7684\u516c\u6709\u5e93\uff0c\u5728\u6267\u884cpod lib lint<\/code>\u548cpod repo push<\/code>\u4f1a\u62a5\u4e0b\u9762\u8fd9\u4e2a\u9519<\/p>

    Encountered an unknown error (The 'Pods-App' target has transitive dependencies that include static binaries: ***<\/code><\/pre>

    \u8fd9\u65f6\u5019\u4f60\u6267\u884c\u8fd9\u4e24\u4e2a\u547d\u4ee4\u7684\u65f6\u5019\uff0c\u540e\u9762\u90fd\u8981\u52a0\u4e0a--use-libraries<\/code>\u548c--sources<\/code>\uff0c\u8fd9\u4e2asource\u4e00\u4e2a\u662f\u4f60\u7684\u79c1\u6709\u7d22\u5f15\u5e93\u7684ssh\u5730\u5740\uff0c\u4e00\u4e2a\u662fcocoapods\u7684\u5b98\u65b9\u516c\u5f00\u7d22\u5f15\u5e93\u5730\u5740\u3002pod lib lint<\/code>\u7684\u547d\u4ee4\u4e5f\u662f\u4e00\u6837\u7684\uff0c\u9700\u8981\u52a0\u4e0a\u8fd9\u4e24\u4e2a\u53d8\u91cf\u3002<\/p>

    \u4f8b\u5982:<\/p>

    pod repo push HDPrivateCocoaTools HDShareTools.podspec --sources='git@github.com:DamonHu\/HDPrivateCocoaTools.git,https:\/\/github.com\/CocoaPods\/Specs.git' --use-libraries --allow-warnings<\/code><\/pre><\/span>

    6\u3001\u79c1\u6709\u5e93\u7684\u4f7f\u7528<\/h3>

    \u8fdb\u884c\u5b8c\u7b2c\u4e94\u6b65\u79c1\u6709\u5e93\u5df2\u7ecf\u5b8c\u6210\u4e86\uff0c\u4f7f\u7528\u7684\u79c1\u6709\u5e93\u548c\u516c\u6709\u5e93\u7684\u533a\u522b\u5c31\u662f\uff1a\u4f7f\u7528\u79c1\u6709\u5e93\u9700\u8981\u5728\u9879\u76ee\u7684Podfile<\/code>\u6587\u4ef6\u5185\u5bb9\u524d\u6dfb\u52a0\u4e0b\u9762\u5185\u5bb9\u53bb\u6307\u5b9a\u7f51\u4e0a\u7684\u79c1\u6709\u5e93\u548c\u516c\u6709\u5e93\u5730\u5740\u3002\u5176\u4ed6\u4f7f\u7528\u662f\u4e00\u6837\u7684\u3002<\/p>

    source 'git@github.com:DamonHu\/HDPrivateCocoaTools.git'\nsource 'https:\/\/github.com\/CocoaPods\/Specs.git'<\/code><\/pre><\/span>

    \u7ed3\u675f<\/h2>

    \u6700\u540e\u7279\u522b\u8fd9\u4e24\u7bc7\u6587\u7ae0\u300aCocoaPods \u516c\u6709\u4ed3\u5e93\u7684\u521b\u5efa\uff08\u8d85\u8be6\u7ec6\uff09<\/a>\u300b\uff0c\u300aCocoaPods\u521b\u5efa\u516c\u6709\u548c\u79c1\u6709Pod\u5e93\u65b9\u6cd5\u603b\u7ed3<\/a>\u300b\uff0c\u5982\u679c\u4e0d\u8d76\u65f6\u95f4\uff0c\u53ef\u4ee5mark\u4e0b\u6765\u6162\u6162\u770b\u3002<\/p>","tags":[{"mid":"422","name":"cocoapods","slug":"cocoapods","type":"tag","description":null,"count":"3","order":"0","parent":"0","cid":"924","permalink":"http:\/\/www.hudongdong.com\/tag\/cocoapods\/","feedUrl":"http:\/\/www.hudongdong.com\/feed\/tag\/cocoapods\/","feedRssUrl":"http:\/\/www.hudongdong.com\/feed\/rss\/tag\/cocoapods\/","feedAtomUrl":"http:\/\/www.hudongdong.com\/feed\/atom\/tag\/cocoapods\/"},{"mid":"610","name":"\u516c\u6709\u5e93","slug":"\u516c\u6709\u5e93","type":"tag","description":null,"count":"1","order":"0","parent":"0","cid":"924","permalink":"http:\/\/www.hudongdong.com\/tag\/%E5%85%AC%E6%9C%89%E5%BA%93\/","feedUrl":"http:\/\/www.hudongdong.com\/feed\/tag\/%E5%85%AC%E6%9C%89%E5%BA%93\/","feedRssUrl":"http:\/\/www.hudongdong.com\/feed\/rss\/tag\/%E5%85%AC%E6%9C%89%E5%BA%93\/","feedAtomUrl":"http:\/\/www.hudongdong.com\/feed\/atom\/tag\/%E5%85%AC%E6%9C%89%E5%BA%93\/"},{"mid":"611","name":"\u79c1\u6709\u5e93","slug":"\u79c1\u6709\u5e93","type":"tag","description":null,"count":"1","order":"0","parent":"0","cid":"924","permalink":"http:\/\/www.hudongdong.com\/tag\/%E7%A7%81%E6%9C%89%E5%BA%93\/","feedUrl":"http:\/\/www.hudongdong.com\/feed\/tag\/%E7%A7%81%E6%9C%89%E5%BA%93\/","feedRssUrl":"http:\/\/www.hudongdong.com\/feed\/rss\/tag\/%E7%A7%81%E6%9C%89%E5%BA%93\/","feedAtomUrl":"http:\/\/www.hudongdong.com\/feed\/atom\/tag\/%E7%A7%81%E6%9C%89%E5%BA%93\/"}],"permalink":"http:\/\/www.hudongdong.com\/ios\/924.html"},{"title":"2018\u5e74\u5e74\u7ec8\u603b\u7ed3","date":"2019-02-14","content":"

    \u62d6\u4e86\u8fd9\u4e48\u4e45\u624d\u5f00\u59cb\u4e86\u4e0a\u5e74\u7684\u603b\u7ed3\uff0c\u6700\u4e3b\u8981\u7684\u539f\u56e0\u5c31\u662f\u4e0d\u77e5\u9053\u4ece\u4f55\u8bf4\u8d77\u3002<\/p>

    2018\u5e74\u516c\u53f8\u8f6c\u578b\uff0c\u89c1\u8bc1\u4e86\u5c0f\u4f19\u4f34\u7684\u52a0\u5165\u548c\u79bb\u5f00\uff0c\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7684\u7206\u53d1\uff0c\u4e5f\u5f00\u59cb\u53bb\u4e86\u89e3\u548c\u4f7f\u7528\u8fd9\u4e2a\u65b0\u7684\u5e73\u53f0\uff0c\u987a\u4fbf\u81ea\u5df1\u5229\u7528\u4e1a\u4f59\u65f6\u95f4\u5f00\u53d1\u4e86\u300a\u61d2\u4eba\u6e05\u5355iOS\u7248<\/a>\u300b\u3001\u300a\u61d2\u4eba\u4e66\u67b6iOS\u7248<\/a>\u300b\u548c\u300a\u61d2\u732a\u8ba1\u5212iOS\u7248\u300b\uff0c\u4e09\u4e2a\u8f6f\u4ef6\u672c\u610f\u662f\u4e3a\u4e86\u81ea\u5df1\u57f9\u517b\u5174\u8da3\uff0c\u8bb0\u5f55\u9605\u8bfb\u7684\u5de5\u5177\uff0c\u7ed3\u679c\u51fa\u4e4e\u610f\u6599\u7684\u6536\u83b7\u4e86\u5f88\u591a\u4eba\u7684\u70b9\u8d5e\u548c\u5efa\u8bae\uff0c\u539f\u6765\u52aa\u529b\u7684\u4eba\u4e5f\u5f88\u591a\uff0c\u540e\u7eed\u4f1a\u7ee7\u7eed\u4f18\u5316\uff0c\u5982\u679c\u4f60\u6709\u9700\u8981\uff0c\u53ef\u4ee5\u53bbApp Store\u641c\u7d22\u4e0b\u8f7d\u8bd5\u8bd5~<\/p>

    \u6700\u5927\u7684\u6536\u83b7\u5e94\u8be5\u662f\u9605\u8bfb\u4e86\u4e0d\u5c11\u4e66\u7c4d\uff0c\u7406\u8d22\u7684\u3001\u5f00\u53d1\u7684\u3001\u52b1\u5fd7\u7684\uff0c\u4e3a\u4e86\u8ba9\u6211\u7684\u61d2\u4eba\u4e66\u67b6\u5206\u4eab\u7ed9\u670b\u53cb\u7684\u9605\u8bfb\u66f2\u7ebf\u66f4\u597d\u770b\uff0c\u6e10\u6e10\u7684\u4e5f\u7b97\u7763\u4fc3\u4e86\u81ea\u5df1\u3002<\/p>

    \u751f\u6d3b\u4f9d\u65e7\u4e0d\u6539\uff0c\u5468\u516d\u5468\u5929\u559d\u559d\u8336\u3001\u770b\u770b\u4e66\u3001\u770b\u770b\u7535\u89c6\u3001\u89c1\u89c1\u670b\u53cb\uff0c\u53d1\u73b0\u8fd9\u79cd\u751f\u6d3b\u65b9\u5f0f\u5176\u5b9e\u4e5f\u633a\u597d\u7684\u3002<\/p><\/span>

    \u65b0\u5e74\u671f\u76fc<\/h3>

    \u65b0\u7684\u4e00\u5e74\uff0c\u65b0\u7684\u76ee\u6807\u3002\u4eca\u5e74\u6700\u5927\u7684\u76ee\u6807\u5927\u6982\u5c31\u662f\u8ba2\u5a5a\u3001\u65c5\u6e38\uff0c\u53bb\u770b\u770b\u5916\u8fb9\u7684\u65f6\u95f4\uff0c\u63d0\u9ad8\u4e00\u4e0b\u81ea\u5df1\u7684\u773c\u754c\u3002<\/p>

    [post cid=\"677\" \/]<\/p>","tags":[],"permalink":"http:\/\/www.hudongdong.com\/more\/922.html"},{"title":"App\u5185\u8d2d\u9879\u76ee\u7684App Store\u63a8\u5e7f","date":"2019-01-31","content":"

    \u4e4b\u524d\u8bf4\u4e86\u300aiOS\u7684\u5e94\u7528\u5185\u652f\u4ed8In-app purchase\u7684\u5f00\u53d1<\/a>\u300b\uff0c\u8bf4\u660e\u4e86App\u5185\u8d2d\u9879\u76ee\u7684\u6d41\u7a0b\uff0c\u4eca\u5929\u8bf4\u4e00\u4e0b\u5185\u8d2d\u9879\u76ee\u5728App Store\u7684\u63a8\u5e7f\u548c\u652f\u6301\u65b9\u5f0f<\/p>

    \u5728App Store\u4e2d\u641c\u7d22\u67d0\u4e2a\u8f6f\u4ef6\u7684\u65f6\u5019\uff0c\u6bd4\u5982QQ\u6d4f\u89c8\u5668\uff0c\u5728\u641c\u7d22\u5217\u8868\u548c\u8be6\u60c5\u4e2d\u90fd\u4f1a\u663e\u793a\u5185\u8d2d\u7684\u9879\u76ee\uff0c\u4e0b\u9762\u5c31\u8bf4\u4e00\u4e0b\u5982\u4f55\u914d\u7f6e\u3002<\/p>

    \"qq.png\"<\/p><\/span>

    App Store\u540e\u53f0\u5185\u8d2d\u9879\u76ee\u7684\u914d\u7f6e<\/h2>

    \u9996\u5148\u9009\u62e9\u9700\u8981\u663e\u793a\u7684\u5185\u8d2d\u9879\u76ee\uff0c\u5c06\u8be5\u5185\u8d2d\u9879\u76ee\u4e2d\u7684App Store\u63a8\u5e7f\u7684\u56fe\u7247\u4e0a\u4f20\u4e00\u4e0b<\/p>

    \"\u5c4f\u5e55\u5feb\u7167<\/p>

    \u7136\u540e\u5230App Store\u63a8\u5e7f\u4e2d\uff0c\u9009\u62e9\u9700\u8981\u63a8\u5e7f\u7684\u9879\u76ee\u5c55\u793a<\/p>

    \"\u5c4f\u5e55\u5feb\u7167<\/p><\/span>

    \u4ee3\u7801\u4e2d\u7684\u914d\u7f6e<\/h2>

    \u5982\u679c\u4f60\u770b\u5230\u4e86\u4e0a\u9762\u9ec4\u8272\u7684\u63d0\u793a<\/p>

    \u65e0\u6cd5\u5728 App Store \u4e0a\u5ba3\u4f20\u8fd9\u4e9b App \u5185\u8d2d\u4e70\u9879\u76ee\uff0c\u56e0\u4e3a\u60a8\u6700\u65b0\u7684\u5df2\u6279\u51c6\u4e8c\u8fdb\u5236\u6587\u4ef6\u4e2d\u4e0d\u5305\u542b SKPaymentTransactionObserver \u65b9\u6cd5\u3002<\/blockquote>

    \u90a3\u5c31\u662f\u56e0\u4e3a\u6ca1\u6709\u5728\u4ee3\u7801\u4e2d\u5b9e\u73b0\u8fd9\u4e2a\u4ee3\u7406\uff0c\u8fd9\u91cc\u4ee5\u300aiOS\u7684\u5e94\u7528\u5185\u652f\u4ed8In-app purchase\u7684\u5f00\u53d1<\/a>\u300b\u4e2d\u5199\u7684\u652f\u4ed8\u7c7bHDPayTools\u4e3a\u4f8b<\/p>

    \u9996\u5148\u5728HDPayTools\u4e2d\uff0c\u5b9e\u73b0- (BOOL)paymentQueue:(SKPaymentQueue *)queue shouldAddStorePayment:(SKPayment *)payment forProduct:(SKProduct *)product<\/code>\u8fd9\u4e2a\u4ee3\u7406\u51fd\u6570\uff0c\u8fd9\u4e2a\u662f\u5728App Store\u53d1\u8d77\u8d2d\u4e70\u7684\u65f6\u5019\u4f1a\u6709\u56de\u8c03\u3002<\/p>

    \u5c31\u50cf\u5f00\u53d1\u6587\u6863\u4e2d\u8bf4\u7684<\/p>