{"id":1196,"date":"2018-08-21T11:30:22","date_gmt":"2018-08-21T03:30:22","guid":{"rendered":"http:\/\/www.yusian.com\/blog\/?p=1196"},"modified":"2018-08-24T10:39:05","modified_gmt":"2018-08-24T02:39:05","slug":"%e5%88%b6%e4%bd%9c%e8%87%aa%e5%b7%b1%e7%9a%84cocoapods%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/www.yusian.com\/blog\/project\/2018\/08\/21\/1130221196.html","title":{"rendered":"\u5236\u4f5c\u81ea\u5df1\u7684Cocoapods\u5e38\u7528\u547d\u4ee4"},"content":{"rendered":"<p><strong>Pod\u76f8\u5173\u547d\u4ee4<\/strong><\/p>\n<p>1\u3001\u521d\u59cb\u5316<br \/>\n<code># pod lib create xxxx<\/code><\/p>\n<p>2\u3001\u9a8c\u8bc1\u672c\u5730spec\u9879\u76ee(\u5e26\u4e09\u65b9pod)<br \/>\n<code># pod lib lint xxxx.spec --use-libraries<\/code><\/p>\n<p>3\u3001\u9a8c\u8bc1\u672c\u5730\u548c\u8fdc\u7a0b(git)\u9879\u76ee<br \/>\n<code># pod spec lint xxxx.spec<\/code><\/p>\n<p>4\u3001\u63d0\u4ea4pod\u9879\u76ee(\u5e26\u4e09\u65b9pod)<br \/>\n<code># pod trunk push<\/code><br \/>\n<code># pod trunk push --use-libraries<\/code><\/p>\n<p>5\u3001\u5220\u9664pod\u7248\u672c<br \/>\n<code># pod trunk delete xxx x.x.x<\/code><\/p>\n<p><strong>Git\u76f8\u5173\u547d\u4ee4<\/strong><br \/>\n6\u3001\u6307\u5b9acommit\u6253\u4e0atag<br \/>\n<code># git tag -a 0.1.1 9fbc3d0<\/code><\/p>\n<p>7\u3001\u63d0\u4ea4\u6240\u6709tag<br \/>\n<code># git push origin \u2013-tags<\/code><\/p>\n<p>8\u3001\u63d0\u4ea4\u6307\u5b9atag<br \/>\n<code># git push origin 0.1.2<\/code><\/p>\n<p>9\u3001\u5220\u9664\u672c\u5730tag<br \/>\n<code># git tag -d 1.1<\/code><\/p>\n<p>10\u3001\u5220\u9664\u8fdc\u7a0btag<br \/>\n<code># git push origin :1.1<br \/>\n\/\/ or<br \/>\n# git push origin --delete tag 1.1<\/code><\/p>\n<p>11\u3001\u5220\u9664\u8fdc\u7a0bcommit<br \/>\n<code># git reset --hard commit_id \/\/ \u672c\u5730\u56de\u9000\u5230\u67d0\u4e2acommit<br \/>\n# git push origin HEAD --force \/\/ \u5f3a\u5236\u540c\u6b65\u5230\u8fdc\u7a0b<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pod\u76f8\u5173\u547d\u4ee4 1\u3001\u521d\u59cb\u5316 # pod lib create xxxx 2\u3001\u9a8c\u8bc1\u672c\u5730spec\u9879\u76ee(\u5e26\u4e09\u65b9pod) # pod lib lint xxxx.spec &#8211;use-libraries 3\u3001\u9a8c\u8bc1\u672c\u5730\u548c\u8fdc\u7a0b(git)\u9879\u76ee # pod spec lint xxxx.spec 4\u3001\u63d0\u4ea4pod\u9879\u76ee(\u5e26\u4e09\u65b9pod) # pod trunk push # pod trunk push &#8211;use-libraries 5\u3001\u5220\u9664pod\u7248\u672c # pod trunk delete xxx x.x.x Git\u76f8\u5173\u547d\u4ee4 6\u3001\u6307\u5b9acommit\u6253\u4e0atag # git tag -a 0.1.1 9fbc3d0 7\u3001\u63d0\u4ea4\u6240\u6709tag # git push origin \u2013-tags 8\u3001\u63d0\u4ea4\u6307\u5b9atag # git push [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[87,47,3,86],"class_list":["post-1196","post","type-post","status-publish","format-standard","hentry","category-project","tag-cocoapods","tag-git","tag-ios","tag-pod"],"_links":{"self":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/1196","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/comments?post=1196"}],"version-history":[{"count":0,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/1196\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/media?parent=1196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/categories?post=1196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/tags?post=1196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}