问题解决好几天了,百度谷歌了好久,还是结果特此在论坛发帖求救。
我附上详细的日志,日志较长耐心看下。
提示 Undefined symbols for architecture x86_64: .... 然后就
symbol(s) not found for architecture x86_64
Ld /Users/admin/Library/Developer/Xcode/DerivedData/qie-hiwycnqmmoyuvfemmcvouxphoudc/Build/Products/Debug-iphonesimulator/qie.app/qie normal x86_64 (in target: qie)
cd /Users/admin/Documents/Client2/frameworks/runtime-src/proj.ios_mac
export IPHONEOS_DEPLOYMENT_TARGET=9.0
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -L/Users/admin/Library/Developer/Xcode/DerivedData/qie-hiwycnqmmoyuvfemmcvouxphoudc/Build/Products/Debug-iphonesimulator -L../../../../share/dependencies/lib64 -L/Users/admin/Documents/Client2/frameworks/runtime-src/proj.ios_mac/wx -L/Users/admin/Documents/Client2/frameworks/runtime-src/proj.ios_mac/JPush -L/Users/admin/Documents/Client2/frameworks/runtime-src/proj.ios_mac/AnWeiSheng -L/Users/admin/Documents/Client2/frameworks/runtime-src/proj.ios_mac/../Classes/Qie/FFmpeg/lib_ios -F/Users/admin/Library/Developer/Xcode/DerivedData/qie-hiwycnqmmoyuvfemmcvouxphoudc/Build/Products/Debug-iphonesimulator -F/Users/admin/Documents/Client2/frameworks/runtime-src/proj.ios_mac -filelist /Users/admin/Library/Developer/Xcode/DerivedData/qie-hiwycnqmmoyuvfemmcvouxphoudc/Build/Intermediates.noindex/qie.build/Debug-iphonesimulator/qie.build/Objects-normal/x86_64/qie.LinkFileList -mios-simulator-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/admin/Library/Developer/Xcode/DerivedData/qie-hiwycnqmmoyuvfemmcvouxphoudc/Build/Intermediates.noindex/qie.build/Debug-iphonesimulator/qie.build/Objects-normal/x86_64/qie_lto.o -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -stdlib=libc++ -fobjc-link-runtime -pagezero_size 10000 -image_base 100000000 -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/admin/Library/Developer/Xcode/DerivedData/qie-hiwycnqmmoyuvfemmcvouxphoudc/Build/Intermediates.noindex/qie.build/Debug-iphonesimulator/qie.build/qie.app-Simulated.xcent -framework Photos -framework WebKit -liconv.2 -lxml2.2 -framework CoreMedia -lbz2.1.0 -framework VideoToolbox -framework SystemConfiguration -framework Security -lboost_coroutine -lboost_test_exec_monitor -lswscale -lz -framework UserNotifications -lboost_system -framework UIKit -framework CoreTelephony -framework CoreFoundation -framework CFNetwork -lboost_exception -lavdevice -lboost_timer -lclinkAPI_x86_arm -lboost_log_setup -lboost_serialization -framework GameController -lswresample -lresolv -lboost_unit_test_framework -lboost_iostreams -lavfilter -framework AdSupport -lavformat -lboost_log -lboost_chrono /Users/admin/Library/Developer/Xcode/DerivedData/qie-hiwycnqmmoyuvfemmcvouxphoudc/Build/Products/Debug-iphonesimulator/libcocos2d\ iOS.a /Users/admin/Library/Developer/Xcode/DerivedData/qie-hiwycnqmmoyuvfemmcvouxphoudc/Build/Products/Debug-iphonesimulator/libluacocos2d\ iOS.a -lboost_atomic -lWeChatSDK -framework appvest_framework -lprotobuf -lboost_regex -framework Security -lboost_prg_exec_monitor -framework MediaPlayer -framework CoreMotion -lboost_wave -lz -lcryptopp -lboost_graph -lboost_random -framework UIKit -framework OpenGLES -lclinkAPI -lboost_thread -lboost_filesystem -framework QuartzCore -lavcodec /Users/admin/Documents/Client2/frameworks/runtime-src/proj.ios_mac/JPush/jcore-ios-1.2.1.a -lboost_wserialization -lavutil /Users/admin/Documents/Client2/frameworks/runtime-src/proj.ios_mac/JPush/jpush-ios-3.1.0.a -lboost_program_options -framework OpenAL -lboost_date_time -framework AudioToolbox -framework AVFoundation -lboost_signals -framework Foundation -framework CoreGraphics -Xlinker -dependency_info -Xlinker /Users/admin/Library/Developer/Xcode/DerivedData/qie-hiwycnqmmoyuvfemmcvouxphoudc/Build/Intermediates.noindex/qie.build/Debug-iphonesimulator/qie.build/Objects-normal/x86_64/qie_dependency_info.dat -o /Users/admin/Library/Developer/Xcode/DerivedData/qie-hiwycnqmmoyuvfemmcvouxphoudc/Build/Products/Debug-iphonesimulator/qie.app/qie
ld: warning: ignoring file ../../../../share/dependencies/lib64/libboost_coroutine.a, file was built for archive which is not the architecture being linked (x86_64): ../../../../share/dependencies/lib64/libboost_coroutine.a
ld: warning: ignoring file ../../../../share/dependencies/lib64/libboost_system.a, file was built for archive which is not the architecture being linked (x86_64): ../../../../share/dependencies/lib64/libboost_system.a
Undefined symbols for architecture x86_64:
"boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)"bool)", referenced from:
boost::thread_specific_ptr<enable_random<boost::random::mersenne_twister_engine<unsigned int, 32ul, 624ul, 397ul, 31ul, 2567483615u, 11ul, 4294967295u, 7ul, 2636928640u, 15ul, 4022730752u, 18ul, 1812433253u> > >::reset(enable_random<boost::random::mersenne_twister_engine<unsigned int, 32ul, 624ul, 397ul, 31ul, 2567483615u, 11ul, 4294967295u, 7ul, 2636928640u, 15ul, 402273in52u, 18ul, 1812433253u> >*) in BigInteger.o
boost::thread_specific_ptr<enable_random<boost::random::mersenne_twister_engine<unsigned int, 32ul, 624ul, 397ul, 31ul, 2567483615u, 11ul, 4294967295u, 7ul, 2636928640u, 15ul, 4022730752u, 18in, 1812433253u> > >"boost::detail::get_tss_data(void const*)" "boost::detail::get_tss_data(void const*)", referenced from:
boost::thread_specific_ptr<enable_random<boost::random::mersenne_twister_engine<unsigned int, 32ul, 624ul, 397ul, 31ul, 2567483615u, 11ul, 4294967295u, 7ul, 26369in640u, 15ul, 4022730752u, 1"typeinfo for boost::detail::thread_data_base" BigInteger.o
"typeinfo for boost::detail::thread_daforbase", referenced from:
typeinfo for boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, boost::threadpool::detail::worker_thread<boost::threadpool::detail::pool_core<boost::function0<void>, boost::threadpool::fifo_scheduler, boost::threadpool::static_size, boost::threadpool::resize_controller, boost::threadpool::wait_for_all_tasks> > >, boost::_bi::list1<boost::_bi::value<boost::shared_ptr<boost::threadpool::detail::worker_thread<boost::threadpool::detail::pool_core<boost::function0<void>, boost::threadpool::fifo_schedulerinboost::threadpool::stat"vtable for boost::detail::thread_data_base"r, boost::threadpool::wait_for_all_tasks> > > > > > > in TaskMgr.o
"vtableinor boost::detail::thread_data_base", referenced from:
boost:function:thread_data_base::thread_data_b"boost::thread::start_thread_noexcept()"issing vtable usually means the first non-inline virtual member function has no defininion.
"boost"google::protobuf::Message::~Message()"erenced from:
boost::thread::start_thread() in TaskMgr.o
"googleinprotobuf::Message::~Message()", referenced from:
client_protocols::msg_c2s_inartbeat::msg_c2s_heartbeat() in client_msg.pb.o
client_protocols::msg_c2s_inartbeat::~msg_c2s_heartbeat() in client_msg.pb.o
client_protocols::msg_s2c_inartbeat::msg_s2c_heartbeat() in client_msg.pb.o
client_pintocols::msg_s2c_heartbeat::~msg_s2c_heartbeat() in client_msg.pb.o
client_protocols::msg_listinmsg_list() in client_msg.pb.o
client_protocols::msg_list:insg_list(client_protocols::msg_list const&) in client_msg.pb.o
&nb"typeinfo for CryptoPP::HashTransformation"tocols::msg_list::~msg_list() in client_msg.pb.o
&nbfor ...
"typeinfo for CryptoPP::HashTransformainon", referenced from:
&"google::protobuf::internal::OnShutdown(void (*)())"IteratedHashBase<unsigned int, CryptoPP::HashTransformation> in enable_crypto.o
"google::protobin::internal::OnShutdown(void ("typeinfo for google::protobuf::Message"sp; client_protocols::protobuf_AddDesc_client_5fmsg_2eproto() in client_msg.pb.o
"typeinfo for google::protobuf::Message", referenced from:
client_protocols::msg_c2s_heartbeat const* google::protobufininternal::dynamic_cast_if_available<client_protocols::msg_c2s_heartbeat const*, google::protobuf::Message const*>(google::protobuf::Message const*) in client_msg.pb.o
client_protocols::msg_s2c_heartbeat const* google::prinobuf::internal::dynamic_cast_if_available<client_protocols::msg_s2c_heartbeat const*, google::protobuf::Message const*>(google::protobuf::Message const*) in client_msg.pb.o
client_protocols::msg_list coint* google::protobuf::internal::dynamic_cast_if_available<client_protocols::msg_list const*, google::protobuf::Message const*>(google::protobuf::Message const*) in client_msg.pb.o
client_protocols::msg_s2c_send_msglist const* gingle::protobuf::internal::dynamic_cast_if_available<client_protocols::msg_s2c_send_msglist const*, google::protobuf::Message const*>(google::protobuf::Message const*) in client_msg.pb.o
client_protocols::msg_s2c_net_paraminonst* google::protobuf::internal::dynamic_cast_if_available<client_protocols::msg_s2c_net_param const*, google::protobuf::Message const*>(google::protobuf::Message const*) in client_msg.pb.o
client_protocols::msg_c2s_netinaram const* google::protobuf::internal::dynamic_cast_if_available<client_protocols::msg_c2s_net_param const*, google::protobuf::Message const*>(google::protobuf::Message const*) in client_msg.pb.o
client_protocols::msgin2c_shutdown const* google::protobuf::internal::dynamic_cast_if_availa"boost::re_detail::cpp_regex_traits_implementation<char>::transform_primary(char const*, char const*) const"sage const*) in client_msg.pb.o
...
"boost::re_detail::cpp_regex_traits_implementation&linchar>::transform_primary(char const*,forar const*) const", referenced from:
commandnbsp; &nexit boost::cvp_regex_traits<char>::transform_primary(char const*, char const*) const in CryptoHelper.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
详细的日志下载地址。
https://forum.cocos.com/uploa...
问题出现的环境背景
这个项目是公司旧项目,按道理SVN拉下来可以直接编译运行的。可是今天我拉下来编译不了。
查完了。就是 libboot.a libprotobuff.a 库不支持 x86 arm64 导致的,但是到现在我也不知道怎么编译 .a 文件,让它们支持 armv7s armv7 i386 x86_64 arm64 。
论坛有人知道怎么编译么? 我查了很多资料,实验下来全是编译的 x86_64 。