HandyJSON icon indicating copy to clipboard operation
HandyJSON copied to clipboard

关于升级xcode 10之后handyJSON问题

Open devcatin opened this issue 6 years ago • 11 comments

大家有遇到过吗,xcode升级到10之后包的错误 Invalid redeclaration of '<--'

devcatin avatar Sep 22 '18 09:09 devcatin

我遇到了

evan-cai avatar Sep 25 '18 02:09 evan-cai

解决了嘛?

laval66 avatar Sep 25 '18 02:09 laval66

pod 'HandyJSON', '~> 4.2.0' 我这样就行了,刚解决

evan-cai avatar Sep 25 '18 02:09 evan-cai

CocoaPods could not find compatible versions for pod "HandyJSON": In Podfile: HandyJSON (~> 4.2.0)

mxbobi avatar Oct 27 '18 05:10 mxbobi

我也遇到这个问题:

  1. 因为Xcode10构建的包在iOS9.1,9.2机型会导致程序崩溃,所以我需要在Xcode9.4构建;
  2. 不知道什么原因(有可能是系统升级到10.14.1)使用Xcode9.4开发特别不方便,例如跳转系统函数定义经常出问号,所以我在Xcode10上开发

现在的问题是HandyJSON 4.2.0+的版本在Xcode10上工作正常,但是在Xcode9.4.1上:

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)

但是HandyJSON4.1.x的版本在Xcode10上又会报如@devcatin提到的问题

raymond-liao avatar Nov 29 '18 09:11 raymond-liao

Xcode9.4.1 Xcode 10 兼容性问题解决了吗?

OCAndSwift avatar Jan 17 '19 03:01 OCAndSwift

因为最近发现 Xcode10 打包可以在 iOS 9的机型上使用,所以直接用新版本就可以了。

raymond-liao avatar Jan 17 '19 04:01 raymond-liao

我也遇到这个问题:

  1. 因为Xcode10构建的包在iOS9.1,9.2机型会导致程序崩溃,所以我需要在Xcode9.4构建;
  2. 不知道什么原因(有可能是系统升级到10.14.1)使用Xcode9.4开发特别不方便,例如跳转系统函数定义经常出问号,所以我在Xcode10上开发

现在的问题是HandyJSON 4.2.0+的版本在Xcode10上工作正常,但是在Xcode9.4.1上:

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)

但是HandyJSON4.1.x的版本在Xcode10上又会报如@devcatin提到的问题

xcode10.2beta上面也有这个问题

shijian123 avatar Feb 02 '19 08:02 shijian123

Xcode 10.2 beta 可以用 dev_for_swift5.0 分支

lynnleelhl avatar Feb 02 '19 09:02 lynnleelhl

pod 'HandyJSON', '~> 4.2.0' 我这样就行了,刚解决

怎么我刚刚试过还是不行的

AndrewLJJ avatar Mar 27 '19 10:03 AndrewLJJ

pod 'HandyJSON', '~> 4.2.0' 我这样就行了,刚解决

怎么我刚刚试过还是不行的

如果是这两天升级到Xcode 10.2 和 swift 5的,暂时用这个:

pod 'HandyJSON', :git => 'https://github.com/alibaba/HandyJSON.git', :branch => 'dev_for_swift5.0'

最好加下QQ群:581331250

evan-cai avatar Mar 27 '19 10:03 evan-cai