您好 我在封装极光推送的插件时云打包报错,在xcode 中运行打包都是没有问题的
这个是错误日志 https://service.dcloud.net.cn/build/errorLog/d0fe0740-b4c5-11e9-ae2b-a73e101d8ef8
这个是引用的依赖库
"frameworks": [
"CFNetwork.framework",
"CoreFoundation.framework",
"CoreTelephony.framework",
"SystemConfiguration.framework",
"CoreGraphics.framework",
"Foundation.framework",
"UIKit.framework",
"Security.framework",
"libz.tbd",
"AdSupport.framework", // (获取 IDFA 需要;如果不使用 IDFA,请不要添加)
"UserNotifications.framework",
"libresolv.tbd"
],
1 个回复
DCloud_iOS_XHY
Undefined symbols for architecture armv7:
\"_OBJCCLASS$_JPUSHRegisterEntity\", referenced from:
objc-class-ref in libRXJPush.a(RXJPushModule.o)
\"_kJPFNetworkDidReceiveMessageNotification\", referenced from:
-[RXJPushModule init] in libRXJPush.a(RXJPushModule.o)
\"_OBJCCLASS$_JPUSHService\", referenced from:
objc-class-ref in libRXJPush.a(RXJPushProxy.o)
objc-class-ref in libRXJPush.a(RXJPushModule.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
BUILD FAILED The following build commands failed:
Ld 安装包制作目录/build/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/armv7/HBuilder normal armv7
(1 failure)
从报错看应该是 极光的sdk没有打进去,可能原因是 package.json 配置有误