Skip to content

Can't build on Xcode 7.3.1 #2973

Closed
Closed
@gabro

Description

@gabro

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?

Activity

mdiep

mdiep commented on Jun 9, 2016

@mdiep
Contributor

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>)

kimball-j

kimball-j commented on Jun 9, 2016

@kimball-j

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

mdiep commented on Jun 10, 2016

@mdiep
Contributor

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

gabro commented on Jun 10, 2016

@gabro
Author

@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

PlayBoyPlum commented on Sep 3, 2016

@PlayBoyPlum

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @mdiep@gabro@kimball-j@PlayBoyPlum

        Issue actions

          Can't build on Xcode 7.3.1 · Issue #2973 · ReactiveCocoa/ReactiveCocoa