3 ms·
Ask HN: Xcode 14.3 Beta 2 disables x86 builds for older Xcode versions?
Since I installed Xcode 14.3 Beta 2 I cannot build x86 simulator binaries even with Xcode 14.2. Uninstalling Xcode 14.3 Beta 2 and reinstalling Xcode 14.2 didn't fix it either. All simulator builds are now arm64 and fail to link to third party libraries only available for x86 simulator.
Can anyone confirm? Is there a fix?
- coldtea 4y agoLooks like you discovered this: "Deprecations in Xcode 14.3 Beta Xcode isn’t supported under Rosetta. See Developer Technote “Resolving architecture build errors on Apple silicon“ for more information. (92772361)" [ https://developer.apple.com/documentation/technotes/tn3117-resolving-build-errors-for-apple-silicon https://developer.apple.com/documentation/technotes/tn3117-r... ] From: https://developer.apple.com/documentation/xcode-release-notes/xcode-14_3-release-notes https://developer.apple.com/documentation/xcode-release-note... Can't you still build a Universe app build? Haven't had 14.3 but perhaps it should be able to cross compile from M1 XCode, and not need Rosetta?
- starbugs 4y agoI should have mentioned that I am aware of Apple's deprecation notice in the release notes. But the note refers to Xcode 14.3 Beta and doesn't say that Xcode 14.2 couldn't be used to build x86 Simulator builds anymore. With regard to your suggestion: I have a complex client project setup that I cannot really tinker with a lot. It worked with Xcode 14.2 prior to the installation of Xcode 14.3 Beta (in addition to Xcode 14.2). I am afraid what you suggest is not really an option for me.
- coldtea 4y agoMaybe removing 14.3 beta and re-installing the existing XCode 14.2 (even if you already have it) will add the functionality that seems to be removed with 14.3 beta? Given that building like 14.2 alone allowed is more of a priority than having 14.3 beta. Can also try to install macOS on VM on your Mac, and keep that with just 14.2 there for builds.
- starbugs 4y agoUnfortunately, removing the 14.3 install and reinstalling 14.2 didn't fix it. Setting up a macOS VM would most likely not be suitable for testing, which the simulator builds are primarily for in my use case. Thanks for your suggestions!
- starbugs 4y agoI was able to restore my prior working Xcode 14.2 from a Time Machine backup by restoring the following locations: /Library/Developer /Library/Preferences/com.apple.dt.Xcode.plist ~/Library/Developer ~/Library/Preferences/com.apple.dt.Xcode.* ~/Library/Caches/com.apple.dt.Xcode.* /Applications/Xcode.app Though not 100% accurate, this forum thread was helpful: https://developer.apple.com/forums/thread/705846 https://developer.apple.com/forums/thread/705846 I suspect that installing 14.3 Beta changes the configuration files in /Library and therefore causes this behavior. After restoring all the files, x86 builds work again when building for Simulator with Xcode running in Rosetta mode. Any confirmation that this is really what happens would still be appreciated.
- Daedren 4y agoI'm on Xcode 14.2 and my simulator builds are still x86_64. I'm not running anything under Rosetta, nothing changed.