Bond: Pod does not compile: Value of optional type 'Selector?' not unwrapped in file "NSObject+KVO.swift"
Xcode 9.0 Bond (6.4.2)
/Pods/Bond/Sources/Bond/Shared/NSObject+KVO.swift:335:47: Value of optional type ‘Selector?’ not unwrapped; did you mean to use ‘!’ or ‘?’?
line that is breaking:
unsafeBitCast(imp, to: _IMP.self)(me, selector)
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (5 by maintainers)
To fix this I had to go into my project and manually set my Bond pod to use Swift 4.0. When I did that it started working.