R.swift
R.swift copied to clipboard
Bad CPU type in executable when build on xcode 15 beta
While building a project with Xcode 15 beta on MacOS Sonoma Apple Silicon that includes the R.swift pod and the script
#!/bin/sh
"$PODS_ROOT/R.swift/rswift" generate "$SRCROOT/iMamma/Common/Resources/Generated/Production/R.generated.swift" --generators image,string,file,color,font,storyboard,nib
the compiler returns the following warning. What might be the reason for this?
Bad CPU type in executable
I second this.
I had the same issue. It turned out that the version of the dependency used was too old and only supported x86_64 architecture for the rswift binary and therefore it would fail to run on Apple Silicon Macs.
Make sure you link the latest release.