Не могу понять, зачем сообщать FBSnapshotTestCase image not found while running Xcode test
.
Я попытался связать FBSnapshotTestCase
с целью ChartTests
, но по-прежнему вижу ту же ошибку.
Я с этим не знаком, может кто поможет? Заранее спасибо.
Чтобы воспроизвести:
Загрузите проект с https://github.com/danielgindi/Charts.
перейти в корень проекта,
(необязательно) запустите
carthage bootstrap
, чтобы установить зависимость. В проекте есть проверка зависимостей, поэтому, если вы ее не запустите, она запустится при запуске теста.- #P8# <блочная цитата> #P9# блочная цитата>
идентификатор назначения может быть любым uuid симулятора на машине.
Затем сообщает:
2017-04-20 13:47:57.611 xctest[90924:13099756] The bundle “ChartsTests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
2017-04-20 13:47:57.611 xctest[90924:13099756] (dlopen_preflight(/Users/user/Library/Developer/Xcode/DerivedData/Charts-ambsdrskvocwekcmoobyhanaiixm/Build/Intermediates/CodeCoverage/Products/Debug-iphonesimulator/ChartsTests.xctest/ChartsTests): Library not loaded: @rpath/FBSnapshotTestCase.framework/FBSnapshotTestCase
Referenced from: /Users/user/Library/Developer/Xcode/DerivedData/Charts-ambsdrskvocwekcmoobyhanaiixm/Build/Intermediates/CodeCoverage/Products/Debug-iphonesimulator/ChartsTests.xctest/ChartsTests
Reason: image not found)
2017-04-20 13:47:57.625 xcodebuild[90311:13086990] Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}
Testing failed:
Test target ChartsTests encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)
** TEST FAILED **