infer icon indicating copy to clipboard operation
infer copied to clipboard

Sys_error "executable_path/Frameworks: No such file or directory"

Open nobuf opened this issue 8 years ago • 28 comments

xcodebuild \
    -configuration Debug \
    -scheme MyApp \
    -sdk iphonesimulator

While the above command ends with BUILD SUCCEEDED,

infer run -- xcodebuild \
    -configuration Debug \
    -scheme MyApp \
    -sdk iphonesimulator

receives:

Undefined symbols for architecture x86_64:
  "___isOSVersionAtLeast", referenced from:
    ...skip...
    ...
ld: symbol(s) not found for architecture x86_64
Error reading argument file '@executable_path/Frameworks': (Sys_error "executable_path/Frameworks: No such file or directory")
Error reading argument file '@executable_path/Frameworks': (Sys_error "executable_path/Frameworks: No such file or directory")
Error reading argument file '@executable_path/Frameworks': (Sys_error "executable_path/Frameworks: No such file or directory")
Error: the following clang command did not run successfully:
    /Applications/Xcode.app/Contents/Developer/usr/bin/ld -demangle

    ...skip...

++Error reading file 'executable_path/Frameworks':
    (Sys_error "executable_path/Frameworks: No such file or directory")

** BUILD FAILED **

With LD=/usr/bin/true:

LD=/usr/bin/true infer run -- xcodebuild \
    -configuration Debug \
    -scheme MyApp \
    -sdk iphonesimulator
error: cannot parse the debug map for "/Users/nobu/Library/Developer/Xcode/DerivedData/MyApp-azcdslmnxtqakabjbatxfecxavcy/Build/Products/Debug-iphonesimulator/MyApp.app/MyApp": No such file or directory

The project uses Carthage. Am I missing anything?

The paths of the files you want to analyze (including their names) do not have whitespaces in them.

On the website it mentions about space in paths, though I don't think this is the case.

infer --version
Infer version v0.15.0

xcodebuild -version
Xcode 9.4
Build version 9F1027a

Thanks!

nobuf avatar Jun 13 '18 07:06 nobuf

I have same issue: ++Error reading file 'executable_path/Frameworks': (Sys_error "executable_path/Frameworks: No such file or directory")

++Error reading file 'loader_path/Frameworks': (Sys_error "loader_path/Frameworks: No such file or directory")

** BUILD FAILED **

The following build commands failed: Ld /Users/distribution/Library/Developer/Xcode/DerivedData/app-atiysgkmzpusawakxnvsmkhkpfob/Build/Products/Debug-iphonesimulator/app.app/app normal x86_64 (1 failure) Internal Error: /usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../lib/python/infer.py -j 8 --project-root /Users/distribution/.jenkins/workspace/infer_IOS_XXX --out /Users/distribution/.jenkins/workspace/infer_IOS_XXX/infer-out -- xcodebuild build -scheme app -workspace app.xcworkspace -configuration Debug -sdk iphonesimulator: exited with code 65 Error backtrace: Raised at file "base/Die.ml" (inlined), line 25, characters 6-36 Called from file "base/Logging.ml", line 314, characters 58-80 Called from file "integration/Driver.ml", line 159, characters 2-16 Called from file "integration/Driver.ml", line 280, characters 6-420 Called from file "infer.ml", line 20, characters 2-36 Called from file "infer.ml", line 130, characters 8-54

jared198504 avatar Jun 14 '18 02:06 jared198504

Thanks for the report. The recommended way to analyse Xcode projects is via a compilation database with xcpretty and passing it to infer separately. This workflow is outlined in the online docs here. Let me know if that helps.

@nobuf I'll update the section of the doc you pointed to as the issue with whitespace has been closed.

jvillard avatar Jun 15 '18 09:06 jvillard

gem install xcpretty
xcpretty --version
0.2.8

After clean,

xcodebuild -configuration Debug \
    -scheme MyApp \
    -sdk iphonesimulator | tee xcodebuild.log
xcpretty -r json-compilation-database -o compile_commands.json < xcodebuild.log
infer run --compilation-database-escaped compile_commands.json

The doc maybe not up-to-date, --clang-compilation-db-files-escaped seems deprecated as of 0.15.0.

infer run --compilation-database-escaped compile_commands.json

Capturing using compilation database...
Starting translating and linting 220 files
error: error reading '/Users/nobu/Library/Developer/Xcode/DerivedData/MyApp-azcdslmnxtqakabjbatxfecxavcy/Index/DataStore'
1 error generated.
error: error reading '/Users/nobu/Library/Developer/Xcode/DerivedData/MyApp-azcdslmnxtqakabjbatxfecxavcy/Index/DataStore'
error: error reading '/Users/nobu/Library/Developer/Xcode/DerivedData/MyApp-azcdslmnxtqakabjbatxfecxavcy/Index/DataStore'
1 error generated.
1 error generated.
error: error reading '/Users/nobu/Library/Developer/Xcode/DerivedData/MyApp-azcdslmnxtqakabjbatxfecxavcy/Index/DataStore'
1 errorUncaught Internal Error: (Bi_inbuf.End_of_input)
Error backtrace:
Raised at file "src/bi_inbuf.ml", line 49, characters 6-24
Called from file "src/bi_io.ml" (inlined), line 508, characters 12-35
Called from file "atd/clang_ast_b.ml", line 27643, characters 7-24
Called from file "clang/Capture.ml", line 56, characters 8-39
Called from file "clang/Capture.ml" (inlined), line 101, characters 6-35
Called from file "clang/Capture.ml", line 170, characters 26-73
Re-raised at file "istd/IExn.ml" (inlined), line 18, characters 15-63
Called from file "clang/Capture.ml" (inlined), line 102, characters 4-60
Called from file "clang/Capture.ml", line 170, characters 26-73
Called from file "base/Utils.ml" (inlined), line 218, characters 13-22
Called from file "base/Utils.ml" (inlined), line 165, characters 8-12
Called from file "base/Utils.ml", line 220, characters 2-40
Re-raised at file "istd/IExn.ml" (inlined), line 13, characters 2-50
Called from file "base/Uti generated.
ls.ml" (inlined), line 166, characters 6-141
Called from file "base/Utils.ml", line 220, characters 2-40
Called from file "clang/Capture.ml" (inlined), line 113, characters 8-78
Called from file "clang/Capture.ml" (inlined), line 140, characters 2-37
Called from file "clang/Capture.ml", line 169, characters 8-138
Called from file "clang/ClangWrapper.ml" (inlined), line 171, characters 15-45
Called from file "list.ml" (inlined), line 100, characters 12-15
Called from file "list.ml" (inlined), line 98, characters 13-64
Called from file "src/list0.ml" (inlined), line 26, characters 40-75
Called from file "clang/ClangWrapper.ml", line 171, characters 2-54
Called from file "infer.ml", line 20, characters 2-36
Called from file "infer.ml", line 130, characters 8-54

