CocoaPods / Xcodeproj

Create and modify Xcode projects from Ruby.
http://rubygems.org/gems/xcodeproj
MIT License
2.37k stars 458 forks source link

Xcode Unexpected Failure: realpath -mq not found on osx sonoma 14.2 #928

Open konacurrents opened 11 months ago

konacurrents commented 11 months ago

After updating OSX to Sonoma 14.2, and using pod 1.14.3, Xcode compiles but then gets an error:

Unexpected failure

I tracked it down to a shell script generated from cocoa pods and this code:

function on_error {
  echo "$(realpath -mq "${0}"):$1: error: Unexpected failure"
}
trap 'on_error $LINENO' ERR

This file is under Pods/Target Support Files/Pods-MyApp/Pods-MyApp-resources.sh

Although I don't know why on_error is called.