Search code examples
iosreactive-cocoareactive-swift

ReactiveCocoa error "Let 'value' is private and cannot be referenced from an '@inline(__always)' function" since Xcode 8.3 update


I am using ReactiveCocoa for my iOS app, here are the two related lines of my Podfile:

pod 'ReactiveCocoa', '5.0.0-alpha.3'
pod 'ReactiveObjC'

Since I updated Xcode to version 8.3, I can't compile my code anymore, the compiler throws these errors from Pods/ReactiveSwift/Atomic.swift file:

Let 'value' is private and cannot be referenced from an '@inline(__always)' function

enter image description here

I tried to clean the project, and reinstall the pods (pod install) but I still got that issue. Any idea about how I could solve this problem?


Solution

  • Remove private property at

    private let value: UnsafeMutablePointer<Int32>

    to

    let value: UnsafeMutablePointer<Int32>

    can resolve this issue