...repeated messages...

Run the command again with `--keep-going` to try and ignore this error.
EEEEEEEEEEEEEEEEE!EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE!EEEEEEEEEEEEEEEEEE!EEEEEEEEE
Failure detected, capture did not finish successfully. Use `--keep-going` to ignore compilation errors. Terminating

/Users/nobu/Library/Developer/Xcode/DerivedData/MyApp-azcdslmnxtqakabjbatxfecxavcy/Index/DataStore has a directory named v5.

The error looks like the same as https://github.com/facebook/infer/issues/886 but I'm using v0.15.0.

clang --version
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

nobuf avatar Jun 15 '18 17:06 nobuf

xcodebuild -workspace app.xcworkspace -scheme app -configuration Debug -sdk iphonesimulator clean
xcodebuild -workspace app.xcworkspace -scheme app -configuration Debug -sdk iphonesimulator | tee xcodebuild.log
cat xcodebuild.log | xcpretty -r json-compilation-database -o compile_commands.json &> /dev/null
infer run --skip-analysis-in-path Pods --clang-compilation-db-files-escaped compile_commands.json

There are some error, and remind me add --keep-going to try and ignore this error.

Starting translating and linting 2375 files
error: error reading '/Users/distribution/Library/Developer/Xcode/DerivedData/app-atiysgkmzpusawakxnvsmkhkpfob/Index/DataStore'
1 error generated.
Uncaught Internal Error: (Bi_inbuf.End_of_input)
Error backtrace:
Raised at file "src/bi_inbuf.ml", line 49, characters 6-24
Called from file "src/bi_io.ml" (inlined), line 508, characters 12-35
Called from file "atd/clang_ast_b.ml", line 27643, characters 7-24
Called from file "clang/Capture.ml", line 56, characters 8-39
Called from file "clang/Capture.ml" (inlined), line 101, characters 6-35
Called from file "clang/Capture.ml", line 170, characters 26-73
Re-raised at file "istd/IExn.ml" (inlined), line 18, characters 15-63
Called from file "clang/Capture.ml" (inlined), line 102, characters 4-60
Called from file "clang/Capture.ml", line 170, characters 26-73
Called from file "base/Utils.ml" (inlined), line 218, characters 13-22
Called from file "base/Utils.ml" (inlined), line 165, characters 8-12
Called from file "base/Utils.ml", line 220, characters 2-40
Re-raised at file "istd/IExn.ml" (inlined), line 13, characters 2-50
Called from file "base/Utils.ml" (inlined), line 166, characters 6-141
Called from file "base/Utils.ml", line 220, characters 2-40
Called from file "clang/Capture.ml" (inlined), line 113, characters 8-78
Called from file "clang/Capture.ml" (inlined), line 140, characters 2-37
Called from file "clang/Capture.ml", line 169, characters 8-138
Called from file "clang/ClangWrapper.ml" (inlined), line 171, characters 15-45
Called from file "list.ml" (inlined), line 100, characters 12-15
Called from file "list.ml" (inlined), line 98, characters 13-64
Called from file "src/list0.ml" (inlined), line 26, characters 40-75
Called from file "clang/ClangWrapper.ml", line 171, characters 2-54
Called from file "infer.ml", line 20, characters 2-36
Called from file "infer.ml", line 130, characters 8-54

Run the command again with `--keep-going` to try and ignore this error.
!EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEerror: error reading 

And I added --keep-going

xcodebuild -workspace app.xcworkspace -scheme app -configuration Debug -sdk iphonesimulator clean
xcodebuild -workspace app.xcworkspace -scheme app -configuration Debug -sdk iphonesimulator | tee xcodebuild.log
cat xcodebuild.log | xcpretty -r json-compilation-database -o compile_commands.json &> /dev/null
infer run --keep-going --skip-analysis-in-path Pods --clang-compilation-db-files-escaped compile_commands.json

error message

nothing to compile. Try cleaning the build first.
There was nothing to analyze.
!error: error reading '/Users/gujie/Library/Developer/Xcode/DerivedData/app-bkkfqphopponinaeteptcxahzhkj/Index/DataStore'
1 error generated.
ERROR RUNNING CAPTURE: Bi_inbuf.End_of_input
Raised at file "src/bi_inbuf.ml", line 49, characters 6-24
Called from file "src/bi_io.ml" (inlined), line 508, characters 12-35
Called from file "atd/clang_ast_b.ml", line 27643, characters 7-24
Called from file "clang/Capture.ml", line 56, characters 8-39
Called from file "clang/Capture.ml" (inlined), line 101, characters 6-35
Called from file "clang/Capture.ml", line 170, characters 26-73

