Closed AlJohri closed 3 years ago
$ xcodebuild -project SSLKillSwitch.xcodeproj -scheme SSLKillSwitch build test
note: Using new build system note: Planning build note: Constructing build description CreateBuildDirectory /Users/aljohri/Library/Developer/Xcode/DerivedData/SSLKillSwitch-gbvpbvffacspifebdwqouujhissl/Build/Intermediates.noindex (in target 'SSLKillSwitchTests' from project 'SSLKillSwitch') cd /Users/aljohri/Development/ssl-kill-switch2 builtin-create-build-directory /Users/aljohri/Library/Developer/Xcode/DerivedData/SSLKillSwitch-gbvpbvffacspifebdwqouujhissl/Build/Intermediates.noindex CreateBuildDirectory /Users/aljohri/Library/Developer/Xcode/DerivedData/SSLKillSwitch-gbvpbvffacspifebdwqouujhissl/Build/Products (in target 'SSLKillSwitchTests' from project 'SSLKillSwitch') cd /Users/aljohri/Development/ssl-kill-switch2 builtin-create-build-directory /Users/aljohri/Library/Developer/Xcode/DerivedData/SSLKillSwitch-gbvpbvffacspifebdwqouujhissl/Build/Products ProcessInfoPlistFile /Users/aljohri/Library/Developer/Xcode/DerivedData/SSLKillSwitch-gbvpbvffacspifebdwqouujhissl/Build/Products/Debug/SSLKillSwitch.framework/Versions/A/Resources/Info.plist /Users/aljohri/Development/ssl-kill-switch2/SSLKillSwitch/Info.plist (in target 'SSLKillSwitch' from project 'SSLKillSwitch') cd /Users/aljohri/Development/ssl-kill-switch2 builtin-infoPlistUtility /Users/aljohri/Development/ssl-kill-switch2/SSLKillSwitch/Info.plist -producttype com.apple.product-type.framework -expandbuildsettings -platform macosx -o /Users/aljohri/Library/Developer/Xcode/DerivedData/SSLKillSwitch-gbvpbvffacspifebdwqouujhissl/Build/Products/Debug/SSLKillSwitch.framework/Versions/A/Resources/Info.plist CodeSign /Users/aljohri/Library/Developer/Xcode/DerivedData/SSLKillSwitch-gbvpbvffacspifebdwqouujhissl/Build/Products/Debug/SSLKillSwitch.framework/Versions/A (in target 'SSLKillSwitch' from project 'SSLKillSwitch') cd /Users/aljohri/Development/ssl-kill-switch2 export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate Signing Identity: "-" /usr/bin/codesign --force --sign - --timestamp=none /Users/aljohri/Library/Developer/Xcode/DerivedData/SSLKillSwitch-gbvpbvffacspifebdwqouujhissl/Build/Products/Debug/SSLKillSwitch.framework/Versions/A /Users/aljohri/Library/Developer/Xcode/DerivedData/SSLKillSwitch-gbvpbvffacspifebdwqouujhissl/Build/Products/Debug/SSLKillSwitch.framework/Versions/A: replacing existing signature ProcessInfoPlistFile /Users/aljohri/Library/Developer/Xcode/DerivedData/SSLKillSwitch-gbvpbvffacspifebdwqouujhissl/Build/Products/Debug/SSLKillSwitchTests.xctest/Contents/Info.plist /Users/aljohri/Development/ssl-kill-switch2/SSLKillSwitchTests/Info.plist (in target 'SSLKillSwitchTests' from project 'SSLKillSwitch') cd /Users/aljohri/Development/ssl-kill-switch2 builtin-infoPlistUtility /Users/aljohri/Development/ssl-kill-switch2/SSLKillSwitchTests/Info.plist -producttype com.apple.product-type.bundle.unit-test -expandbuildsettings -platform macosx -o /Users/aljohri/Library/Developer/Xcode/DerivedData/SSLKillSwitch-gbvpbvffacspifebdwqouujhissl/Build/Products/Debug/SSLKillSwitchTests.xctest/Contents/Info.plist CodeSign /Users/aljohri/Library/Developer/Xcode/DerivedData/SSLKillSwitch-gbvpbvffacspifebdwqouujhissl/Build/Products/Debug/SSLKillSwitchTests.xctest (in target 'SSLKillSwitchTests' from project 'SSLKillSwitch') cd /Users/aljohri/Development/ssl-kill-switch2 export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate Signing Identity: "-" /usr/bin/codesign --force --sign - --timestamp=none /Users/aljohri/Library/Developer/Xcode/DerivedData/SSLKillSwitch-gbvpbvffacspifebdwqouujhissl/Build/Products/Debug/SSLKillSwitchTests.xctest /Users/aljohri/Library/Developer/Xcode/DerivedData/SSLKillSwitch-gbvpbvffacspifebdwqouujhissl/Build/Products/Debug/SSLKillSwitchTests.xctest: replacing existing signature ** BUILD SUCCEEDED ** note: Using new build system note: Planning build note: Constructing build description Testing started on 'My Mac' 2019-11-04 13:34:15.784 xcodebuild[2644:33050] IDETestOperationsObserverDebug: Writing diagnostic log for test session to: /Users/aljohri/Library/Developer/Xcode/DerivedData/SSLKillSwitch-gbvpbvffacspifebdwqouujhissl/Logs/Test/Run-SSLKillSwitch-2019.11.04_13-34-14--0500.xcresult/Staging/2_Test/Diagnostics/SSLKillSwitchTests-24291597-FA45-4A29-B986-0F07BFE36A8B/SSLKillSwitchTests-426690AA-9838-4415-8419-CB9635D6FF5D/Session-SSLKillSwitchTests-2019-11-04_133415-lKtDhh.log 2019-11-04 13:34:15.785 xcodebuild[2644:32941] [MT] IDETestOperationsObserverDebug: (8650D3A1-45D4-427A-AA69-D6A1A5308167) Beginning test session SSLKillSwitchTests-8650D3A1-45D4-427A-AA69-D6A1A5308167 at 2019-11-04 13:34:15.785 with Xcode 11A1027 on target <DVTLocalComputer: 0x7fb6266f7020 (My Mac | x86_64h)> (10.15 (19A602)) 2019-11-04 13:34:16.199 xcodebuild[2644:32941] [MT] IDETestOperationsObserverDebug: (8650D3A1-45D4-427A-AA69-D6A1A5308167) Finished requesting crash reports. Continuing with testing. 2019-11-04 13:34:16.719999-0500 xctest[2664:33310] === SSL Kill Switch 2: Fishhook hook enabled. Test Suite 'All tests' started at 2019-11-04 13:34:16.779 Test Suite 'SSLKillSwitchTests.xctest' started at 2019-11-04 13:34:16.780 Test Suite 'SKSEndToEndNSURLSessionTests' started at 2019-11-04 13:34:16.780 Test Case '-[SKSEndToEndNSURLSessionTests test]' started. 2019-11-04 13:34:16.934316-0500 xctest[2664:33325] Received error, Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=https://www.google.com/, NSErrorFailingURLKey=https://www.google.com/, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <5342B99E-011F-4378-B34A-2FAA125DAE42>.<1>" ), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <5342B99E-011F-4378-B34A-2FAA125DAE42>.<1>, NSLocalizedDescription=cancelled} /Users/aljohri/Development/ssl-kill-switch2/SSLKillSwitchTests/SSLKillSwitchTests.m:118: error: -[SKSEndToEndNSURLSessionTests test] : ((delegate.lastResponse) != nil) failed - TLS certificate was rejected although all TLS validation was disabled 2019-11-04 13:34:16.935996-0500 xctest[2664:33602] Task <5342B99E-011F-4378-B34A-2FAA125DAE42>.<1> HTTP load failed, 0/0 bytes (error code: -999 [1:89]) /Users/aljohri/Development/ssl-kill-switch2/SSLKillSwitchTests/SSLKillSwitchTests.m:119: error: -[SKSEndToEndNSURLSessionTests test] : ((delegate.lastError) == nil) failed: "Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=https://www.google.com/, NSErrorFailingURLKey=https://www.google.com/, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <5342B99E-011F-4378-B34A-2FAA125DAE42>.<1>" ), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <5342B99E-011F-4378-B34A-2FAA125DAE42>.<1>, NSLocalizedDescription=cancelled}" - TLS certificate was rejected although all TLS validation was disabled Test Case '-[SKSEndToEndNSURLSessionTests test]' failed (0.166 seconds). Test Suite 'SKSEndToEndNSURLSessionTests' failed at 2019-11-04 13:34:16.949. Executed 1 test, with 2 failures (0 unexpected) in 0.166 (0.169) seconds Test Suite 'SSLKillSwitchTests.xctest' failed at 2019-11-04 13:34:16.950. Executed 1 test, with 2 failures (0 unexpected) in 0.166 (0.170) seconds Test Suite 'All tests' failed at 2019-11-04 13:34:16.950. Executed 1 test, with 2 failures (0 unexpected) in 0.166 (0.172) seconds 2019-11-04 13:34:17.216 xcodebuild[2644:32941] [MT] IDETestOperationsObserverDebug: 1.438 elapsed -- Testing started completed. 2019-11-04 13:34:17.216 xcodebuild[2644:32941] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start 2019-11-04 13:34:17.216 xcodebuild[2644:32941] [MT] IDETestOperationsObserverDebug: 1.438 sec, +1.438 sec -- end Test session results, code coverage, and logs: /Users/aljohri/Library/Developer/Xcode/DerivedData/SSLKillSwitch-gbvpbvffacspifebdwqouujhissl/Logs/Test/Run-SSLKillSwitch-2019.11.04_13-34-14--0500.xcresult Failing tests: SSLKillSwitchTests: -[SKSEndToEndNSURLSessionTests test] -[SKSEndToEndNSURLSessionTests test] ** TEST FAILED **