这个问题,最开始生成的步骤是:真机测试时报错ld: framework not found Social,好吧,我就去Bulid Phases 中把红名删除了,然后报了ld: warning: arm64 function not 4-byte aligned: ltmp0 from /Users/yifangrd/Desktop/超级经纪人/AgentMan2/SDK/Libs/Release-iphoneos/liblibPGInvocation.a(sysv_arm64.o)
ld: warning: arm64 function not 4-byte aligned: _ffi_call_SYSV from /Users/yifangrd/Desktop/超级经纪人/AgentMan2/SDK/Libs/Release-iphoneos/liblibPGInvocation.a(sysv_arm64.o)
ld: warning: arm64 function not 4-byte aligned: _ffi_closure_SYSV from /Users/yifangrd/Desktop/超级经纪人/AgentMan2/SDK/Libs/Release-iphoneos/liblibPGInvocation.a(sysv_arm64.o)
Undefined symbols for architecture arm64:
"_OBJCCLASS$_SLRequest", referenced from:
objc-class-ref in libTCWeiboSDK.a(AppleRequest.o)
"_SLServiceTypeTencentWeibo", referenced from:
___83-[AppleRequest requestWithURL:httpMethod:params:pic:weiboObject:weiboApi:delegate:]_block_invoke61 in libTCWeiboSDK.a(AppleRequest.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
好吧,然后我去Valid Architectures中删除了arm64,结果错误就形成了,求大神搭救!!!
2 个回复
DCloud_IOS_XTY
你这个错误跟arm64没有关系,不要修改architectures的配置,这个是缺少social库导致的,把该库添加进去就可以了,你可以看下离线打包教程如何添加系统framework
456vv
iblibPGInvocation.a 从xcode 移除试试,iblibPGInvocation.a 是x64位,你的手机系统是x86。不支持吧。