Error: the following clang command did not run successfully:
    /usr/local/Cellar/infer/0.15.0/lib/infer/facebook-clang-plugins/clang/install/bin/clang
    @/var/folders/4j/pggbtg3n6bb9dwvlp_1b6m4h0000gn/T/clang_command_.tmp.311f11.txt
  ++Contents of '/var/folders/4j/pggbtg3n6bb9dwvlp_1b6m4h0000gn/T/clang_command_.tmp.311f11.txt':
    "-cc1" "-load"
    "/usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../../facebook-clang-plugins/libtooling/build/FacebookClangPlugin.dylib"
    "-plugin" "BiniouASTExporter" "-plugin-arg-BiniouASTExporter" "-"
    "-plugin-arg-BiniouASTExporter" "PREPEND_CURRENT_DIR=1"
    "-plugin-arg-BiniouASTExporter" "MAX_STRING_SIZE=65535" "-cc1" "-triple"
    "x86_64-apple-ios6.0.0-simulator" "-Wdeprecated-objc-isa-usage"
    "-Werror=deprecated-objc-isa-usage"
    "-Werror=implicit-function-declaration" "-fsyntax-only" "-disable-free"
    "-disable-llvm-verifier" "-discard-value-names" "-main-file-name"

jared198504 avatar Jun 19 '18 07:06 jared198504

Error: the following clang command did not run successfully:

Ah, that part is interesting! Is there anything more in that command after the last line or does it stop there?

"-disable-llvm-verifier" "-discard-value-names" "-main-file-name"

jvillard avatar Jun 19 '18 09:06 jvillard

 "-disable-llvm-verifier" "-discard-value-names" "-main-file-name"
    "DataStore" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model"
    "posix" "-mdisable-fp-elim" "-masm-verbose" "-munwind-tables"
    "-faligned-alloc-unavailable" "-target-cpu" "core2" "-dwarf-column-info"
    "-debug-info-kind=standalone" "-dwarf-version=2" "-debugger-tuning=lldb"
    "-target-linker-version" "351.8" "-resource-dir"
    "/usr/local/Cellar/infer/0.15.0/lib/infer/facebook-clang-plugins/clang/install/lib/clang/7.0.0"
    "-dependency-file"
    "/Users/distribution/Library/Developer/Xcode/DerivedData/app-atiysgkmzpusawakxnvsmkhkpfob/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/YYText.build/Objects-normal/x86_64/YYTextMagnifier.d"
    "-MT" "dependencies" "-isysroot"
    "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk"
    "-iquote"
    "/Users/distribution/Library/Developer/Xcode/DerivedData/app-atiysgkmzpusawakxnvsmkhkpfob/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/YYText.build/YYText-generated-files.hmap"
    "-iquote"
    "/Users/distribution/Library/Developer/Xcode/DerivedData/app-atiysgkmzpusawakxnvsmkhkpfob/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/YYText.build/YYText-project-headers.hmap"
    "-include"
    "/Users/distribution/.jenkins/workspace/infer_IOS_NewTruck/Pods/Target Support Files/YYText/YYText-prefix.pch"
    "-include"
    "/usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../lib/clang_wrappers/global_defines.h"
    "-D" "POD_CONFIGURATION_DEBUG=1" "-D" "DEBUG=1" "-D" "COCOAPODS=1" "-D"
    "OBJC_OLD_DISPATCH_PROTOTYPES=0" "-I"
    "/Users/distribution/Library/Developer/Xcode/DerivedData/app-atiysgkmzpusawakxnvsmkhkpfob/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/YYText.build/YYText-own-target-headers.hmap"
    "-I"
    "/Users/distribution/Library/Developer/Xcode/DerivedData/app-atiysgkmzpusawakxnvsmkhkpfob/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/YYText.build/YYText-all-target-headers.hmap"
    "-I"
    "/Users/distribution/Library/Developer/Xcode/DerivedData/app-atiysgkmzpusawakxnvsmkhkpfob/Build/Products/Debug-iphonesimulator/YYText/include"
    "-I"
    "/Users/distribution/.jenkins/XXX"
    "-I"
    "/Users/distribution/.jenkins/XXX"
    "-I"
    "/Users/distribution/.jenkins/XXX"
    "-I"
    "/Users/distribution/.jenkins/workspace/XXX"
    "-I"
    "/Users/distribution/.jenkins/workspace/XXX"
    "-I"
    "/Users/distribution/.jenkins/workspace/XXX"
    "-I"
    "/Users/distribution/.jenkins/workspace/XXX"
    "-I"
    "/Users/distribution/.jenkins/workspace/XXX"
    "-I"
    "/Users/distribution/.jenkins/workspace/XXX"
    "-I"
    "/Users/distribution/.jenkins/workspace/XXX"
    "-I"
    "/Users/distribution/.jenkins/workspace/XXX"
    "-I"
    "/Users/distribution/.jenkins/workspace/XXX"
    "-I"
    "/Users/distribution/Library/Developer/Xcode/DerivedData/app-atiysgkmzpusawakxnvsmkhkpfob/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/YYText.build/DerivedSources/x86_64"
    "-I"
    "/Users/distribution/Library/Developer/Xcode/DerivedData/app-atiysgkmzpusawakxnvsmkhkpfob/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/YYText.build/DerivedSources"
    "-F/Users/distribution/Library/Developer/Xcode/DerivedData/app-atiysgkmzpusawakxnvsmkhkpfob/Build/Products/Debug-iphonesimulator/YYText"
    "-O0" "-Wnon-modular-include-in-framework-module"
    "-Werror=non-modular-include-in-framework-module" "-Wno-trigraphs"
    "-Wno-missing-field-initializers" "-Wno-missing-prototypes"
    "-Werror=return-type" "-Wdocumentation" "-Wunreachable-code"
    "-Wno-implicit-atomic-properties" "-Werror=deprecated-objc-isa-usage"
    "-Werror=objc-root-class" "-Wno-arc-repeated-use-of-weak"
    "-Wduplicate-method-match" "-Wno-missing-braces" "-Wparentheses"
    "-Wswitch" "-Wunused-function" "-Wno-unused-label"
    "-Wno-unused-parameter" "-Wunused-variable" "-Wunused-value"
    "-Wempty-body" "-Wuninitialized" "-Wconditional-uninitialized"
    "-Wno-unknown-pragmas" "-Wno-shadow" "-Wno-four-char-constants"
    "-Wno-conversion" "-Wconstant-conversion" "-Wint-conversion"
    "-Wbool-conversion" "-Wenum-conversion" "-Wno-float-conversion"
    "-Wnon-literal-null-conversion" "-Wobjc-literal-conversion"
    "-Wshorten-64-to-32" "-Wpointer-sign" "-Wno-newline-eof" "-Wno-selector"
    "-Wno-strict-selector-match" "-Wundeclared-selector"
    "-Wno-deprecated-implementations" "-Wprotocol"
    "-Wdeprecated-declarations" "-Wno-sign-conversion" "-Winfinite-recursion"
    "-Wno-ignored-optimization-argument" "-Wno-everything" "-w" "-std=gnu11"
    "-fdebug-compilation-dir"
    "/Users/distribution/.jenkins/workspace/XXX"
    "-ferror-limit" "19" "-fmacro-backtrace-limit" "0" "-fmessage-length" "0"
    "-stack-protector" "1" "-fblocks" "-fencode-extended-block-signature"
    "-fmodules" "-fimplicit-module-maps"
    "-fmodules-cache-path=/Users/distribution/Library/Developer/Xcode/DerivedData/ModuleCache"
    "-fmodules-prune-interval=86400" "-fmodules-prune-after=345600"
    "-fobjc-runtime=ios-6.0.0" "-fobjc-arc" "-fobjc-exceptions"
    "-fexceptions" "-fpascal-strings" "-fmax-type-align=16" "-fno-common"
    "-fdiagnostics-show-option" "-fdiagnostics-show-note-include-stack"
    "-fasm-blocks" "-serialize-diagnostic-file"
    "/Users/distribution/Library/Developer/Xcode/DerivedData/app-atiysgkmzpusawakxnvsmkhkpfob/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/YYText.build/Objects-normal/x86_64/YYTextMagnifier.dia"
    "-x" "objective-c"
    "/Users/distribution/Library/Developer/Xcode/DerivedData/app-atiysgkmzpusawakxnvsmkhkpfob/Index/DataStore"
    "-O0" "-include"
    "/usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../lib/clang_wrappers/global_defines.h"
    "-Wno-everything"

