sonar-swift
sonar-swift copied to clipboard
./run-sonar-swift.sh: line 101: slather: command not found
Hi ,
i am not able to run the ./run-sonar-swift.sh -v in terminal.Can any one face similar issue.?
./run-sonar-swift.sh -v Running run-sonar-swift.sh... Project count is [1] 2020-08-09 15:55:49.997 defaults[4341:115345] The domain/default pair of (/Users/thejeswara.reddy/Desktop/SonarCubeDemo/SonarCubeDemo/Info.plist, CFBundleShortVersionString) does not exist Xcode project file is: SonarCubeDemo.xcodeproj Xcode workspace file is: SonarCubeDemo.xcworkspace Xcode application scheme is: SonarCubeDemo Number version from plist is: Destination simulator is: platform=iOS Simulator,name=iPhone 11 Pro Max,OS=13.3 Excluded paths from coverage are: Creating directory sonar-reports/ Extracting Xcode project information
-
xcodebuild clean build -workspace SonarCubeDemo.xcworkspace -scheme SonarCubeDemo -destination 'platform=iOS Simulator,name=iPhone 11 Pro Max,OS=13.3' -destination-timeout 360 COMPILER_INDEX_STORE_ENABLE=NO
-
returnValue=0
-
set +x ▸ Clean Succeeded The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 13.2, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'Pods-SonarCubeDemo' from project 'Pods') ▸ Copying Pods-SonarCubeDemo-umbrella.h ▸ Processing Pods-SonarCubeDemo-Info.plist ▸ Compiling Pods-SonarCubeDemo-dummy.m ▸ Compiling Pods_SonarCubeDemo_vers.c ▸ Touching Pods_SonarCubeDemo.framework (in target 'Pods-SonarCubeDemo' from project 'Pods') ▸ Running script '[CP] Check Pods Manifest.lock' ▸ Compiling ViewController.swift ▸ Compiling AppDelegate.swift ▸ Compiling SceneDelegate.swift ▸ Linking SonarCubeDemo ▸ Compiling Main.storyboard ▸ Compiling LaunchScreen.storyboard ▸ Processing Info.plist ▸ Touching SonarCubeDemo.app (in target 'SonarCubeDemo' from project 'SonarCubeDemo') ▸ Build Succeeded actual = 10551, min = 3 Running surefire
-
xcodebuild clean build test -workspace SonarCubeDemo.xcworkspace -scheme SonarCubeDemo -configuration Debug -enableCodeCoverage YES -destination 'platform=iOS Simulator,name=iPhone 11 Pro Max,OS=13.3' -destination-timeout 60 2020-08-09 15:56:06.076 xcodebuild[4426:116422] IDETestOperationsObserverDebug: Writing diagnostic log for test session to: /Users/thejeswara.reddy/Library/Developer/Xcode/DerivedData/SonarCubeDemo-bngjgidbauijnrdcdbonmplabfvr/Logs/Test/Run-SonarCubeDemo-2020.08.09_15-56-02-+0530.xcresult/Staging/3_Test/Diagnostics/SonarCubeDemoTests-E6837CA6-762E-4FD1-B5E6-82030ABBFAF7/SonarCubeDemoTests-AB1B2CBA-2CE1-4858-A5FD-996974941566/Session-SonarCubeDemoTests-2020-08-09_155606-R0Sanx.log 2020-08-09 15:56:06.077 xcodebuild[4426:116359] [MT] IDETestOperationsObserverDebug: (9FD317EA-B816-46B1-BF3C-EB48BAF18170) Beginning test session SonarCubeDemoTests-9FD317EA-B816-46B1-BF3C-EB48BAF18170 at 2020-08-09 15:56:06.077 with Xcode 11A1027 on target <DVTiPhoneSimulator: 0x7fd8f9553ba0> { SimDevice: iPhone 11 Pro Max (375C875A-D564-4DBB-922A-62EEC7F1B16D, iOS 13.3, Booted) } (13.3 (17C45)) 2020-08-09 15:56:06.111 xcodebuild[4426:116359] [MT] IDETestOperationsObserverDebug: (9FD317EA-B816-46B1-BF3C-EB48BAF18170) Finished requesting crash reports. Continuing with testing. 2020-08-09 15:56:06.893 xcodebuild[4426:116359] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-14802/IDEiOSSupportCore/DVTiPhoneSimulator.m:1890 Details: [DVTiPhoneSimulator -primaryInstrumentsServer was called from the main thread Object: <DVTiPhoneSimulator: 0x7fd8f9553ba0> Method: -primaryInstrumentsServerWithError: Thread: <NSThread: 0x7fd8f4413370>{number = 1, name = main} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. 2020-08-09 15:56:08.243 xcodebuild[4426:116541] IDETestOperationsObserverDebug: Writing diagnostic log for test session to: /Users/thejeswara.reddy/Library/Developer/Xcode/DerivedData/SonarCubeDemo-bngjgidbauijnrdcdbonmplabfvr/Logs/Test/Run-SonarCubeDemo-2020.08.09_15-56-02-+0530.xcresult/Staging/3_Test/Diagnostics/SonarCubeDemoUITests-18A92842-D5EB-4FFF-958F-3BAD7F530F70/SonarCubeDemoUITests-4252FFC9-EE84-45A4-B8BF-04724D64CC43/Session-SonarCubeDemoUITests-2020-08-09_155608-oTllCV.log 2020-08-09 15:56:08.243 xcodebuild[4426:116359] [MT] IDETestOperationsObserverDebug: (A722CD31-5A01-4F4F-B46D-E1ECA95004D2) Beginning test session SonarCubeDemoUITests-A722CD31-5A01-4F4F-B46D-E1ECA95004D2 at 2020-08-09 15:56:08.243 with Xcode 11A1027 on target <DVTiPhoneSimulator: 0x7fd8f9553ba0> { SimDevice: iPhone 11 Pro Max (375C875A-D564-4DBB-922A-62EEC7F1B16D, iOS 13.3, Booted) } (13.3 (17C45)) 2020-08-09 15:56:08.250 xcodebuild[4426:116359] [MT] IDETestOperationsObserverDebug: (A722CD31-5A01-4F4F-B46D-E1ECA95004D2) Finished requesting crash reports. Continuing with testing. 2020-08-09 15:56:10.749 xcodebuild[4426:116359] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-14802/IDEiOSSupportCore/DVTiPhoneSimulator.m:1890 Details: [DVTiPhoneSimulator -primaryInstrumentsServer was called from the main thread Object: <DVTiPhoneSimulator: 0x7fd8f9553ba0> Method: -primaryInstrumentsServerWithError: Thread: <NSThread: 0x7fd8f4413370>{number = 1, name = main} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. 2020-08-09 15:56:12.670 xcodebuild[4426:116359] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-14802/IDEiOSSupportCore/DVTiPhoneSimulator.m:1890 Details: [DVTiPhoneSimulator -primaryInstrumentsServer was called from the main thread Object: <DVTiPhoneSimulator: 0x7fd8f9553ba0> Method: -primaryInstrumentsServerWithError: Thread: <NSThread: 0x7fd8f4413370>{number = 1, name = main} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. 2020-08-09 15:56:15.765 xcodebuild[4426:116359] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-14802/IDEiOSSupportCore/DVTiPhoneSimulator.m:1890 Details: [DVTiPhoneSimulator -primaryInstrumentsServer was called from the main thread Object: <DVTiPhoneSimulator: 0x7fd8f9553ba0> Method: -primaryInstrumentsServerWithError: Thread: <NSThread: 0x7fd8f4413370>{number = 1, name = main} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. 2020-08-09 15:56:19.075 xcodebuild[4426:116359] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-14802/IDEiOSSupportCore/DVTiPhoneSimulator.m:1890 Details: [DVTiPhoneSimulator -primaryInstrumentsServer was called from the main thread Object: <DVTiPhoneSimulator: 0x7fd8f9553ba0> Method: -primaryInstrumentsServerWithError: Thread: <NSThread: 0x7fd8f4413370>{number = 1, name = main} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. 2020-08-09 15:56:22.000 xcodebuild[4426:116359] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-14802/IDEiOSSupportCore/DVTiPhoneSimulator.m:1890 Details: [DVTiPhoneSimulator -primaryInstrumentsServer was called from the main thread Object: <DVTiPhoneSimulator: 0x7fd8f9553ba0> Method: -primaryInstrumentsServerWithError: Thread: <NSThread: 0x7fd8f4413370>{number = 1, name = main} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. 2020-08-09 15:56:24.942 xcodebuild[4426:116359] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-14802/IDEiOSSupportCore/DVTiPhoneSimulator.m:1890 Details: [DVTiPhoneSimulator -primaryInstrumentsServer was called from the main thread Object: <DVTiPhoneSimulator: 0x7fd8f9553ba0> Method: -primaryInstrumentsServerWithError: Thread: <NSThread: 0x7fd8f4413370>{number = 1, name = main} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. 2020-08-09 15:56:28.097 xcodebuild[4426:116359] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-14802/IDEiOSSupportCore/DVTiPhoneSimulator.m:1890 Details: [DVTiPhoneSimulator -primaryInstrumentsServer was called from the main thread Object: <DVTiPhoneSimulator: 0x7fd8f9553ba0> Method: -primaryInstrumentsServerWithError: Thread: <NSThread: 0x7fd8f4413370>{number = 1, name = main} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. 2020-08-09 15:56:31.054 xcodebuild[4426:116359] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-14802/IDEiOSSupportCore/DVTiPhoneSimulator.m:1890 Details: [DVTiPhoneSimulator -primaryInstrumentsServer was called from the main thread Object: <DVTiPhoneSimulator: 0x7fd8f9553ba0> Method: -primaryInstrumentsServerWithError: Thread: <NSThread: 0x7fd8f4413370>{number = 1, name = main} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. 2020-08-09 15:56:32.891 xcodebuild[4426:116359] [MT] IDETestOperationsObserverDebug: 26.821 elapsed -- Testing started completed. 2020-08-09 15:56:32.891 xcodebuild[4426:116359] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start 2020-08-09 15:56:32.891 xcodebuild[4426:116359] [MT] IDETestOperationsObserverDebug: 26.821 sec, +26.821 sec -- end
-
returnValue=0
-
set +x The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 13.2, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'Pods-SonarCubeDemo' from project 'Pods')The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 13.2, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'Pods-SonarCubeDemo' from project 'Pods')The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 13.2, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'Pods-SonarCubeDemo-SonarCubeDemoUITests' from project 'Pods')warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 13.2, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'Pods-SonarCubeDemoTests' from project 'Pods')warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 13.2, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'SonarCubeDemoTests' from project 'SonarCubeDemo').T.
Executed 2 tests, with 0 failures (0 unexpected) in 0.278 (0.280) seconds ..
Executed 2 tests, with 0 failures (0 unexpected) in 20.579 (20.582) seconds \nComputing coverage report\n Command line exclusion flags for slather is: slather coverage --binary-basename SonarCubeDemo --input-format profdata --cobertura-xml --output-directory sonar-reports --workspace SonarCubeDemo.xcworkspace --scheme SonarCubeDemo SonarCubeDemo.xcodeproj
-
slather coverage --binary-basename SonarCubeDemo --input-format profdata --cobertura-xml --output-directory sonar-reports --workspace SonarCubeDemo.xcworkspace --scheme SonarCubeDemo SonarCubeDemo.xcodeproj ./run-sonar-swift.sh: line 101: slather: command not found
-
returnValue=127
-
set +x ERROR - Command 'slather coverage --binary-basename SonarCubeDemo --input-format profdata --cobertura-xml --output-directory sonar-reports --workspace SonarCubeDemo.xcworkspace --scheme SonarCubeDemo SonarCubeDemo.xcodeproj' failed with error code: 127
Environment Mac OS Catalina Xcode 11.3.1 Swift4.2
Have you installed slather
? It's required. If not, you can install with gem install slather
.
Hi @benjamin-wen ,
I missed out slather install.
After slather install it's working fine.
Thanks @benjamin-wen
@thejaa Glad to hear that it helps. And maybe you can close the issue.