API Calls Are Not Working in Xcode 13.1 Within Old macOS Application

Error Details: Thread 2: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)

at Thread 2 Queue : com.apple.network.connections (serial)

In my old mac application API calls are not working after Xcode update to 13.1 version, but API calls are working fine in newly created macOS app in Xcode 13.1 version. My MacOS Version is 12.0.1. Swift version is 5. App Deployment Target is 10.12.

I can archive and test by installing the application, it is working fine in my mac.

Thanks in advance

Just means you have to do some debugging, root cause analysis looking for removed or deprecated APIs, read the release notes to find out what changes might have affected your code based or even try the new Xcode 13.2 from more downloads, upgrade macOS 12.1 and code defensively for old and any new APIs.

API Calls Are Not Working in Xcode 13.1 Within Old macOS Application
 
 
Q