libimobiledevice / libplist

A library to handle Apple Property List format in binary or XML
https://libimobiledevice.org
GNU Lesser General Public License v2.1
548 stars 304 forks source link

Linker error: ld: archive member '/' not a mach-o file when trying to link libcnary.a #246

Open mforys opened 11 months ago

mforys commented 11 months ago

May anyone explain me how to fix this linker error? ld: archive member '/' not a mach-o file in '/Users/marek/_repos/libplist/libcnary/.libs/libcnary.a'

I'm trying to compile libplist on MacOS with x64 architecture.

  CXX      String.lo
  CXX      Uid.lo
  CXXLD    libplist++-2.0.la
Making all in include
make[2]: Nothing to be done for `all'.
Making all in tools
  CC       plistutil.o
  CCLD     plistutil
Making all in docs
make[2]: Nothing to be done for `all'.
Making all in test
  CC       plist_cmp.o
  CCLD     plist_cmp
ld: archive member '/' not a mach-o file in '/Users/marek/_repos/libplist/libcnary/.libs/libcnary.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [plist_cmp] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
rybalkoss commented 11 months ago

same issue https://stackoverflow.com/questions/77444892/xcode-15-0-1-macos-sonoma-clang-archive-or-linking-issue

dwarakeshc-kore commented 2 months ago

I am still facing the same issue, can someone help me with the solution