jared198504 avatar Jun 19 '18 09:06 jared198504

Similar issue

Command

xcodebuild -workspace app.xcworkspace -scheme app -configuration Debug -sdk iphonesimulator clean
xcodebuild -workspace app.xcworkspace -scheme app -configuration Debug -sdk iphonesimulator | tee xcodebuild.log
xcpretty -r json-compilation-database -o compile_commands.json < xcodebuild.log > /dev/null
infer run --skip-analysis-in-path Pods --clang-compilation-db-files-escaped compile_commands.json

Environment

Infer version v0.15.0
Apple LLVM version 9.1.0 (clang-902.0.39.2)
xcpretty version 0.2.8
ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin16]

Here is the error message

Run the command again with `--keep-going` to try and ignore this error.
!EEEEEEEEEerror: error reading '~/Library/Developer/Xcode/DerivedData/projectName/Index/DataStore'
EEEEEEEEEE1 error generated.
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEUncaught Internal Error: (Bi_inbuf.End_of_input)
Error backtrace:
Raised at file "src/bi_inbuf.ml", line 49, characters 6-24
Called from file "src/bi_io.ml" (inlined), line 508, characters 12-35
Called from file "atd/clang_ast_b.ml", line 27643, characters 7-24
Called from file "clang/Capture.ml", line 56, characters 8-39
Called from file "clang/Capture.ml" (inlined), line 101, characters 6-35
Called from file "clang/Capture.ml", line 170, characters 26-73
Re-raised at file "istd/IExn.ml" (inlined), line 18, characters 15-63
Called from file "clang/Capture.ml" (inlined), line 102, characters 4-60
Called from file "clang/Capture.ml", line 170, characters 26-73
Called from file "base/Utils.ml" (inlined), line 218, characters 13-22
Called from file "base/Utils.ml" (inlined), line 165, characters 8-12
Called from file "base/Utils.ml", line 220, characters 2-40
Re-raised at file "istd/IExn.ml" (inlined), line 13, characters 2-50
Called from fileE "base/Utils.ml" (inlined), line 166, characters 6-141
Called from file "base/Utils.ml", line 220, characters 2-40
Called from file "clang/Capture.ml" (inlined), line 113, characters 8-78
Called from file "clang/Capture.ml" (inlined), line 140, characters 2-37
Called from file "clang/Capture.ml", line 169, characters 8-138
Called from file "clang/ClangWrapper.ml" (inlined), line 171, characters 15-45
Called from file "list.ml" (inlined), line 100, characters 12-15
Called from file "list.ml" (inlined), line 98, characters 13-64
Called from file "src/list0.ml" (inlined), line 26, characters 40-75
Called from file "clang/ClangWrapper.ml", line 171, characters 2-54
Called from file "infer.ml", line 20, characters 2-36
Called from file "infer.ml", line 130, characters 8-54

Run the command again with `--keep-going` to try and ignore this error.

zzyhappyzzy avatar Jun 21 '18 05:06 zzyhappyzzy

@zzyhappyzzy I have the same issue, and environment the same as yours. have you fix it now ?

crespoxiao avatar Jul 05 '18 07:07 crespoxiao

@crespoxiao Currently, I have no solution for this issue.

zzyhappyzzy avatar Jul 11 '18 02:07 zzyhappyzzy

@jvillard hi buddy, please check the following log. actually BDGCameraRecordControl.m has no problems , I can build the project ,package and upload to App Store.

