I use a 2020 Intel MacBook Pro with 14.7.2 (23H311) system. I have been using Xcode 15.4 to develop and publish games. Since new games need to be developed and published using Xcode 16.2, I recently installed two versions of Xcode on my computer. I can run the project normally with Xcode 15.4, but it keeps reporting errors with Xcode 16.2 and cannot run. The error is in UIKit's UIFocusSystem.h file, with the following message: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIFocusSystem.h:46:27 Expected ')'
This makes me very confused. Is there something wrong?
I thought it was because the computer could not have two Xcodes, so I uninstalled both Xcodes and then downloaded the 16.2 version of Xcode from the AppStore. However, after running it, it still reported the error Expected ')'