Mac app throws exception during code signing validation, but it isn't signed

I'm working in Xcode 10.10 because that's what we need to use at the office. 😟 I've been working on an iOS app. That target is set to use my Team account, and code signing is set to use iOS Developer. Today I added a Mac app target so I could start developing the Mac version of the app. I've tried all the types of signing, Mac App Store, Developer ID or Apple ID, and None. All of them results in an exception when I launch via Xcode to debug, but if I launch from Finder, it runs normally. What's the deal? Exception stack at the end.


Also, I'm using the same Bundle ID for both iOS and Mac targets. But the last thing I tried was to make them different. That didn't seem to make a difference.


I can create a brand new project that starts out with a Mac target, set the Signing to None, and it runs just fine from Xcode.


#0

0x00007fff93569abf in __cxa_throw ()

#1

0x00007fff9423eb26 in Security::MacOSError::throwMe(int) ()

#2

0x00007fff9415c6f7 in Security::CodeSigning::SecStaticCode::signature() ()

#3

0x00007fff9415c945 in Security::CodeSigning::SecStaticCode::verifySignature() ()

#4

0x00007fff9415c738 in Security::CodeSigning::SecStaticCode::validateDirectory() ()

#5

0x00007fff9415d18b in Security::CodeSigning::SecStaticCode::validateNonResourceComponents() ()

#6

0x00007fff94161666 in Security::CodeSigning::SecStaticCode::staticValidateCore(unsigned int, Security::CodeSigning::SecRequirement const*) ()

#7

0x00007fff9415f843 in Security::CodeSigning::SecStaticCode::staticValidate(unsigned int, Security::CodeSigning::SecRequirement const*) ()

#8

0x00007fff94156892 in SecStaticCodeCheckValidityWithErrors ()

#9

0x00007fff8c93e333 in _LSAddEntitlementsToDictionary(__CFURL const*, __CFDictionary*) ()

#10

0x00007fff8c93b59c in _LSRegisterDirectoryNode(LSContext*, FSNode*, FSNode*, LSRegistrationInfo*, __CFData const*, __CFDictionary const*, __CFArray**, unsigned char*, unsigned int*) ()

#11

0x00007fff8c93a7db in _LSRegisterBundleNode(LSContext*, unsigned int, FSNode*, FSNode*, unsigned int, __CFDictionary const*, __CFArray**, unsigned char*, unsigned int*) ()

#12

0x00007fff8c90141c in _LSFindOrRegisterBundleNode ()

#13

0x00007fff8c90945f in _LSRegisterSelf ()

#14

0x00007fff8c8f6f86 in _LSApplicationCheckIn ()

#15

0x00007fff982be7b2 in _RegisterApplication ()

#16

0x00007fff982bce4d in GetCurrentProcess ()

#17

0x00007fff93c232a7 in MenuBarInstance::GetAggregateUIMode(unsigned int*, unsigned int*) ()

#18

0x00007fff93c23259 in MenuBarInstance::IsVisible() ()

#19

0x00007fff989f605b in _NSInitializeAppContext ()

#20

0x00007fff989f52b0 in -[NSApplication init] ()

#21

0x00007fff989f4e7f in +[NSApplication sharedApplication] ()

#22

0x00007fff989f3c56 in NSApplicationMain ()

#23

0x00000001000018e2 in main at /Users/rr219379/Documents/ASdepot/Box of Fun/Box of Fun Mac/main.m:12