0
1

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.

【Swift】`pod install` 時のエラー[!] Invalid `Podfile` file: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '('.

Posted at

これはなに

pod installしたときに出たエラー。
Podfileはこのように書かれていた。

pod 'RxSwift',
pod 'RxCocoa'

カンマが要らない

マヌケなミスではあるが、改行の際にカンマは打たなくていい。

pod 'RxSwift'
pod 'RxCocoa'

バージョンを指定する際はカンマを打つ。改行時には要らないが。

pod 'RxSwift', '~> 4.3.1'
pod 'RxCocoa', '~> 4.3.1'

以上です(;´Д`)

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?