21

I'm setting up a new project with pods. Where do I need to set the path for below error

-resources.sh: line 7: realpath: command not found
Olcay Ertaş
  • 5,987
  • 8
  • 76
  • 112
balusu
  • 367
  • 3
  • 10
  • 1
    There is no `realpath` command in standard macOS, afaik. Please show the full build step/script that generates this error, and also your Podfile. – Gereon Jun 12 '19 at 11:28
  • 1
    I have this error too. Here is the full content of my `Pods-ColaGoods-resources.sh` on [Github Issue](https://github.com/qmint/notes/issues/7) @Gereon would you help us? – wzso Sep 19 '19 at 11:25
  • @Gereon: Apparently it depends: [Is the Unix "realpath" command distributed with macOS Ventura?](https://apple.stackexchange.com/questions/450035) – hippietrail Nov 05 '22 at 12:12

3 Answers3

19

If you have Homebrew you can fix this with brew install coreutils

Daniel Garmoshka
  • 5,849
  • 39
  • 40
16

Simply cleaning build folder (Product -> Clean Build Folder) fixed the issue for me.

Lveecode
  • 1,022
  • 9
  • 23
2

Slightly old question, but here is my fix for those who come later:

  • Clean build folder
  • Exit Xcode
  • Run pod deintegrate
  • Run pod install
  • Restart Xcode and clean again

Always fixes this problem.

Olcay Ertaş
  • 5,987
  • 8
  • 76
  • 112
jmf1205
  • 437
  • 6
  • 23