Idean / sonar-swift

Open source Swift plugin for SonarQube (also supports Objective-C)
Other
898 stars 276 forks source link

xcodebuild: error: Scheme napos is not currently configured for the test action. #227

Closed pangyingchen closed 5 years ago

pangyingchen commented 5 years ago

sonar-project.properties sonar.projectKey=naposKey sonar.projectName=naposName sonar.projectVersion=1.0 sonar.language=swift sonar.projectDescription=prjDescription sonar.sources=***/gitWorkspace/morrowind/napos sonar.swift.simulator=platform=iOS Simulator,name=iPhone 7,OS=12.2 sonar.swift.project=napos.xcodeproj sonar.swift.workspace=napos.xcworkspace sonar.swift.appScheme=napos sonar.sourceEncoding=UTF-8 sonar.swift.excludedPathsFromCoverage=.Tests.*

run-sonar-switf.sh

▸ Running script '[CP] Copy Pods Resources' ▸ Touching napos.app (in target: napos) ▸ Build Succeeded actual = 24360169, min = 3 -n Running surefire

运行sh脚本,抛如上异常,大家有遇到过吗,有什么解决建议吗

derekibw commented 5 years ago

I have the same problem, did you have solved?

davidy4ng commented 5 years ago

Are you able to run your unit tests with the given command line?

xcodebuild clean build test -workspace napos.xcworkspace -scheme napos -configuration Debug -enableCodeCoverage YES -destination 'platform=iOS Simulator,name=iPhone 7,OS=12.2' -destination-timeout 60

Also, check if your test scheme is set to Shared.

gaelfoppolo commented 5 years ago

Does it solves your issue @pangyingchen @derekibw?

gaelfoppolo commented 5 years ago

Closing this issue. Please open a new one if you're experiencing this.