[9090][ debug] *** Beginning capture of file /xxx/life_APP/life_iOS/Life/Development Pods/BDGCameraModule/BDGCameraModule/Classes/Views/BDGCameraRecordControl.m *** [9090][ debug] Clang frontend action is translating and linting [9090][ debug] Loading the following linters files: /usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../lib/linter_rules/linters.al [9090][ debug] Elapsed: 5.431s. [9090][ debug] [9090][ extern err] Error: the following clang command did not run successfully: [9090][ extern err] /usr/local/Cellar/infer/0.15.0/lib/infer/facebook-clang-plugins/clang/install/bin/clang [9090][ extern err] @/var/folders/qg/ly1pyksx69l0h4kn0fqq0dv00000gn/T/clang_command_.tmp.dbb661.txt [9090][ extern err] ++Contents of '/var/folders/qg/ly1pyksx69l0h4kn0fqq0dv00000gn/T/clang_command_.tmp.dbb661.txt': [9090][ extern err] "-cc1" "-load" [9090][ extern err] "/usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../../facebook-clang-plugins/libtooling/build/FacebookClangPlugin.dylib" [9090][ extern err] "-plugin" "BiniouASTExporter" "-plugin-arg-BiniouASTExporter" "-" [9090][ extern err] "-plugin-arg-BiniouASTExporter" "PREPEND_CURRENT_DIR=1" [9090][ extern err] "-plugin-arg-BiniouASTExporter" "MAX_STRING_SIZE=65535" "-cc1" "-triple" [9090][ extern err] "x86_64-apple-ios9.0.0-simulator" "-Wdeprecated-objc-isa-usage" [9090][ extern err] "-Werror=deprecated-objc-isa-usage" [9090][ extern err] "-Werror=implicit-function-declaration" "-emit-obj" "-mrelax-all" [9090][ extern err] "-disable-free" "-disable-llvm-verifier" "-discard-value-names" [9090][ extern err] "-main-file-name" "BDGCameraRecordControl.m" "-mrelocation-model" "pic" [9090][ extern err] "-pic-level" "2" "-mthread-model" "posix" "-mdisable-fp-elim" [9090][ extern err] "-masm-verbose" "-munwind-tables" "-faligned-alloc-unavailable" [9090][ extern err] "-target-cpu" "core2" "-dwarf-column-info" "-debug-info-kind=standalone" [9090][ extern err] "-dwarf-version=4" "-debugger-tuning=lldb" "-target-linker-version" [9090][ extern err] "351.8" "-coverage-notes-file" [9090][ extern err] "/Users/chengfeixiao/Library/Developer/Xcode/DerivedData/Life-cnzhprfrckpexvbmuvpjxmicosof/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/BDGCameraModule.build/Objects-normal/x86_64/BDGCameraRecordControl.gcno" [9090][ extern err] "-resource-dir" [9090][ extern err] "/usr/local/Cellar/infer/0.15.0/lib/infer/facebook-clang-plugins/clang/install/lib/clang/7.0.0" [9090][ extern err] "-dependency-file" [9090][ extern err] "/Users/chengfeixiao/Library/Developer/Xcode/DerivedData/Life-cnzhprfrckpexvbmuvpjxmicosof/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/BDGCameraModule.build/Objects-normal/x86_64/BDGCameraRecordControl.d" [9090][ extern err] "-MT" "dependencies" "-isysroot" [9090][ extern err] "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk" [9090][ extern err] "-iquote" [9090][ extern err] "/Users/chengfeixiao/Library/Developer/Xcode/DerivedData/Life-cnzhprfrckpexvbmuvpjxmicosof/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/BDGCameraModule.build/BDGCameraModule-generated-files.hmap" [9090][ extern err] "-iquote" [9090][ extern err] "/Users/chengfeixiao/Library/Developer/Xcode/DerivedData/Life-cnzhprfrckpexvbmuvpjxmicosof/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/BDGCameraModule.build/BDGCameraModule-project-headers.hmap" [9090][ extern err] "-include" [9090][ extern err] "/xxx/life_APP/life_iOS/Life/Pods/Target Support Files/BDGCameraModule/BDGCameraModule-prefix.pch" [9090][ extern err] "-include" [9090][ extern err] "/usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../lib/clang_wrappers/global_defines.h" [9090][ extern err] "-D" "POD_CONFIGURATION_DEBUG=1" "-D" "DEBUG=1" "-D" "COCOAPODS=1" "-D" [9090][ extern err] "OBJC_OLD_DISPATCH_PROTOTYPES=0" "-I" [9090][ extern err] "/Users/chengfeixiao/Library/Developer/Xcode/DerivedData/Life-cnzhprfrckpexvbmuvpjxmicosof/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/BDGCameraModule.build/BDGCameraModule-own-target-headers.hmap" [9090][ extern err] "-I" [9090][ extern err] "/Users/chengfeixiao/Library/Developer/Xcode/DerivedData/Life-cnzhprfrckpexvbmuvpjxmicosof/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/BDGCameraModule.build/BDGCameraModule-all-target-headers.hmap" [9090][ extern err] "-I" [9090][ extern err] "/Users/chengfeixiao/Library/Developer/Xcode/DerivedData/Life-cnzhprfrckpexvbmuvpjxmicosof/Build/Products/Debug-iphonesimulator/BDGCameraModule/include"

crespoxiao avatar Jul 11 '18 09:07 crespoxiao

Does using --compilation-database compile_commands.json instead of --clang-compilation-db-files-escaped compile_commands.json help?

jvillard avatar Aug 02 '18 14:08 jvillard

xcodebuild -configuration Debug \
    -scheme MyApp \
    -sdk iphonesimulator | tee xcodebuild.log
xcpretty -r json-compilation-database -o compile_commands.json < xcodebuild.log
infer run --compilation-database compile_commands.json --keep-going

It gets the same result as https://github.com/facebook/infer/issues/939#issuecomment-397694988 🤔 (I used --compilation-database-escaped previously)

