我正在尝试通过 Xcode 编译我的应用程序,一切都一直有效,但今天突然返回此错误,导致构建失败。
我附上完整的错误日志。
感谢您的帮助。
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)