DCloud - 5+SDK - iOS端基础集成

本文总结了在iOS中集成DCloud的5+SDK时可能会遇到的Linker错误,包括缺少StoreKit、QuickLook、AddressBook、AVFoundation、CoreLocation和AssetsLibrary等框架,以及libc++.tbd库。解决办法是根据错误提示添加相应的框架和库。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

第一步:查看官方文档5+SDK集成,多看两遍。
第二步:跟着官方文档,进行集成。
第三步:运行之后,有可能会出现linker错误,基本都是由于 某些依赖库没有添加完。

现总结如下:
出现Linker错误:

Undefined symbols for architecture x86_64:
…<中间省略>
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

  • 添加StoreKit.framework

Undefined symbols for architecture x86_64:
OBJC_CLASS$_SKStoreProductViewController”, referenced from:
objc-class-ref in liblibPDRCore.a(DCH5ScreenAdvertising.o)
“_SKStoreProductParameterITunesItemIdentifier”, referenced from:
-[DCH5ScreenAdvertising touchesEnded:withEvent:] in liblibPDRCore.a(DCH5ScreenAdvertising.o)

  • 添加 QuickLook.framework

Undefined symbols for architecture x86_64:
OBJC_CLASS$_QLPreviewController”, referenced from:
objc-class-ref in liblibPDRCore.a(PGRuntime.o)

  • 添加libc++.tbd(xcode10之前是libstdc++.tdb)

Undefined symbols for architecture x86_64:
“vtable for __cxxabiv1::__class_type_info”, referenced from:
typeinfo for tinyxml2::XMLNode in liblibPDRCore.a(tinyxml2.o)
typeinfo for tinyxml2::XMLVisitor in liblibPDRCore.a(tinyxml2.o)
typeinfo for tinyxml2::XMLAttribute in liblib

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值