ReactiveX / RxSwift

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

include of non-modular header inside framwork module 'RxCocoa.Swift' #411

Closed hilen closed 8 years ago

hilen commented 8 years ago

I run it ok yesterday, but failed today. Why ? The error message is : image

My pod version is 1.0.0.beta.2 pod file is

    pod 'RxSwift',    '~> 2.0'
    pod 'RxCocoa',    '~> 2.0'
    pod 'RxBlocking', '~> 2.0'

How to fix it ?

kzaher commented 8 years ago

Hi @hilen,

This is a dupe of problem that for some reason sometimes appear. I think I've managed to repro it once, but can't remember what did I exactly do ...

I think I've removed CocoaPods integration from project entirely, and readded it (including workspace, configurations ...)

You might want to also clean derived data, cocoapods cache, etc ...

If you add this to new project, it works, right?

hilen commented 8 years ago

@kzaher Hi, thanks for your response. As you say if I add it to the new project, it works. And If I replace #import <RxSwift/RxSwift.h> to #import "RxSwift.h" in RxCocoa-Swift.h file. It works too. So this problem is weird. I just run it by replace the #import string.

image

hilen commented 8 years ago

@kzaher Hi, I fix this error by remove the ${SRCROOT} in Build Settings -> Header Search Paths , take a look at here : https://github.com/CocoaPods/CocoaPods/issues/4835 . Maybe there is something wrong with CocoaPods and ${SRCROOT} with recursive :)

zhaoyunyi commented 7 years ago

I got this errror too , it is very sucks, how to solve it?:(

pertau commented 7 years ago

I'm using Carthage and changing the Header Search Paths from recursive to non-recursive fixed this problem.