Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
2
Help us understand the problem. What is going on with this article?
@vc7

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

More than 5 years have passed since last update.

最近在寫使用 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
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
vc7
iOS Developer from 🇹🇼

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
2
Help us understand the problem. What is going on with this article?