Reputation: 125
Can anyone help me with this error why it ask for cocoapods file or directory?
Upvotes: 2
Views: 1645
Reputation: 519
To me was because I forgot to put "-D" before my custom swift flag
Upvotes: 2
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:
Upvotes: 1
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