Hello everyone,
We have a Capacitor+Angular application and since we have updated the XCode version to 16.2 we are having problems compiling due to the Apple Swift version.
We have updated Capacitor versions to the latest 6.2.0 and the issue still appears. Also add that the project compilation works without problems, the error occurs when we try to compile from XCode with the Product>Build menu.
Before updating XCode to version 16.2 the app was working and building on iOS was fine. It started to fail today after updating XCode.
It seems to be due to some issue with the Swift version but we can’t find any information about it and the errors we get are not documented.
We are attaching some screenshots in case they can be of help in understanding the problem we are having.
Our system is running Swift version 6.0.3.
Thank you very much for your help.
All the best!
XCode 16.2 seems to still be in beta (source). Maybe Capacitor 6 doesn’t support that version You could try Capacitor 7 which is in beta or downgrade back to XCode 16.1.
Another possibility, the errors show x86_64 whereas the target is arm64. Maybe you have the wrong target selected? Or maybe this is a bug in 16.2 since it is still in beta.
Thank you very much for your help!
We will try to lower the XCode version to 16.1 to see if this stabilizes it. If this works we will stick with this version until Capacitor 7 is officially released (it’s currently an RC and we don’t want to risk anything else failing).
We will update the status once we validate that XCode 16.1 is working again.
Xcode 16.2 is no longer in beta
I update the topic with the latest changes.
We have downgraded the XCode version to 16.1 and the application now compiles without problems after clearing caches and doing a clean installation. We have noticed that if we try to compile with a device other than Rosetta, we get errors with the Swift architecture (something similar to what we had with version 16.2).
Selecting a device Rosetta does compile, this happens because the Apple equipment we use must be new and with ARM architecture, which causes incompatibilities between the app and the device’s architecture.
I leave this answer as a solution in case it helps someone else.
Thanks for your help!
1 Like
Interesting that Apple doesn’t keep their own page of documented versions updated