Skip to content
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

Closed
miku1958 opened this issue Jan 29, 2019 · 11 comments
Closed

Undefined symbols "_swift_getFieldAt" #307

miku1958 opened this issue Jan 29, 2019 · 11 comments

Comments

@miku1958
Copy link

试了一下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也是一样

@lynnleelhl
Copy link
Collaborator

Swift 5 removed swift_getFieldAt, I'm working on it.
You can use Xcode 10.1 or previous version.

@lynnleelhl
Copy link
Collaborator

Branch dev_for_swift5.0 solved this.

@jiang443
Copy link

XCode10.2 使用Swift5.0已经发布。 请尽快适配。

@WhoJave
Copy link

WhoJave commented Mar 26, 2019

今天好多人因为这个加群的~ 慢慢适配 我们就可以折腾下自己的事儿了

@lynnleelhl
Copy link
Collaborator

lynnleelhl commented Mar 26, 2019

pod 'HandyJSON', '5.0.0-beta.1'

@jeffreylyg
Copy link

如果是 swift 5 编译不过还能理解,为什么 Xcode 10.2 选 4.2 编译还报这个错呢?Xcode 10.1 用 4.2编译就没问题

@lynnleelhl
Copy link
Collaborator

@jeffreylyg 你在 Build Settings 里面选择的 Swift 版本并不是编译用的 Swift 版本,你可以终端跑下 swift --version 会发现返回的还是 5.0

@cjsliuj
Copy link

cjsliuj commented Jun 15, 2019

@jeffreylyg 你在 Build Settings 里面选择的 Swift 版本并不是编译用的 Swift 版本,你可以终端跑下 swift --version 会发现返回的还是 5.0

那 Build Settings 里面的 SWIFT_VERSION 是啥意思呢?

@skytodmoon
Copy link

@jeffreylyg 你在 Build Settings 里面选择的 Swift 版本并不是编译用的 Swift 版本,你可以终端跑下 swift --version 会发现返回的还是 5.0

我机器显示的是swift4.2.1,也有该问题

@skytodmoon
Copy link

从10.1 swift4.2升级到11.2 swift 2遇到同样问题

@lynnleelhl
Copy link
Collaborator

@skytodmoon HandyJSON 用最新版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants