R.swift icon indicating copy to clipboard operation
R.swift copied to clipboard

Bad CPU type in executable when build on xcode 15 beta

Open smashkins opened this issue 2 years ago • 2 comments

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

smashkins avatar Jun 15 '23 11:06 smashkins

I second this.

alessiolapenna avatar Jun 19 '23 04:06 alessiolapenna

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.

kuldar-daniel avatar Aug 08 '23 11:08 kuldar-daniel