Open wyw1984 opened 2 years ago
1.是oc和swift混编 2.命令如下
pod update
xcodebuild clean -workspace MyApp.xcworkspace -scheme MyApp -arch arm64 -configuration "Release"
xcodebuild -workspace MyApp.xcworkspace -scheme MyApp -arch arm64 -configuration "Release" GCC_PREPROCESSOR_DEFINITIONS="COCOAPODS=1" CODE_SIGN_STYLE="Manual" PROVISIONING_STYLE="Manual" DEVELOPMENT_TEAM="xxx" CODE_SIGN_IDENTITY="xxx" PROVISIONING_PROFILE="xxx" PROVISIONING_PROFILE_SPECIFIER="xxx" | xcpretty -r json-compilation-database -o compile_commands.json
rm -rf swiftlint
mkdir swiftlint
swiftlint lint > swiftlint/swiftlint.txt
sonar-scanner -Dsonar.host.url=http://10.155.59.201:9000/ -Dsonar.projectKey=MyApp -Dsonar.sources=. -Dsonar.swift.swiftlint.report=swiftlint/swiftlint.txt -Dsonar.login=admin -Dsonar.password=111111
xcodebuild是成功了的,为了保密打包证书都替换成了xxx , 如果只是swift语言 好像不用执行xcodebuild也一样能扫描 不过还是报同样的WARN: file not included in sonar
去掉了也不行,还是报WARN: file not included in sonar
去掉了也不行,还是报WARN: file not included in sonar
执行 sonar-scanner 里加一个 -X
,然后发一下 WARN: file not included in sonar
这个详细日志
hello,我也遇到了和楼主一样的问题,也是没有任何bug和异味,也出现了图中的警告,请问楼主解决了吗?是如何解决的?
您好,当工程中有Pods文件时会报如图的警告 WARN: file not included in sonar /Users/Shared/work
sonarqube里也没有任何bug和异味,组件化后,我们的代码都在pods里,这个怎么解决呢?