Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There was nothing to analyze, No issues found , infer 1.2.0 , macOS 15 beta, xcode16 beta #1844

Open
gm958spanda opened this issue Jun 26, 2024 · 1 comment

Comments

@gm958spanda
Copy link

gm958spanda commented Jun 26, 2024

env:

ios App project:
ios_hello (https://github.com/facebook/infer/tree/main/examples/ios_hello)

command :
cd /some path/ios_hello
/some path/infer-osx-arm64-v1.2.0/bin/infer run -- xcodebuild -target HellpWorldApp -configuration Debug -sdk iphonesimulator clean build

result:
XCODEBUILD: ** BUILD SUCCEEDED **
Noting to compile . Try cleaning the build first
There was nothing to analyze
No issues found

1
infer-out.zip

@gm958spanda gm958spanda changed the title There was nothing to analyze, No issues found for example(ios_hello) , infer 1.2.0 , macOS 15 beta, xcode16 beta There was nothing to analyze, No issues found , infer 1.2.0 , macOS 15 beta, xcode16 beta Jul 1, 2024
@gm958spanda
Copy link
Author

I resolved this 。

step 0 (optional):
brew install zstd

step 1 (optional):
export PATH="$PATH:/some path/infer-osx-arm64-v1.2.0/bin"

step 2:
xcodebuild_cmd="xcodebuild -target HellpWorldApp -configuration Debug -sdk iphonesimulator"
$xcodebuild_cmd clean
$xcodebuild_cmd | tee xcodebuild.log
xcpretty -r json-compliation-database -o compile_commands.json < xccodebuild.log > /dev/null

step 3:
modify content of compile_commands.json

  1. replace "file":null to "file":"" ( xcpretty parse error,)
  2. delete -ivfsstatcache /xxxxx/xxxxx.sdkstatche , (xcodebuild log changed)

step 4:
infer run --keep-going --skip-analysis-in-path Pods --compilation-database complie_commands.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant