牛油果
牛油果
  • 发布:2019-07-01 10:09
  • 更新:2019-07-01 10:09
  • 阅读:1818

对极光SDK的包装时,需要添加libresolv.tbd系统库,否则会报如下错误。

分类:uni-app

错误信息:
Undefined symbols for architecture arm64:
\"_dns_parse_resource_record\", referenced from:
-[JCORESRVResolver processRecord:length:] in YSJGPushPlugin(JCORESRVResolver.o)
-[JPushExtensionSRVResolver processRecord:length:] in YSJGPushPlugin(JPushExtensionSRVResolver.o)
\"_dns_free_resource_record\", referenced from:
-[JCORESRVResolver processRecord:length:] in YSJGPushPlugin(JCORESRVResolver.o)
-[JPushExtensionSRVResolver processRecord:length:] in YSJGPushPlugin(JPushExtensionSRVResolver.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

但云打包时,已经将libresolv.tbd添加到package.json中了,依旧报错,求大神们指点一下。package.json内容如下:

"_dp_nativeplugin": {
"ios": {
"plugins": [{
"type": "module",
"name": "YSJGPush",
"class": "YSJGPushModule"
}],
"integrateType": "framework",
"hooksClass": "YSJGPushProxy",
"framework": ["libresolv.tbd","CoreFoundation.framework","CoreTelephony.framework","SystemConfiguration.framework","CoreGraphics.framework","Foundation.framework","Security.framework","UserNotifications.framework","CFNetwork.framework"],
"capabilities": {
"entitlements": {
"aps-environment":"development"
},
"plists": {
"Required background modes":["App downloads content in response to push notifications"]
}
},
"plists": {
"YSJGPushAppKey":"caa1bbe94b7466a618a4b61d"
},
"deployementTarget": "8.0"
}
}

2019-07-01 10:09 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复

  • 标题 / 粗斜体
  • 代码片段
  • 超链接 / 图片 / 视频
  • 列表 / 引用

文章内容较多时,可以用标题分段 :

## 大标题 
### 小标题

斜体 / 粗体 :

**粗体** 
*斜体*
***粗斜体***

代码片段 :

``` javascript
代码片段
```

超链接 :

[链接文字](链接地址) 例: [百度](http://www.baidu.com)

图片 :

![图片说明](图片地址) 例: ![百度logo](http://www.baidu.com/img/bdlogo.gif)

视频 :

!![视频说明](视频地址) 例: !![优酷视频](http://youku.com)

有序列表 :

1. 123
2. 123
3. 123

无序列表 :

- 123
- 123
- 123

引用 : ( 双回车后结束引用 )

> 引用内容
引用内容
引用内容