Facing a error when switch project Xcode 14 to Xcode 15 in M1 Mac. In simulator it is working fine but when try to real device getting error.
[Getting error on M1 Mac while try to run in real device] (https://i.sstatic.net/4YBBD.png)
Change EXCLUDED_ARCHS to arm64. Add VALID_ARCHS in Add User-Defind Setting. Also try all solution of below link. https://developer.apple.com/documentation/technotes/tn3117-resolving-build-errors-for-apple-silicon/
If you are using the Manual framework then follow the below steps.
Remove files from the project and add again while adding a file select a target. Please check attached image. Select target Image
Remove Other Linker Flag and Header Search Path from the Build Setting of WatchKit Extension. (WatchKit Extension Target -> Build Setting -> Other Linker Flag).
(WatchKit Extension Target -> Build Setting -> Header Search Path).
Clean Project
Build the project