Xcode - ld: symbol(s) not found for architecture arm64

一个人想着一个人 提交于 2021-02-10 15:17:29

问题


I'm trying to compile my app through Xcode, everything has always worked, but suddenly today I return this error that makes the build fail. I attach the complete log of the error.

Thanks for your help.

Undefined symbols for architecture arm64:
  "_chkstk_darwin", referenced from:
      PTArchiveWriter::write(std::1::basic_string<char, std::1::char_traits<char>, std::1::allocator<char> > const&, std::1::basic_istream<char, std::1::char_traits<char> >&, std::1::basic_string<char, std::1::char_traits<char>, std::1::allocator<char> > const&) in libcore.a(PTArchive.o)
      calculateCrc(std::1::basic_istream<char, std::1::char_traits<char> >&) in libcore.a(PTArchive.o)
      PTArchiveReader::read(std::1::basic_string<char, std::1::char_traits<char>, std::1::allocator<char> > const&, std::1::basic_ostream<char, std::1::char_traits<char> >&, std::1::basic_string<char, std::1::char_traits<char>, std::1::allocator<char> > const&) in libcore.a(PTArchive.o)
      PTArchiveReader::read(std::1::basic_string<char, std::1::char_traits<char>, std::1::allocator<char> > const&, unsigned char, unsigned long&, std::1::basic_string<char, std::1::char_traits<char>, std::1::allocator<char> > const&) in libcore.a(PTArchive.o)
      calculateCrc(sFILE) in libcore.a(PTArchive.o)
  "_objc_opt_respondsToSelector", referenced from:
      PTServices::showCustomFullScreenAd() in libcore.a(PTServices.o)
  "_objc_alloc_init", referenced from:
      PTStore::PTStore() in libcore.a(PTStore.o)
      PTStore::showProcessingMessage() in libcore.a(PTStore.o)
      PTServices::showLeaderboard() in libcore.a(PTServices.o)
      PTServices::showWarningMessage(char const, cocos2d::Ref, void (cocos2d::Ref::)(bool)) in libcore.a(PTServices.o)
      PTServices::sendHapticFeedback(int) in libcore.a(PTServices.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

来源:https://stackoverflow.com/questions/62378008/xcode-ld-symbols-not-found-for-architecture-arm64

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!