XCode打包IOS提示 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)", 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, 4022730752u, 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, 18ul, 1812433253u> > >::~thread_specific_ptr() in BigInteger.o
  "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, 2636928640u, 15ul, 4022730752u, 18ul, 1812433253u> > >::get() const in BigInteger.o
  "typeinfo for boost::detail::thread_data_base", 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_scheduler, boost::threadpool::static_size, boost::threadpool::resize_controller, boost::threadpool::wait_for_all_tasks> > > > > > > in TaskMgr.o
  "vtable for boost::detail::thread_data_base", referenced from:
      boost::detail::thread_data_base::thread_data_base() in TaskMgr.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "boost::thread::start_thread_noexcept()", referenced from:
      boost::thread::start_thread() in TaskMgr.o
  "google::protobuf::Message::~Message()", referenced from:
      client_protocols::msg_c2s_heartbeat::msg_c2s_heartbeat() in client_msg.pb.o
      client_protocols::msg_c2s_heartbeat::~msg_c2s_heartbeat() in client_msg.pb.o
      client_protocols::msg_s2c_heartbeat::msg_s2c_heartbeat() in client_msg.pb.o
      client_protocols::msg_s2c_heartbeat::~msg_s2c_heartbeat() in client_msg.pb.o
      client_protocols::msg_list::msg_list() in client_msg.pb.o
      client_protocols::msg_list::msg_list(client_protocols::msg_list const&) in client_msg.pb.o
      client_protocols::msg_list::~msg_list() in client_msg.pb.o
      ...
  "typeinfo for CryptoPP::HashTransformation", referenced from:
      typeinfo for CryptoPP::IteratedHashBase<unsigned int, CryptoPP::HashTransformation> in enable_crypto.o
  "google::protobuf::internal::OnShutdown(void (*)())", referenced from:
      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::protobuf::internal::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::protobuf::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 const* 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* google::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_param const* 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_net_param 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::msg_s2c_shutdown const* google::protobuf::internal::dynamic_cast_if_available<client_protocols::msg_s2c_shutdown const*, google::protobuf::Message const*>(google::protobuf::Message const*) in client_msg.pb.o
      ...
  "boost::re_detail::cpp_regex_traits_implementation<char>::transform_primary(char const*, char const*) const", referenced from:
      boost::cpp_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)

上面是简略的日志,详细日志,请看附件。
日志.zip (9.1 KB)

查完了。就是 libboot.a libprotobuff.a 库不支持 x86 arm64 导致的,但是到现在我也不知道怎么编译 .a 文件,让它们支持 armv7s armv7 i386 x86_64 arm64 。

论坛有人知道怎么编译么? 我查了很多资料,实验下来全是编译的 x86_64 。

下载新的库

下载的boost库。没有 .a 文件,需要编译的吧。