I am trying to use xctool to run my Xcode unit tests from a Jenkins server for CI purposes. When I run my tests with:
xctool -project MyApp.xcodeproj -scheme MyApp test -sdk iphonesimulator
I get the following error:
/Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/MyApp-fxgsgucvulucjcbkdjllermhnvah/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyAppTests.build/Script-FA92AE8E162C5E1900A410A1.sh: line 3: 10301 Segmentation fault: 11 "${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests" Command /bin/sh failed with exit code 139
If I remove the default Run Script , which has:
# Run the unit tests in this test bundle. "${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests"
from my test target, the xctool call works fine - and I can still run my unit tests directly in Xcode via Cmd+U
I made my way through a lot of searches, trying to find the βrightβ solution for this, but no luck. Just delete this post post post that causes RunUnitTests acceptable? What does it do?
source share