尝试为FlockSwiftUtils添加测试。该项目没有UI,所以我不想有一个带有应用程序目标的项目。 Xcode确实将{None}设为目标Host Application
,因此似乎可行。
目标构建成功,但是xctest
失败,并显示错误
Showing Recent Messages
xctest (41117) encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted. (Underlying error: The test runner failed to load the test bundle. Executable cannot be loaded for some other reason, such as a problem with a library it depends on or a code signature/entitlements mismatch.))
从日志中:
13:35:05.753 Xcode[38272:7487908] Test operation failure: The test runner failed to load the test bundle. Executable cannot be loaded for some other reason, such as a problem with a library it depends on or a code signature/entitlements mismatch.
13:35:05.753 Xcode[38272:7487908] _finishWithError:Error Domain=IDETestOperationsObserverErrorDomain Code=5 "The test runner failed to load the test bundle. Executable cannot be loaded for some other reason, such as a problem with a library it depends on or a code signature/entitlements mismatch." UserInfo={NSLocalizedDescription=The test runner failed to load the test bundle. Executable cannot be loaded for some other reason, such as a problem with a library it depends on or a code signature/entitlements mismatch.}
有关此代码,请参见tests branch FlockSwiftUtils。