I need to specify an NSPrincipalClass. This used to be done using an Info.plist but when creating a Library in Xcode 13 an Info.plist is no longer created. Can an NSPrincipalClass be specified in the Package.swift manifest instead? I have not found any documentation that explains how to do this in Xcode 13 created projects.
Asked
Active
Viewed 108 times
0
-
What do you need `NSPrincipalClass` for? Why is it important for your library? – Cristik Sep 08 '22 at 13:44
-
For testing purposes only. Registering an XCTestObserver as described in the overview section here https://developer.apple.com/documentation/xctest/xctestobservationcenter – ajeetdl Sep 09 '22 at 16:36
-
OK, so your goal is to be able to register `XCTestObserver`'s in a unit test target for a library? Regardless if it's done via `NSPrincipalClass` or not? – Cristik Sep 09 '22 at 17:11
-
That is the primary goal yes, it wouldn't necessarily have to be done via NSPrincipalClass, but it did raise the question as how to start up code is now supposed to be handled in Xcode13 created projects. – ajeetdl Sep 09 '22 at 18:00
-
This has little to do with Xcode, static libraries never had an `Info.plist`. – Cristik Sep 09 '22 at 18:03