-
Notifications
You must be signed in to change notification settings - Fork 649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined symbols "_swift_getFieldAt" #307
Comments
Swift 5 removed swift_getFieldAt, I'm working on it. |
Branch dev_for_swift5.0 solved this. |
XCode10.2 使用Swift5.0已经发布。 请尽快适配。 |
今天好多人因为这个加群的~ 慢慢适配 我们就可以折腾下自己的事儿了 |
pod 'HandyJSON', '5.0.0-beta.1' |
如果是 swift 5 编译不过还能理解,为什么 Xcode 10.2 选 4.2 编译还报这个错呢?Xcode 10.1 用 4.2编译就没问题 |
@jeffreylyg 你在 Build Settings 里面选择的 Swift 版本并不是编译用的 Swift 版本,你可以终端跑下 |
那 Build Settings 里面的 SWIFT_VERSION 是啥意思呢? |
我机器显示的是swift4.2.1,也有该问题 |
从10.1 swift4.2升级到11.2 swift 2遇到同样问题 |
@skytodmoon HandyJSON 用最新版本 |
试了一下Xcode 10.2,编译提示:
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
尝试把pod项目中swift version改成4.2也是一样
The text was updated successfully, but these errors were encountered: