HandyJSON.Metadata.Class Xcode10.2, swift5.0 报错 linker command failed with exit code 1

https://blog.csdn.net/weiwandaixu_/article/details/88842491

2019年03月27日 13:35:40 一如初夏丿 阅读数:31 标签: linker command failed with exi Xcode10.2  swift5.0 HandyJSON swift_getFieldA 更多

个人分类: Swift

Xcode10.2, swift5.0

Undefined symbols for architecture x86_64:

"_swift_getFieldAt", referenced from:

HandyJSON.Metadata.Class._propertyDescriptionsAndStartPoint() -> ([HandyJSON.Property.Description], Swift.Int32?)? in Metadata.o

HandyJSON.Metadata.Struct.propertyDescriptions() -> [HandyJSON.Property.Description]? in Metadata.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

更改 podfile

pod 'HandyJSON', '5.0.0-beta'

如果不行的话 更新本地cocoapods的spec资源配置信息。

pod repo update

原文地址:https://www.cnblogs.com/sundaysme/p/10615292.html