Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build on Xcode 7.3.1 #2973

Closed
gabro opened this issue Jun 9, 2016 · 5 comments
Closed

Can't build on Xcode 7.3.1 #2973

gabro opened this issue Jun 9, 2016 · 5 comments
Labels

Comments

@gabro
Copy link

gabro commented Jun 9, 2016

I installed ReactiveCocoa using Carthage on Xcode 7.3.1 and this is the error I get

<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/ReactiveCocoa.h"
        ^
/<path/to/project>/Carthage/Build/iOS/ReactiveCocoa.framework/Headers/ReactiveCocoa.h:17:9: error: 'ReactiveCocoa/EXTKeyPathCoding.h' file not found
#import <ReactiveCocoa/EXTKeyPathCoding.h>
        ^
<unknown>:0: error: could not build Objective-C module 'ReactiveCocoa'

I checked the Framework Search Path, but it correctly includes $(PROJECT_DIR)/Carthage/Build/iOS.

Incidentally that's the same error I get if I try to install it using CocoaPods.

Any hint of why that may be happening?

@mdiep
Copy link
Contributor

mdiep commented Jun 9, 2016

What version of ReactiveCocoa?

<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/ReactiveCocoa.h"

I don't know why it would be, but maybe things are upset because you're not using a framework import for RAC? (#import <ReactiveCocoa/ReactiveCocoa.h>)

@mdiep mdiep added the question label Jun 9, 2016
@kimball-j
Copy link

kimball-j commented Jun 9, 2016

I just started getting that same error. ReactiveCocoa 4.1.0 Xcode 7.3.1 cocoapods 1.0.1. The error started after upgrading to cocoapods 1.0.1 but still occurs even if I roll back to 0.39.0

<module-includes>:1:9:

 note: in file included from <module-includes>:1:
#import "Headers/ReactiveCocoa-umbrella.h"
        ^
.../Build/Products/Debug-iphonesimulator/ReactiveCocoa/ReactiveCocoa.framework/Headers/ReactiveCocoa-umbrella.h:18:9: note: in file included from .../Build/Products/Debug-iphonesimulator/ReactiveCocoa/ReactiveCocoa.framework/Headers/ReactiveCocoa-umbrella.h:18:
#import "NSObject+RACPropertySubscribing.h"
        ^
.../Build/Products/Debug-iphonesimulator/ReactiveCocoa/ReactiveCocoa.framework/Headers/NSObject+RACPropertySubscribing.h:10:9: error: 'ReactiveCocoa/EXTKeyPathCoding.h' file not found
#import <ReactiveCocoa/EXTKeyPathCoding.h>
        ^
<unknown>:0: error: could not build Objective-C module 'ReactiveCocoa'

All my imports to ReactiveCocoa are done in swift
import ReactiveCocoa

@mdiep
Copy link
Contributor

mdiep commented Jun 10, 2016

I believe that's a problem with the podspec (#2909).

@gabro Maybe you're still picking up a copy of ReactiveCocoa that was built with CocoaPods somehow?

@gabro
Copy link
Author

gabro commented Jun 10, 2016

@mdiep yes, it looks like it was a leftover from a previous installation using CocoaPods v0.96

I solved the issue performing a "Clean Build Folder..." action (under the Product menu, holding down the option key).

After that, I managed to use ReactiveCocoa both with CocoaPods 1.0.1 and Carthage.

Thanks for the support!

@PlayBoyPlum
Copy link

hello ,i am meet the same problem with yours. but mine is in OC project.
I use cocoaPods to access the RAC 4.2.2
/Users/plum/Desktop/RAC/RAC/Objective-C/RACTuple.m:10:9: 'ReactiveCocoa/EXTKeyPathCoding.h' file not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants