LoginSignup
2
2

More than 5 years have passed since last update.

.podspec を .podspec.json にコンバートしよう

Last updated at Posted at 2015-01-28

最近在寫使用 CocoaPods 用的 library 時,要把 podspec 轉成 .podspec.json 格式,就上網找了找該怎麼轉。

pod ipc spec

找了找發現 pod 有這個功能可以用 > ipc , inter-process communication ,加上 spec 之後,就可以轉換成 JSON 格式。其下還有其他的指令可以用,不過還是先專注在如何轉換到 JSON 格式即可。

以下的指令可以把 podspec 轉換成 JSON 格式後印出來:

$ pod ipc spec LibraryName.podspec

接著可以用 double greater than operator 來把印出來的 JSON 內容存成想要的檔案即可:

$ pod ipc spec LibraryName.podspec >> LibraryName.podspec.json

參考資料

同步發佈

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2