I’m experiencing a strange build behavior when building using Xcode 15.1, iOS simulator and Apple silicon. I think this question is somehow related to the following one but no replies were added: Why is iOS Simulator build targeting x86_64 on Apple Silicon Mac?.
I’m developing a React Native application that depends on multiple React Native modules. Some of them do not support arm64 slice for iOS simulator. Hence, I was forced to exclude that slice by means of CocoaPods.
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
end
end
The strange fact is that I’m not running the app using Rosetta destination, as stated in Apple Technote, but a Silicon one.
After temporarily changing EXCLUDED_ARCHS, select the appropriate simulator destinations through the Product > Destination > Destination Architectures menu, and choose Show Rosetta Destinations. Once the library is updated with Apple silicon support and EXCLUDED_ARCHS is unset, choose Show Apple Silicon Destinations from the same menu.
Can you elaborate on the reasons behind this behavior? Did Xcode 15 introduced some features that make this possible?
Thanks,
Lorenzo




