Abhishek Mitra
Abhishek Mitra

Reputation: 3395

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

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?

Upvotes: 0

Views: 1815

Answers (2)

Tom Lokhorst
Tom Lokhorst

Reputation: 13768

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.

Upvotes: 1

Abhishek Mitra
Abhishek Mitra

Reputation: 3395

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.

Upvotes: 1

Related Questions