ReactiveX / RxSwift

Reactive Programming in Swift
MIT License
24.37k stars 4.17k forks source link

Unable to compile after pod install #1142

Closed nightfall708 closed 7 years ago

nightfall708 commented 7 years ago

Short description of the issue: After pod installing for this project for the first time, it seems I'm unable to compile. I have both iOS and macOS targets on this project. It seems the macOS project does compile and the iOS project does not.

What actually happens: It seems there is a compilation error as follows: On the file TextInput.swift the error is Value of type 'Reactive<Base>'has no member 'text'.

I've post a stackoverflow question here: http://stackoverflow.com/questions/42695105/error-compiling-with-rxswift

RxSwift/RxCocoa/RxBlocking/RxTest version/commit RxSwift 3.2.0

Platform/Environment

How easy is to reproduce? (chances of successful reproduce after running the self contained code)

Xcode version:

8.2.1

Installation method:

Level of RxSwift knowledge: (this is so we can understand your level of knowledge and formulate the response in an appropriate manner)

kzaher commented 7 years ago

Hi,

sorry, can't repro this.

Pod version: 1.2.0 Xcode: Version 8.2.1 (8C1002)

CocoaPodiOS.zip

Unless I get more information on this, or somebody else can repro this, there isn't anything I can do here.

nightfall708 commented 7 years ago

Any idea what’s the meaning of this error?

On 18 Mar 2017, 11:06 +0200, Krunoslav Zaher notifications@github.com, wrote:

Hi, sorry, can't repro this. Pod version: 1.2.0 Xcode: Version 8.2.1 (8C1002) CocoaPodiOS.zip Unless I get more information on this, or somebody else can repro this, there isn't anything I can do here. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

kzaher commented 7 years ago

I know what it means, but don't know what causes it.

nightfall708 commented 7 years ago

What does it mean? Maybe it’ll point me to the right direction.

On 18 Mar 2017, 14:47 +0200, Krunoslav Zaher notifications@github.com, wrote:

I know what it means, but don't know what causes it. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

kzaher commented 7 years ago

Well it means that compiler either can't find text property, it's type isn't correct, or something else.

nightfall708 commented 7 years ago

It seems to compile if changed to self.textInput.text

nightfall708 commented 7 years ago

Well, placing RxCocoa before RxSwift in the Podfile seems to have fixed the issue. Didn't know order matters there.

goulkreek commented 7 years ago

Hi

I have this issue under Xcode 9. I have tried your suggestions, but still have the issue. Maybe RxSwift may change the call to self.textInput.text ? Thx