Skip to content

infer run error "clang command did not run successfull" #1891

Open
@pastel001

Description

@pastel001

I used release version 1.2.0 and built multiple versions, but they all showed the same issue.
Do you have any idea about this? Thank you.

env

$ clang --version                                                                                                                                                            ‹ruby-3.2.2›
Apple clang version 16.0.0 (clang-1600.0.26.6)
Target: arm64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

~/infer on  4b364c9e57! ⌚ 19:23:00
$ xcodebuild -version                                                                                                                                                        ‹ruby-3.2.2›
Xcode 16.2
Build version 16C5032a

$ infer --version                                                                                                                                                            ‹ruby-3.2.2›
Infer version v1.1.0-4b364c9e57
Copyright 2009 - present Facebook. All Rights Reserved.

infer run err log

19:10:54  + infer run --clang-block-listed-flags-with-arg -ivfsstatcache --skip-analysis-in-path Example/Pods --compilation-database-escaped compile_commands.json --keep-going
19:10:55  Capturing using compilation database...
19:12:48  Starting translating 1380 files
19:12:48  In file included from /Users/Shared/Jenkins/workspace/xxx_ios_RVContentCenteriOSModule/Example/Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.m:22:
19:12:48  In file included from /Users/Shared/Jenkins/workspace/xxx_ios_RVContentCenteriOSModule/Example/Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.h:28:
19:12:48  /Users/Shared/Jenkins/workspace/xxx_ios_RVContentCenteriOSModule/Example/Pods/AFNetworking/AFNetworking/AFURLSessionManager.h:161:1: error: property with 'retain (or strong)' attribute must be of object type
19:12:48  @property (nonatomic, strong, nullable) dispatch_queue_t completionQueue;
19:12:48  ^
19:12:48  /Users/Shared/Jenkins/workspace/xxx_ios_RVContentCenteriOSModule/Example/Pods/AFNetworking/AFNetworking/AFURLSessionManager.h:166:1: error: property with 'retain (or strong)' attribute must be of object type
19:12:48  @property (nonatomic, strong, nullable) dispatch_group_t completionGroup;
19:12:48  ^
19:12:48  /Users/Shared/Jenkins/workspace/xxx_ios_RVContentCenteriOSModule/Example/Pods/AFNetworking/AFNetworking/AFURLRequestSerialization.m:189:1: error: property with 'retain (or strong)' attribute must be of object type
19:12:48  @property (readwrite, nonatomic, strong) dispatch_queue_t requestHeaderModificationQueue;
19:12:48  ^
19:12:48  2 errors generated.
19:12:48  1 error generated.
19:12:50  Error: the following clang command did not run successfully:
19:12:50      /usr/local/lib/infer/facebook-clang-plugins/clang/install/bin/clang-16
19:12:50      @/Users/Shared/Jenkins/workspace/xxx_ios_RVContentCenteriOSModule/infer-out/tmp/clang_command_.tmp.196e0a.txt
19:12:50    ++Contents of '/Users/Shared/Jenkins/workspace/xxx_ios_RVContentCenteriOSModule/infer-out/tmp/clang_command_.tmp.196e0a.txt':
19:12:50      "-cc1" "-load"
19:12:50      "/usr/local/lib/infer/infer/bin/../../facebook-clang-plugins/libtooling/build/FacebookClangPlugin.dylib"
19:12:50      "-plugin" "BiniouASTExporter" "-plugin-arg-BiniouASTExporter" "-"
19:12:50      "-plugin-arg-BiniouASTExporter" "PREPEND_CURRENT_DIR=1"
19:12:50      "-plugin-arg-BiniouASTExporter" "MAX_STRING_SIZE=65535" "-cc1" "-triple"
19:12:50      "arm64-apple-ios9.0.0" "-Wundef-prefix=TARGET_OS_" "-Werror=undef-prefix"
19:12:50      "-Wdeprecated-objc-isa-usage" "-Werror=deprecated-objc-isa-usage"
19:12:50      "-Werror=implicit-function-declaration" "-fsyntax-only" "-disable-free"
19:12:50      "-clear-ast-before-backend" "-disable-llvm-verifier"
19:12:50      "-discard-value-names" "-main-file-name" "AFHTTPSessionManager.m"
19:12:50      "-mrelocation-model" "pic" "-pic-level" "2" "-mframe-pointer=non-leaf"
19:12:50      "-ffp-contract=on" "-fno-rounding-math" "-funwind-tables=1"
19:12:50      "-faligned-alloc-unavailable" "-target-sdk-version=18.2"
19:12:50      "-fcompatibility-qualified-id-block-type-checking"
19:12:50      "-fvisibility-inlines-hidden-static-local-var" "-target-cpu" "apple-a7"
19:12:50      "-target-feature" "+v8a" "-target-feature" "+crypto" "-target-feature"
19:12:50      "+fp-armv8" "-target-feature" "+neon" "-target-feature" "+zcm"
19:12:50      "-target-feature" "+zcz" "-target-feature" "+sha2" "-target-feature"
19:12:50      "+aes" "-target-abi" "darwinpcs" "-dwarf-ext-refs" "-fmodule-format=obj"
19:12:50      "-debug-info-kind=standalone" "-dwarf-version=4" "-debugger-tuning=lldb"
19:12:50      "-target-linker-version" "1115.7.3" "-fcoverage-compilation-dir=/"
19:12:50      "-resource-dir"
19:12:50      "/usr/local/lib/infer/facebook-clang-plugins/clang/install/lib/clang/16"
19:12:50      "-dependency-file"
19:12:50      "/Users/dev/Library/Developer/Xcode/DerivedData/RVContentCenteriOSModule-aktrfgjwaxdzgkcbguvgvqcnbtmp/Build/Intermediates.noindex/AFNetworking.build/Debug-iphoneos/AFNetworking.build/Objects-normal/arm64/AFHTTPSessionManager.d"
19:12:50      "-MT" "dependencies" "-isysroot"
19:12:50      "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk"
19:12:50      "-isysroot"
19:12:50      "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.2.sdk"
19:12:50      "-iquote"
19:12:50      "/Users/dev/Library/Developer/Xcode/DerivedData/RVContentCenteriOSModule-aktrfgjwaxdzgkcbguvgvqcnbtmp/Build/Intermediates.noindex/AFNetworking.build/Debug-iphoneos/AFNetworking.build/AFNetworking-generated-files.hmap"
19:12:50      "-ivfsoverlay"
19:12:50      "/Users/dev/Library/Developer/Xcode/DerivedData/RVContentCenteriOSModule-aktrfgjwaxdzgkcbguvgvqcnbtmp/Build/Intermediates.noindex/AFNetworking.build/Debug-iphoneos/AFNetworking-e3a2d619d2b36e584eee974a5c8a5a1c-VFS-iphoneos/all-product-headers.yaml"
19:12:50      "-iquote"
19:12:50      "/Users/dev/Library/Developer/Xcode/DerivedData/RVContentCenteriOSModule-aktrfgjwaxdzgkcbguvgvqcnbtmp/Build/Intermediates.noindex/AFNetworking.build/Debug-iphoneos/AFNetworking.build/AFNetworking-project-headers.hmap"
19:12:50      "-include"
19:12:50      "/Users/Shared/Jenkins/workspace/xxx_ios_RVContentCenteriOSModule/Example/Pods/Target Support Files/AFNetworking/AFNetworking-prefix.pch"
19:12:50      "-include"
19:12:50      "/usr/local/lib/infer/infer/bin/../lib/clang_wrappers/global_defines.h"
19:12:50      "-D" "POD_CONFIGURATION_DEBUG=1" "-D" "DEBUG=1" "-D" "COCOAPODS=1" "-D"
19:12:50      "OBJC_OLD_DISPATCH_PROTOTYPES=0" "-I"
19:12:50      "/Users/dev/Library/Developer/Xcode/DerivedData/RVContentCenteriOSModule-aktrfgjwaxdzgkcbguvgvqcnbtmp/Build/Intermediates.noindex/AFNetworking.build/Debug-iphoneos/AFNetworking.build/AFNetworking-own-target-headers.hmap"
19:12:50      "-I"
19:12:50      "/Users/dev/Library/Developer/Xcode/DerivedData/RVContentCenteriOSModule-aktrfgjwaxdzgkcbguvgvqcnbtmp/Build/Intermediates.noindex/AFNetworking.build/Debug-iphoneos/AFNetworking.build/AFNetworking-all-non-framework-target-headers.hmap"
19:12:50      "-I"
19:12:50      "/Users/dev/Library/Developer/Xcode/DerivedData/RVContentCenteriOSModule-aktrfgjwaxdzgkcbguvgvqcnbtmp/Build/Products/Debug-iphoneos/AFNetworking/include"
19:12:50      "-I"
19:12:50      "/Users/dev/Library/Developer/Xcode/DerivedData/RVContentCenteriOSModule-aktrfgjwaxdzgkcbguvgvqcnbtmp/Build/Intermediates.noindex/AFNetworking.build/Debug-iphoneos/AFNetworking.build/DerivedSources-normal/arm64"
19:12:50      "-I"
19:12:50      "/Users/dev/Library/Developer/Xcode/DerivedData/RVContentCenteriOSModule-aktrfgjwaxdzgkcbguvgvqcnbtmp/Build/Intermediates.noindex/AFNetworking.build/Debug-iphoneos/AFNetworking.build/DerivedSources/arm64"
19:12:50      "-I"
19:12:50      "/Users/dev/Library/Developer/Xcode/DerivedData/RVContentCenteriOSModule-aktrfgjwaxdzgkcbguvgvqcnbtmp/Build/Intermediates.noindex/AFNetworking.build/Debug-iphoneos/AFNetworking.build/DerivedSources"
19:12:50      "-F/Users/dev/Library/Developer/Xcode/DerivedData/RVContentCenteriOSModule-aktrfgjwaxdzgkcbguvgvqcnbtmp/Build/Products/Debug-iphoneos/AFNetworking"
19:12:50      "-internal-isystem"
19:12:50      "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.2.sdk/usr/local/include"
19:12:50      "-internal-isystem"
19:12:50      "/usr/local/lib/infer/facebook-clang-plugins/clang/install/lib/clang/16/include"
19:12:50      "-internal-externc-isystem"
19:12:50      "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.2.sdk/usr/include"
19:12:50      "-O0" "-Wnon-modular-include-in-framework-module"
19:12:50      "-Werror=non-modular-include-in-framework-module" "-Wno-trigraphs"
19:12:50      "-Wno-missing-field-initializers" "-Wno-missing-prototypes"
19:12:50      "-Werror=return-type" "-Wdocumentation" "-Wunreachable-code"
19:12:50      "-Wno-implicit-atomic-properties" "-Werror=deprecated-objc-isa-usage"
19:12:50      "-Wno-objc-interface-ivars" "-Werror=objc-root-class"
19:12:50      "-Wno-arc-repeated-use-of-weak" "-Wimplicit-retain-self"
19:12:50      "-Wduplicate-method-match" "-Wno-missing-braces" "-Wparentheses"
19:12:50      "-Wswitch" "-Wunused-function" "-Wno-unused-label"
19:12:50      "-Wno-unused-parameter" "-Wunused-variable" "-Wunused-value"
19:12:50      "-Wempty-body" "-Wuninitialized" "-Wconditional-uninitialized"
19:12:50      "-Wno-unknown-pragmas" "-Wno-shadow" "-Wno-four-char-constants"
19:12:50      "-Wno-conversion" "-Wconstant-conversion" "-Wint-conversion"
19:12:50      "-Wbool-conversion" "-Wenum-conversion" "-Wno-float-conversion"
19:12:50      "-Wnon-literal-null-conversion" "-Wobjc-literal-conversion"
19:12:50      "-Wshorten-64-to-32" "-Wpointer-sign" "-Wno-newline-eof" "-Wno-selector"
19:12:50      "-Wno-strict-selector-match" "-Wundeclared-selector"
19:12:50      "-Wdeprecated-implementations" "-Wno-implicit-fallthrough" "-Wprotocol"
19:12:50      "-Wdeprecated-declarations" "-Wno-sign-conversion" "-Winfinite-recursion"
19:12:50      "-Wcomma" "-Wblock-capture-autoreleasing" "-Wstrict-prototypes"
19:12:50      "-Wno-semicolon-before-method-body" "-Wunguarded-availability"
19:12:50      "-Wno-ignored-optimization-argument" "-Wno-everything" "-std=gnu11"
19:12:50      "-fdebug-compilation-dir=/" "-ferror-limit" "19"
19:12:50      "-fmacro-backtrace-limit" "0" "-stack-protector" "1" "-fno-builtin"
19:12:50      "-fblocks" "-fencode-extended-block-signature"
19:12:50      "-fregister-global-dtors-with-atexit" "-fgnuc-version=4.2.1" "-fmodules"
19:12:50      "-fimplicit-module-maps"
19:12:50      "-fmodules-cache-path=/Users/dev/Library/Developer/Xcode/DerivedData/ModuleCache.noindex"
19:12:50      "-fmodule-name=AFNetworking" "-fmodules-prune-interval=86400"
19:12:50      "-fmodules-prune-after=345600" "-fbuild-session-timestamp=1743160156"
19:12:50      "-fmodules-validate-once-per-build-session"
19:12:50      "-fmodules-validate-system-headers" "-fobjc-runtime=ios-9.0.0"
19:12:50      "-fobjc-arc" "-fobjc-weak" "-fobjc-exceptions" "-fexceptions"
19:12:50      "-fpascal-strings" "-fmax-type-align=16"
19:12:50      "-fdiagnostics-show-note-include-stack" "-serialize-diagnostic-file"
19:12:50      "/Users/dev/Library/Developer/Xcode/DerivedData/RVContentCenteriOSModule-aktrfgjwaxdzgkcbguvgvqcnbtmp/Build/Intermediates.noindex/AFNetworking.build/Debug-iphoneos/AFNetworking.build/Objects-normal/arm64/AFHTTPSessionManager.dia"
19:12:50      "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-x" "objective-c"
19:12:50      "/Users/Shared/Jenkins/workspace/xxx_ios_RVContentCenteriOSModule/Example/Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.m"
19:12:50      "-O0" "-fno-builtin" "-include"
19:12:50      "/usr/local/lib/infer/infer/bin/../lib/clang_wrappers/global_defines.h"
19:12:50      "-Wno-everything"
19:12:50    
19:12:50  
19:12:50  
19:12:50  In file included from /Users/Shared/Jenkins/workspace/xxx_ios_RVContentCenteriOSModule/Example/Pods/AFNetworking/AFNetworking/AFURLSessionManager.m:22:
19:12:50  /Users/Shared/Jenkins/workspace/xxx_ios_RVContentCenteriOSModule/Example/Pods/AFNetworking/AFNetworking/AFURLSessionManager.h:161:1: error: property with 'retain (or strong)' attribute must be of object type
19:12:50  @property (nonatomic, strong, nullable) dispatch_queue_t completionQueue;
19:12:50  ^
19:12:50  /Users/Shared/Jenkins/workspace/xxx_ios_RVContentCenteriOSModule/Example/Pods/AFNetworking/AFNetworking/AFURLSessionManager.h:166:1: error: property with 'retain (or strong)' attribute must be of object type
19:12:50  @property (nonatomic, strong, nullable) dispatch_group_t completionGroup;
19:12:50  ^
19:12:51    ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions