Turner
Turner

Reputation: 125

<unknown>:0: error: no such file or directory: 'COCOAPODS'

Can anyone help me with this error why it ask for cocoapods file or directory?

Upvotes: 2

Views: 1645

Answers (4)

andrehsouza
andrehsouza

Reputation: 519

To me was because I forgot to put "-D" before my custom swift flag

Upvotes: 2

pableiros
pableiros

Reputation: 16032

I have the same error because when I duplicate my main Target, I added a new compiler flag on:

Project -> Build Settings -> Other Swift Flags

And if I remove the "COCOAPODS" flags, another errors appears.

The error occurs when I added a custom flags. To solve that, the right way to add a custom flags is with quotation marks, for example:

enter image description here

Upvotes: 1

hEADcRASH
hEADcRASH

Reputation: 1915

I had the same problem, and found that while tweaking some compiler flags, the build settings got a bit scrambled.

To fix it, check to see if you have "COCOAPODS" in any of your Project>Build Settings>Other Swift Flags, and remove it:

Bad line in "Other Swift Flags"

Upvotes: 9

成璐飞
成璐飞

Reputation: 397

pod setup or pod repo update then pod install

Upvotes: 1

Related Questions