What is the actual cause behind the error “Assertion failed: alias and its target must be located in the same section” when building an iOS app?
I have a hybrid app created with Ionic that was originally running on Cordova, but we moved it to Capacitor a year ago and everything has been working as expected. Recently, while trying to make updates for iOS 17, I started getting this error every time I try to build for a real device (running it on a Simulator works fine):