alibaba / HandyJSON

A handy swift json-object serialization/deserialization library
Other
4.23k stars 647 forks source link

Linker command failed #294

Open sacOO7 opened 6 years ago

sacOO7 commented 6 years ago

Compiled using Swift version - 4.1.2 HandyJSON Library version - 4.2.0 . I am getting some linking error

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)

It works fine with library version - 4.1.0 It will be really helpful if you can give solution to above problem. Thank you :)

sacOO7 commented 6 years ago

Hi, @xuyecan , @cijianzy any updates on this? I really need your help

sacOO7 commented 6 years ago

嗨伙计们,有关此的任何更新?我真的需要你的帮助

chenxing890 commented 6 years ago

I also encountered this problem.

sacOO7 commented 6 years ago

Can anyone please help us on this? It's really necessary for my project.

winterrain5 commented 6 years ago

Can anyone please help us on this? It's really necessary for my project.

try using pod 'HandyJSON', '~> 4.1.1' ,it will fix this problem

shijian123 commented 5 years ago

我这边设置了还是不行呀,xcode10.2beta版本

cijianzy commented 5 years ago

可以加qq群@群主看下,我估计他看github机会不多。

lynnleelhl commented 5 years ago

Xcode 9+ or previous version: checkout tag 4.1.3 Xcode 10.0/10.1: checkout master branch Xcode 10.2beta: try branch dev_for_swift5.0

Notice that Swift version showed in your Build Settings has nothing to do with your compile issue, Swift compiler version is depend on your Xcode version.

sunnymopada commented 5 years ago

any update on this?

UncleAdamShaw commented 5 years ago

Use version 4.1.3, it works for me

ifanchu commented 5 years ago

xCode 10.1(10B61), use 4.2.1.