项目中导入HandyJSON (1.8.0) 会有错误弹出,导致项目编译不通过
- Dominant language
- Swift
- Stars
- 4.3k
- Forks
- 677
- PR merge metrics
- No merged PRs in 30d
Description
错误1:Integer has been renamed to BinaryInteger
错误2:init?(type: Any.Type) {
self.init(pointer: unsafeBitCast(type, to: UnsafePointer.self))
if let kind = type(of: self).kind, kind != self.kind {
return nil
}
} -----------》Cannot call value of non-function Any.Type,这些事什么原因呢
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the HandyJSON 1.8.0 initializer shown in the report, init?(type: Any.Type), and reproduce both compiler errors in a project using that version. Compare the reported Swift compatibility errors with the surrounding type definitions; done means the library compiles without these errors and the affected serialization behavior remains covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- data
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100