Update:
After lots of debugging, I found the root cause of this issue which is the Provisioning profile and signing certificate I'm using. I'm using registered bundleId and provisioning profile with app group enabled.
I just enabled Xcode's Automatically manage signing with some random bundleId. All of a sudden above mentioned (mentioned in the question) NSApplicationDelegate method called and app has launched as well. I just compared the Entitlements and Capabilities of two certificates that's looks same. I Still couldn't fix the issue.
Attached screenshots here.
Topic:
Programming Languages
SubTopic:
Swift
Tags: