CallbackURL error in Catalyst

My Catalyst app seems to be having an issue when coming back from Twitter Authentication. The code works fine on iOS, but the app crashes on the Mac. Here's the detailed error information:

=================

Process: Wasted Time [82621]

Path: /Users/USER/*/Wasted Time.app/Contents/MacOS/Wasted Time

Identifier: maccatalyst.com.theapapp.wastedtime

Version: 9.1 (11)

Code Type: X86-64 (Native)

Parent Process: ??? [1]

Responsible: Wasted Time [82621]

User ID: 501



Date/Time: 2020-05-25 12:26:22.676 -0400

OS Version: Mac OS X 10.15.5 (19F94a)

Report Version: 12

Bridge OS Version: 4.5 (17P55289a)

Anonymous UUID: 0826D513-91D4-9EDF-EA2C-3EA562E46A48





Time Awake Since Boot: 140000 seconds



System Integrity Protection: enabled



Crashed Thread: 0 Dispatch queue: com.apple.main-thread



Exception Type: EXC_CRASH (SIGABRT)

Exception Codes: 0x0000000000000000, 0x0000000000000000

Exception Note: EXC_CORPSE_NOTIFY



Application Specific Information:

Couldn't register maccatalyst.com.theapapp.wastedtime.gsEvents with the bootstrap server. Error: unknown error code (1100).

This generally means that another instance of this process was already running or is hung in the debugger.

abort() called



Thread 0 Crashed:: Dispatch queue: com.apple.main-thread

0 libsystem_kernel.dylib 0x00007fff6e14b33a __pthread_kill + 10

1 libsystem_pthread.dylib 0x00007fff6e207e60 pthread_kill + 430

2 libsystem_c.dylib 0x00007fff6e0d2808 abort + 120

3 com.apple.GraphicsServices 0x00007fff568b49ca _GSRegisterPurpleNamedPortInPrivateNamespace + 394

4 com.apple.GraphicsServices 0x00007fff568b4837 GSRegisterPurpleNamedPort + 23

5 com.apple.GraphicsServices 0x00007fff568b4322 _GSEventInitializeApp + 290

6 com.apple.GraphicsServices 0x00007fff568b41f4 GSEventInitialize + 36

7 com.apple.UIKitCore 0x00007fff7495bf4f UIApplicationMain + 1394

8 maccatalyst.com.theapapp.wastedtime 0x00000001096a3eea main + 58 (AppDelegate.swift:14)

9 libdyld.dylib 0x00007fff6e003cc9 start + 1

================


Xcode then gives the following error:

2020-05-25 12:26:22.521054-0400 Wasted Time[82077:930719] [assertion] Error acquiring assertion: <NSError: 0x600000d7dbf0; domain: RBSAssertionErrorDomain; code: 2; reason: "Specified target process does not exist">

Accepted Reply

Ultimately resolved, can't remember what I did.. and the forums never notified me of posts so I could react back then. Wonder if I can just delete this message.

Replies

I have confirmed that no other copy of the program is running.

Confirm that no other copy of the app (or other process with the same bundle ID) is running using Activity Monitor specifically, as it may not be visible. This situation can happen if you're debugging a copy of your app with Xcode, and then go to confirm something with another copy of your app, such as the shipping version installed in /Applications.

Ultimately resolved, can't remember what I did.. and the forums never notified me of posts so I could react back then. Wonder if I can just delete this message.
The accepted answer is not correct. Anyone who encounters this issue, beware you might have multiple copies of your app in the derived data. In my case geturl was calling a differing binary. Removing them fixes the issue.