0

Command PhaseScriptExecution failed with a nonzero exit code for R.swift

enter image description here

enter image description here

Does any one have faced this situation?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Abhishek Mitra
  • 3,335
  • 4
  • 25
  • 46

2 Answers2

1

Answer Found from https://github.com/mac-cain13/R.swift#cocoapods-recommended

"$PODS_ROOT/R.swift/rswift" generate "$SRCROOT/R.generated.swift"

enter image description here

enter image description here

Hope it will help someone.

Abhishek Mitra
  • 3,335
  • 4
  • 25
  • 46
1

TLDR; Update to the latest version of R.swift

This is a security warning from macOS, because the rswift executable your using wasn’t notarized. As of version 5.2.2 of R.swift, the executable is now fully notarized, so this problem shouldn’t happen anymore.

Note: when you install R.swift via CocoaPods, the quarantine bit isn’t set, so this warning doesn’t show up.

Tom Lokhorst
  • 13,658
  • 5
  • 55
  • 71