xcodebuild -version
Xcode 9.4.1
Build version 9F2000

xcodebuild has been upgraded from 9.4.

nobuf avatar Aug 03 '18 02:08 nobuf

@jvillard

still doesn't work.

I run the command below then got an error.

command: infer run --keep-going --no-xcpretty --compilation-database compile_commands.json -- xcodebuild -workspace Girls.xcworkspace -scheme Girls -configuration Debug -sdk iphonesimulator

error: ** BUILD FAILED **

The following build commands failed: CompileC /Users/xiaochengfei/Library/Developer/Xcode/DerivedData/Girls-etotqhoqsoghdwawsqrjkgpxcslu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/BDGCameraModule.build/Objects-normal/x86_64/BDGCameraEffectControl.o /xxx/Girls-iOS/Girls/Development\ Pods/BDGCameraModule/BDGCameraModule/Classes/Views/BDGCameraEffectControl.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure) Internal Error: /usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../lib/python/infer.py -j 4 --project-root /xxx/Girls-iOS/Girls --out /xxx/Girls-iOS/Girls/infer-out -- xcodebuild -workspace Girls.xcworkspace -scheme Girls -configuration Debug -sdk iphonesimulator: exited with code 65 Error backtrace: Raised at file "base/Die.ml" (inlined), line 25, characters 6-36 Called from file "base/Logging.ml", line 314, characters 58-80 Called from file "integration/Driver.ml", line 159, characters 2-16 Called from file "integration/Driver.ml", line 280, characters 6-420 Called from file "infer.ml", line 20, characters 2-36 Called from file "infer.ml", line 130, characters 8-54

crespoxiao avatar Aug 03 '18 02:08 crespoxiao

I have the similar problem. My commands are following:

xcodebuild -workspace $WORKSPACE -configuration $CONFIGURATION -scheme $SCHEME -sdk $SDK clean build | tee xcodebuild.log
xcpretty -r json-compilation-database -o compile_commands.json < xcodebuild.log > /dev/null
infer run --skip-analysis-in-path Pods --compilation-database-escaped compile_commands.json --keep-going

I got the result:

** BUILD SUCCEEDED **

Capturing using compilation database...
Starting translating and linting 20 files
errorerror: error reading '/Users/limaoqi/Library/Developer/Xcode/DerivedData/TestInfer-ezbkfilfdgwmkffdsyhyyccbqgur/Index/DataStore'
: error reading '/Users/limaoqi/Library/Developer/Xcode/DerivedData/TestInfer-ezbkfilfdgwmkffdsyhyyccbqgur/Index/DataStore'
1 error generated.
1 error generated.
error: error reading '/Users/limaoqi/Library/Developer/Xcode/DerivedData/TestInfer-ezbkfilfdgwmkffdsyhyyccbqgur/Index/DataStore'
1 error generated.
error: error reading '/Users/limaoqi/Library/Developer/Xcode/DerivedData/TestInfer-ezbkfilfdgwmkffdsyhyyccbqgur/Index/DataStore'
1 error generated.

Then there are so many errors, and the first two error logs are like this:

ERROR RUNNING CAPTURE: Bi_inbuf.End_of_input
Raised at file "src/bi_inbuf.ml", line 49, characters 6-24
Called from file "src/bi_io.ml" (inlined), line 508, characters 12-35
Called from file "atd/clang_ast_b.ml", line 27643, characters 7-24
Called from file "clang/Capture.ml", line 56, characters 8-39
Called from file "clang/Capture.ml" (inlined), line 101, characters 6-35
Called from file "clang/Capture.ml", line 170, characters 26-73

Error: the following clang command did not run successfully:
    /usr/local/Cellar/infer/0.15.0/lib/infer/facebook-clang-plugins/clang/install/bin/clang
    @/var/folders/nq/7qv5m_vj2v31y92f3z8z0_5h0000gn/T/clang_command_.tmp.5d39ce.txt
  ++Contents of '/var/folders/nq/7qv5m_vj2v31y92f3z8z0_5h0000gn/T/clang_command_.tmp.5d39ce.txt':
    "-cc1" ERROR RUNNING CAPTURE: Bi_inbuf.End_of_input
Raised at file "src/bi_inbuf.ml", line 49, characters 6-24
Called from file "src/bi_io.ml" (inlined), line 508, characters 12-35
Called from file "atd/clang_ast_b.ml", line 27643, characters 7-24
Called from file "clang/Capture.ml", line 56, characters 8-39
Called from file "clang/Capture.ml" (inlined), line 101, characters 6-35
Called from file "clang/Capture.ml", line 170, characters 26-73

Error: the following clang command did not run successfully:
    /usr/local/Cellar/infer/0.15.0/lib/infer/facebook-clang-plugins/clang/install/bin/clang
    @/var/folders/nq/7qv5m_vj2v31y92f3z8z0_5h0000gn/T/clang_command_.tmp.712979.txt
  ++Contents of '/var/folders/nq/7qv5m_vj2v31y92f3z8z0_5h0000gn/T/clang_command_.tmp.712979.txt':
    "-cc1" "-load"
    "/usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../../facebook-clang-plugins/libtooling/build/FacebookClangPlugin.dylib"
    "-plugin" "BiniouASTExporter" "-plugin-arg-BiniouASTExporter" "-"
    "-plugin-arg-BiniouASTExporter" "PREPEND_CURRENT_DIR=1"
    "-plugin-arg-BiniouASTExporter" "MAX_STRING_SIZE=65535" "-cc1" "-triple"
    "x86_64-apple-ios7.0.0-simulator" "-Wdeprecated-objc-isa-usage"
    "-Werror=deprecated-objc-isa-usage"
    "-Werror=implicit-function-declaration" "-fsyntax-only"ERROR RUNNING CAPTURE: Bi_inbuf.End_of_input
