(std::string const&) in libH5ContainerStaticLib.a(.. 处理

8 篇文章 0 订阅

首先看看报错:

Undefined symbols for architecture x86_64:
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()", referenced from:
      __GLOBAL__sub_I_base64.mm in libH5ContainerStaticLib.a(base64.o)
  "std::string::reserve(unsigned long)", referenced from:
      Base64::encode64(std::string const&) in libH5ContainerStaticLib.a(base64.o)
      Base64::decode64(std::string const&) in libH5ContainerStaticLib.a(base64.o)
  "std::string::push_back(char)", referenced from:
      aes_encrypt(std::string const&, char*) in libH5ContainerStaticLib.a(output.o)
  "std::string::assign(char const*, unsigned long)", referenced from:
      PaddingMsg(std::string&, std::string&) in libH5ContainerStaticLib.a(output.o)
      -[output getOutput1:m_strInput1:secretKey:] in libH5ContainerStaticLib.a(output.o)
      -[output getOutput4:m_strInput1:m_strInput2:m_certype:secretKey:] in libH5ContainerStaticLib.a(output.o)

以上只是部分内容,能表示错误即可。

多年前的项目,今天升级SDK遇到的坑,本文的目的不是解决问题,应为这并不是解决方式,只能说是处理方法(因为是放弃SDK的使用)。

开始我也不知道项目中的"BestPaySDK-V3.0.0" 使用的是那个第三方的SDK,爬代码知道这是翼支付集成。知道那个第三方的SDK那是好事,第一反应是去官网查看集成文档升级。我呸~~~,去 中国电信天翼开放平台 。结果让你没想到,没有iOS版本支持的SDK,只有Android的SDK。

libH5ContainerStaticLib.a 是使用 翼支付 SDK时导入的包,libH5ContainerStaticLib.a 使用的系统库 libstdc++..库,而使用高版本的Xcode10+,支持的不是libstdc++...的库,而是libc++类的库。这就尴尬了,所以最后(iOS)是放弃翼支付功能。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

启程Boy

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值