mirror of
https://github.com/gosticks/SwiftGit2.git
synced 2025-10-16 11:55:34 +00:00
`xctool` runs the tests as logic only whereas `xcodebuild` and XCode run them as application tests. When tests are running logic only a lot of the subsystems that would be available on the simulator are not there, for example keychain and networking. https://github.com/facebook/xctool/issues/269 https://github.com/AFNetworking/AFNetworking/pull/1707 https://github.com/facebook/xctool/issues/367 https://github.com/facebook/xctool/issues/553
24 lines
349 B
Awk
24 lines
349 B
Awk
# Exit statuses:
|
|
#
|
|
# 0 - No errors found.
|
|
# 1 - Build or test failure. Errors will be logged automatically.
|
|
# 2 - Untestable target. Retry with the "build" action.
|
|
|
|
BEGIN {
|
|
status = 0;
|
|
}
|
|
|
|
{
|
|
print;
|
|
fflush(stdout);
|
|
}
|
|
|
|
/A build only device cannot be used to run this target/ {
|
|
status = 1
|
|
}
|
|
|
|
END {
|
|
fflush(stdout);
|
|
exit status;
|
|
}
|