Raised at file "src/bi_inbuf.ml", line 49, characters 6-24
Called from file "src/bi_io.ml" (inlined), line 508, characters 12-35
Called from file "atd/clang_ast_b.ml", line 27643, characters 7-24
Called from file "clang/Capture.ml", line 56, characters 8-39
Called from file "clang/Capture.ml" (inlined), line 101, characters 6-35
Called from file "clang/Capture.ml", line 170, characters 26-73

How should I do?

WishQi avatar Aug 05 '18 02:08 WishQi

The messages in the infer-out/log are like this:

[56973][ extern err] Error: the following clang command did not run successfully:
[56973][ extern err]     /usr/local/Cellar/infer/0.15.0/lib/infer/facebook-clang-plugins/clang/install/bin/clang
[56973][ extern err]     @/var/folders/nq/7qv5m_vj2v31y92f3z8z0_5h0000gn/T/clang_command_.tmp.dbb5b0.txt
[56973][ extern err]   ++Contents of '/var/folders/nq/7qv5m_vj2v31y92f3z8z0_5h0000gn/T/clang_command_.tmp.dbb5b0.txt':
[56973][ extern err]     "-cc1" "-load"
[56973][ extern err]     "/usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../../facebook-clang-plugins/libtooling/build/FacebookClangPlugin.dylib"
[56973][ extern err]     "-plugin" "BiniouASTExporter" "-plugin-arg-BiniouASTExporter" "-"
[56973][ extern err]     "-plugin-arg-BiniouASTExporter" "PREPEND_CURRENT_DIR=1"
[56973][ extern err]     "-plugin-arg-BiniouASTExporter" "MAX_STRING_SIZE=65535" "-cc1" "-triple"
[56973][ extern err]     "x86_64-apple-ios7.0.0-simulator" "-Wdeprecated-objc-isa-usage"
[56973][ extern err]     "-Werror=deprecated-objc-isa-usage"
[56973][ extern err]     "-Werror=implicit-function-declaration" "-fsyntax-only" "-disable-free"
[56973][ extern err]     "-disable-llvm-verifier" "-discard-value-names" "-main-file-name"
[56973][ extern err]     "DataStore" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model"
[56973][ extern err]     "posix" "-mdisable-fp-elim" "-masm-verbose" "-munwind-tables"
[56973][ extern err]     "-faligned-alloc-unavailable" "-target-cpu" "core2" "-dwarf-column-info"
[56973][ extern err]     "-debug-info-kind=standalone" "-dwarf-version=2" "-debugger-tuning=lldb"
[56973][ extern err]     "-target-linker-version" "351.8" "-resource-dir"
[56973][ extern err]     "/usr/local/Cellar/infer/0.15.0/lib/infer/facebook-clang-plugins/clang/install/lib/clang/7.0.0"
[56973][ extern err]     "-dependency-file"
[56973][ extern err]     "/Users/limaoqi/Library/Developer/Xcode/DerivedData/TestInfer-ezbkfilfdgwmkffdsyhyyccbqgur/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/AFNetworking.build/Objects-normal/x86_64/AFURLSessionManager.d"
[56973][ extern err]     "-MT" "dependencies" "-isysroot"
[56973][ extern err]     "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk"
[56973][ extern err]     "-iquote"
[56973][ extern err]     "/Users/limaoqi/Library/Developer/Xcode/DerivedData/TestInfer-ezbkfilfdgwmkffdsyhyyccbqgur/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/AFNetworking.build/AFNetworking-generated-files.hmap"
[56973][ extern err]     "-iquote"
[56973][ extern err]     "/Users/limaoqi/Library/Developer/Xcode/DerivedData/TestInfer-ezbkfilfdgwmkffdsyhyyccbqgur/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/AFNetworking.build/AFNetworking-project-headers.hmap"
[56973][ extern err]     "-include"
[56973][ extern err]     "/Users/limaoqi/Developer/TestInfer/Pods/Target Support Files/AFNetworking/AFNetworking-prefix.pch"
[56973][ extern err]     "-include"
[56973][ extern err]     "/usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../lib/clang_wrappers/global_defines.h"
[56973][ extern err]     "-D" "POD_CONFIGURATION_DEBUG=1" "-D" "DEBUG=1" "-D" "COCOAPODS=1" "-D"
[56973][ extern err]     "OBJC_OLD_DISPATCH_PROTOTYPES=0" "-I"
[56973][ extern err]     "/Users/limaoqi/Library/Developer/Xcode/DerivedData/TestInfer-ezbkfilfdgwmkffdsyhyyccbqgur/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/AFNetworking.build/AFNetworking-own-target-headers.hmap"
[56973][ extern err]     "-I"
[56973][ extern err]     "/Users/limaoqi/Library/Developer/Xcode/DerivedData/TestInfer-ezbkfilfdgwmkffdsyhyyccbqgur/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/AFNetworking.build/AFNetworking-all-target-headers.hmap"
[56973][ extern err]     "-I"
[56973][ extern err]     "/Users/limaoqi/Library/Developer/Xcode/DerivedData/TestInfer-ezbkfilfdgwmkffdsyhyyccbqgur/Build/Products/Debug-iphonesimulator/AFNetworking/include"
[56973][ extern err]     "-I" "/Users/limaoqi/Developer/TestInfer/Pods/Headers/Private" "-I"
[56973][ extern err]     "/Users/limaoqi/Developer/TestInfer/Pods/Headers/Private/AFNetworking"
[56973][ extern err]     "-I" "/Users/limaoqi/Developer/TestInfer/Pods/Headers/Public" "-I"
[56973][ extern err]     "/Users/limaoqi/Developer/TestInfer/Pods/Headers/Public/AFNetworking"
[56973][ extern err]     "-I"
[56973][ extern err]     "/Users/limaoqi/Library/Developer/Xcode/DerivedData/TestInfer-ezbkfilfdgwmkffdsyhyyccbqgur/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/AFNetworking.build/DerivedSources/x86_64"
[56973][ extern err]     "-I"
[56973][ extern err]     "/Users/limaoqi/Library/Developer/Xcode/DerivedData/TestInfer-ezbkfilfdgwmkffdsyhyyccbqgur/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/AFNetworking.build/DerivedSources"
[56973][ extern err]     "-F/Users/limaoqi/Library/Developer/Xcode/DerivedData/TestInfer-ezbkfilfdgwmkffdsyhyyccbqgur/Build/Products/Debug-iphonesimulator/AFNetworking"
[56973][ extern err]     "-O0" "-Wnon-modular-include-in-framework-module"
[56973][ extern err]     "-Werror=non-modular-include-in-framework-module" "-Wno-trigraphs"
[56973][ extern err]     "-Wno-missing-field-initializers" "-Wno-missing-prototypes"
[56973][ extern err]     "-Werror=return-type" "-Wdocumentation" "-Wunreachable-code"
[56973][ extern err]     "-Wno-implicit-atomic-properties" "-Werror=deprecated-objc-isa-usage"
[56973][ extern err]     "-Werror=objc-root-class" "-Wno-arc-repeated-use-of-weak"
[56973][ extern err]     "-Wimplicit-retain-self" "-Wduplicate-method-match" "-Wno-missing-braces"
[56973][ extern err]     "-Wparentheses" "-Wswitch" "-Wunused-function" "-Wno-unused-label"
[56973][ extern err]     "-Wno-unused-parameter" "-Wunused-variable" "-Wunused-value"
[56973][ extern err]     "-Wempty-body" "-Wuninitialized" "-Wconditional-uninitialized"
[56973][ extern err]     "-Wno-unknown-pragmas" "-Wno-shadow" "-Wno-four-char-constants"
[56973][ extern err]     "-Wno-conversion" "-Wconstant-conversion" "-Wint-conversion"
[56973][ extern err]     "-Wbool-conversion" "-Wenum-conversion" "-Wno-float-conversion"
[56973][ extern err]     "-Wnon-literal-null-conversion" "-Wobjc-literal-conversion"
[56973][ extern err]     "-Wshorten-64-to-32" "-Wpointer-sign" "-Wno-newline-eof" "-Wno-selector"
[56973][ extern err]     "-Wno-strict-selector-match" "-Wundeclared-selector"
[56973][ extern err]     "-Wdeprecated-implementations" "-Wprotocol" "-Wdeprecated-declarations"
[56973][ extern err]     "-Wno-sign-conversion" "-Winfinite-recursion" "-Wcomma"
[56973][ extern err]     "-Wblock-capture-autoreleasing" "-Wstrict-prototypes"
[56973][ extern err]     "-Wunguarded-availability" "-Wno-ignored-optimization-argument"
[56973][ extern err]     "-Wno-everything" "-std=gnu11" "-fdebug-compilation-dir"
[56973][ extern err]     "/Users/limaoqi/Developer/TestInfer/Pods" "-ferror-limit" "19"
[56973][ extern err]     "-fmacro-backtrace-limit" "0" "-fmessage-length" "0" "-stack-protector"
[56973][ extern err]     "1" "-fblocks" "-fencode-extended-block-signature" "-fmodules"
[56973][ extern err]     "-fimplicit-module-maps"
[56973][ extern err]     "-fmodules-cache-path=/Users/limaoqi/Library/Developer/Xcode/DerivedData/ModuleCache.noindex"
[56973][ extern err]     "-fmodules-prune-interval=86400" "-fmodules-prune-after=345600"
[56973][ extern err]     "-fbuild-session-timestamp=1533437170000000000"
[56973][ extern err]     "-fmodules-validate-once-per-build-session" "-fobjc-runtime=ios-7.0.0"
[56973][ extern err]     "-fobjc-arc" "-fobjc-weak" "-fobjc-exceptions" "-fexceptions"
[56973][ extern err]     "-fpascal-strings" "-fmax-type-align=16" "-fno-common"
[56973][ extern err]     "-fdiagnostics-show-option" "-fdiagnostics-show-note-include-stack"
[56973][ extern err]     "-fasm-blocks" "-serialize-diagnostic-file"
[56973][ extern err]     "/Users/limaoqi/Library/Developer/Xcode/DerivedData/TestInfer-ezbkfilfdgwmkffdsyhyyccbqgur/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/AFNetworking.build/Objects-normal/x86_64/AFURLSessionManager.dia"
[56973][ extern err]     "-x" "objective-c"
[56973][ extern err]     "/Users/limaoqi/Library/Developer/Xcode/DerivedData/TestInfer-ezbkfilfdgwmkffdsyhyyccbqgur/Index/DataStore"
[56973][ extern err]     "-O0" "-include"
[56973][ extern err]     "/usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../lib/clang_wrappers/global_defines.h"
[56973][ extern err]     "-Wno-everything"

WishQi avatar Aug 05 '18 02:08 WishQi

I have the same issue with @jared198504 @jvillard Are there some solutions?

WishQi avatar Aug 09 '18 02:08 WishQi

I have the same issue with environment

Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
xcpretty 0.2.8
xcode 9.4.1

I use the command

infer --xcpretty -- xcodebuild -workspace xxx.xcworkspace -scheme xxx -configuration Debug -sdk iphonesimulator

it succeed once,then always fails

passol1988 avatar Aug 10 '18 06:08 passol1988

@nobuf please try to add COMPILER_INDEX_STORE_ENABLE=NO for xcodebuild

linkoubian avatar Aug 16 '18 10:08 linkoubian

@balloonsys It works! Thanks

WishQi avatar Aug 19 '18 09:08 WishQi

After changing the Enable Index-While-Building Functionality Build Settings to No via Xcode, running infer with --keep-going finally returns some outputs!

Thanks 🎉

nobuf avatar Aug 21 '18 05:08 nobuf