XcodeBenchmark icon indicating copy to clipboard operation
XcodeBenchmark copied to clipboard

Does this compile for anyone, using XCode 16.1 and MacOS 15.1?

Open dclive opened this issue 1 year ago • 5 comments

M2 Ultra user here, using xcode 16.1 and MacOS 15.1.

The script runs for a bit, then I get:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -ivfsstatcache /Users/USERNAME/Downloads/XcodeBenchmark-master/DerivedData/SDKStatCaches.noindex/iphoneos18.1-22B74-456b5073a84ca8a40bffd5133c40ea2b.sdkstatcache -fmessage-length=127 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/USERNAME/Downloads/XcodeBenchmark-master/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /Users/USERNAME/Downloads/XcodeBenchmark-master/DerivedData/Index.noindex/DataStore @/Users/USERNAME/Downloads/XcodeBenchmark-master/DerivedData/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/BoringSSL-GRPC.build/Objects-normal/arm64/82b82416624d2658e5098eb0a28c15c5-common-args.resp -DOPENSSL_NO_ASM -GCC_WARN_INHIBIT_ALL_WARNINGS -w -DBORINGSSL_PREFIX=GRPC -fno-objc-arc -w -Xanalyzer -analyzer-disable-all-checks -include /Users/USERNAME/Downloads/XcodeBenchmark-master/Pods/Target\ Support\ Files/BoringSSL-GRPC/BoringSSL-GRPC-prefix.pch -MMD -MT dependencies -MF /Users/USERNAME/Downloads/XcodeBenchmark-master/DerivedData/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/BoringSSL-GRPC.build/Objects-normal/arm64/tls_record.d --serialize-diagnostics /Users/USERNAME/Downloads/XcodeBenchmark-master/DerivedData/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/BoringSSL-GRPC.build/Objects-normal/arm64/tls_record.dia -c /Users/USERNAME/Downloads/XcodeBenchmark-master/Pods/BoringSSL-GRPC/src/ssl/tls_record.cc -o /Users/USERNAME/Downloads/XcodeBenchmark-master/DerivedData/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/BoringSSL-GRPC.build/Objects-normal/arm64/tls_record.o -index-unit-output-path /Pods.build/Debug-iphoneos/BoringSSL-GRPC.build/Objects-normal/arm64/tls_record.o

clang: error: unsupported option '-G' for target 'arm64-apple-ios14.5'

dclive avatar Nov 01 '24 21:11 dclive

Going into xcode / settings / components, the oldest ios simulator I can add is 15.0. Not sure if that matters / if iOS 14.5 was there on a previous version....

dclive avatar Nov 01 '24 21:11 dclive

Yes, you need to have the iOS 18.1 simulator installed to run this benchmark on Xcode 16.1. Try deleting the current simulators you have and install the latest in Xcode.

spencekl99 avatar Nov 01 '24 21:11 spencekl99

Right, and I do, and I get the above error. To be completely clear: I have 18.1 on there. I have no other iOS sims on there now, having removed the 17.x series. I get the above error still.

My point in mentioning 14.5 was because of that 14.5 error - I thought perhaps it required some ancient version of the iOS sim on there.

Any other ideas on what's wrong?

dclive avatar Nov 01 '24 21:11 dclive

Something must be wrong with Xcode's install. Have you tried uninstalling it? And reinstalling it.

spencekl99 avatar Nov 02 '24 01:11 spencekl99

Yup; no change. Not sure what's wrong.

dclive avatar Nov 05 '24 00:11 dclive