1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

CocoaPods対応で苦戦

Last updated at Posted at 2022-04-23

スクリーンショット 2022-04-23 19.07.24.png

発生してるエラー&警告

①Githubのユーザー名が違う

②summary: The summary is not meaningful.

③[iOS] file patterns: The source_files pattern did not match any file.

④[iOS] license: Unable to find a license file

この4つです
①に関してはなんで?って感じなのですが修正していきます

修正

①ユーザー名の修正

- s.homepage         = 'https://github.com/SNQ-0/Twifter'
+ s.homepage         = 'https://github.com/SNQ-2001/Twifter'
- s.source           = { :git => 'https://github.com/SNQ-0/Twifter.git', :tag => s.version.to_s }
+ s.source           = { :git => 'https://github.com/SNQ-2001/Twifter.git', :tag => s.version.to_s }

②summary: The summary is not meaningful.の修正
おそらくsummaryが初期値のままだと出るエラーな気がします

- s.summary          = 'A short description of Twifter.'
+ s.summary          = 'Twitter library with no developer account required'

③[iOS] file patterns: The source_files pattern did not match any file.の修正
これに苦戦しました

- s.source_files = 'Twifter/Classes/**/*'
+ s.source_files = 'Sources/**/*.swift'

④[iOS] license: Unable to find a license fileの修正

ローカルにLICENSEを追加する


全て修正したところで問題発生!!


新しいエラー&警告が出現

⑤description: The description is shorter than the summary.

⑥[iOS] swift: The validator used Swift 4.0 by default because no Swift version was specified. To specify a Swift version during validation, add the swift_versions attribute in your podspec. Note that usage of a .swift-version file is now deprecated.

再び修正

⑤description: The description is shorter than the summary.の修正

先ほどのsummaryと同じ様に初期値なので警告されてる気がします

  s.description      = <<-DESC
- TODO: Add long description of the pod here.
+ This library allows you to manipulate the Twitter API without a developer account.
                       DESC

⑥[iOS] swift: The validator used Swift 4.0 by default because no Swift version was specified.〜の修正
Swiftのバージョン記載してねってことだと思います。

+ s.swift_version = '5.5'

合格!!

スクリーンショット 2022-04-23 20.02.47.png
まだ下にLICENSE関係の警告が出てますが一応合格しました

追記

「Twifter」という名前が被っていてpod trunk pushできない事がわかりました笑
名前の競合を回避する方法が分かったら別で記事書きます😭

ちょっと紹介

自作パッケージをリリースする際にめっちゃ為になった記事です

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?