Skip to content

infer run -- clang xxx/Hello.m error #1879

@iOSyifeng

Description

@iOSyifeng

Capturing in make/cc mode...
ld: Undefined symbols:
OBJC_CLASS$_NSObject, referenced from:
OBJC_CLASS$_Hello in Hello-05624f.o
OBJC_METACLASS$_NSObject, referenced from:
OBJC_METACLASS$_Hello in Hello-05624f.o
OBJC_METACLASS$_Hello in Hello-05624f.o
__objc_empty_cache, referenced from:
OBJC_METACLASS$_Hello in Hello-05624f.o
OBJC_CLASS$_Hello in Hello-05624f.o
_main, referenced from:

Error: the following clang command did not run successfully:
/usr/bin/ld -demangle -lto_library
/Users/maple/Downloads/infer-osx-arm64-v1.2.0/lib/infer/facebook-clang-plugins/clang/install/lib/libLTO.dylib
-no_deduplicate -dynamic -arch arm64 -platform_version macos 14.0.0 14.2
-syslibroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk
-o a.out /var/folders/2l/4w4bbwls6tn4rmwv1wwv_xmm0000gn/T/Hello-05624f.o
-lSystem

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