注册 登录
主题 : XCode打包IOS提示 symbol(s) not found for architecture x86_64,附详细日志。
级别: 新手上路
UID: 279360
精华: 0
发帖: 28
可可豆: 93 CB
威望: 74 点
在线时间: 31(时)
注册时间: 2013-12-04
最后登录: 2019-04-26
0 楼:  发表于: 2019-04-24 09:39    发自: Web Page
来源于 未解决 分类

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)


上面是简略的日志,详细日志,请看附件。
日志

这个项目是公司旧项目,按道理SVN拉下来可以直接编译运行的。可是今天我拉下来编译不了。
而且听老板描述这以前是打包运营过的。
[ 此帖被457636876在2019-04-24 18:34重新编辑 ]

级别: 新手上路
UID: 463103
精华: 0
发帖: 3
可可豆: 12 CB
威望: 12 点
在线时间: 315(时)
注册时间: 2015-04-17
最后登录: 2019-05-24
1 楼:  发表于: 2019-04-24 18:06    发自: Web Page
应该是三方库导入有问题,重导试试呢
级别: 新手上路
UID: 279360
精华: 0
发帖: 28
可可豆: 93 CB
威望: 74 点
在线时间: 31(时)
注册时间: 2013-12-04
最后登录: 2019-04-26
2 楼:  发表于: 2019-04-26 10:43    发自: Web Page
回 1楼(yanyuewen) 的帖子
查完了。就是 libboot.a libprotobuff.a 库不支持 x86 arm64 导致的,但是到现在我也不知道怎么编译 .a 文件,让它们支持 armv7s armv7 i386 x86_64 arm64 。

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

CocoaChina社区转载内容已尽可能注明出处,如未能核实来源或转发内容图片有权利瑕疵的,请及时联系社区进行修改或删除【联系方式QQ : 3442093904 邮箱:support@cocoachina.com】文章内容为作者独立观点,不代表CocoaChina社区立场。版权归原作者所有,如申请授权请联系作者,因文章侵权CocoaChina社区不承担任何法律及连带责任。

描述
快速回复

关注本帖(如果有新回复会站内信通知您)

发帖、回帖都会得到可观的积分奖励。查看论坛积分规则

按"Ctrl+Enter"直接提交
    顶部