openbakery / gradle-xcodePlugin

gradle plugin for building Xcode Projects for iOS, watchOS, macOS or tvOS
Apache License 2.0
455 stars 127 forks source link

setting arch to "arm64" adds the ARCHS parameter to the build, but leaves a broken -destination #466

Open littlewatchman opened 1 year ago

littlewatchman commented 1 year ago

I'm using the 0.22.+ build of open bakery

I set the project arch to "arm64" I set xcodebuild arch = project.arch the generated command line build includes ARCHS=arm64 but it still includes -destination platform=OS X,arch=x86_64

which is doubly weird because I also set platform to "macOS"...

my project is arm64 only due to some framework restrictions, so it just won't build like this.

if I manual edit the destination to -destination platform=macOS,arch=arm64 everything builds nicely

I tried overriding the project.destination I tried overriding the xcodebuild destination I tried all sorts of combinations of specifying platform and arch

but nothing I have tried gets rid of or modifies the -destination which is generated