alibaba / HandyJSON

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

xcode10 beta版本 报错 #263

Closed stevendinggang closed 5 years ago

stevendinggang commented 6 years ago
2018-06-05 12 01 25 2018-06-05 12 01 32
Ccmi commented 6 years ago

一样,希望可以给出解决方案

LGang commented 6 years ago

望作者看到能处理下

z234009184 commented 6 years ago

希望作者看到快点处理下~

codetalks-new commented 6 years ago

Hi 各位,这样催是不对的。 Xcode 10 正式版本 还要到 9 月份才发呢? 干嘛这样催啊? 如果项目要紧没得说继续 9.X ,如果是学习的话,可以稍等,而不是还没出几天就在这不停的催促。 如果我是此项目开发者,我就会觉得不太好,如果我这段时间比较忙就会觉得不爽了。

xuyecan commented 6 years ago

各位放心哈,我尽快处理。

xuyecan commented 6 years ago

谢 @banxi1988 老哥理解~

stevendinggang commented 6 years ago

呃~不好意思啊~发的时候没有说催的意思的。。。 刚升级了xcode,发现项目报错,就顺手来发下 我会很耐心等更的哈哈

shyh5 commented 6 years ago

同样的问题!!!群主大大加油!!

mkuprianowicz commented 6 years ago

I'm also waiting for Xcode10 beta support

xuyecan commented 6 years ago

Swift版本现在也还没有稳定,之前的Nominal Type Descriptor被标记为过期,但没有给出更新的版本,所以现在去做支持,一个难度可能比较高,二个是后边可能还要重改。我先看下是否有简单的办法可以先支持起来,等到最后 swift 4.2.release 发出来之后,我再把方案确定下来。

参考: (1) https://github.com/apple/swift/blob/master/docs/ABI/TypeMetadata.rst#nominal-type-descriptor (2) https://github.com/apple/swift/pull/15565 这里是遇到类似问题的工具库尝试寻求解决方案,但尚未有定论。

xuyecan commented 6 years ago

也不是说要等到最后的xcode正式版本发布,只要官方给出一个比较确定的说法我就可以跟进了。

juliancadi commented 6 years ago

我什么都不明白,但是我希望对于那些喜欢Xcode 10测试版的人来说,我们很快就会有解决方案

punithbm commented 6 years ago

Me too facing same issue in Xcode 10 beta - Please update it ASAP .

xuyecan commented 6 years ago

@lynnleelhl has solved this problem on swift 4.2 on this branch: https://github.com/alibaba/HandyJSON/tree/dev_for_swift4.2, but the solution depends on a _swift_getFieldAt method which hasn't been brought in the latest Xcode_beta3. You should download the latest swift version from https://swift.org/download/#releases and replace the Xcode toolchain for woking on dev_for_swift4.2 branch.

How to replace the Xcode toolchain: https://stackoverflow.com/questions/39693636/how-can-i-replace-the-default-swift-toolchain-in-xcode-with-the-github-code-buil

xuyecan commented 6 years ago

4.2.0-beta1 version released for xcode-beta4(or likely later version). The previous xcode 10 beta versions still need to change the toolchain manually to work.

Rdxer commented 5 years ago

坐等

SunLn commented 5 years ago

"_swift_getFieldAt", referenced from: 这个问题在 HandyJSON 4.2.0 版本 + XCcode Version 9.4.1 (9F2000) + swift 4.1 里面存在,但降级到 HandyJSON 4.1.3 就没有问题了。

lynnleelhl commented 5 years ago

4.2.0 版本只支持 swift 4.2,你 swift 4.1 就用 4.1.3 版本,readme 里有说明

xuyecan commented 5 years ago

4.2.0 version released.