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

"include/_RXObjcRuntime.h" not found #949

Closed
5 of 17 tasks
bitkill opened this issue Oct 21, 2016 · 2 comments
Closed
5 of 17 tasks

"include/_RXObjcRuntime.h" not found #949

bitkill opened this issue Oct 21, 2016 · 2 comments

Comments

@bitkill
Copy link

bitkill commented Oct 21, 2016

Short description of the issue:

Cannot compile via carthage,

Expected outcome:

Generate a RxCocoa.framework

What actually happens:


--- xcodebuild: WARNING: Unable to open project file '/Users/duh/Desktop/guide/Carthage/Checkouts/RxSwift/Rx.playground' in workspace '/Users/duh/Desktop/guide/Carthage/Checkouts/RxSwift/Rx.xcworkspace'.
** BUILD FAILED **


The following build commands failed:
    CompileC /Users/duh/Library/Developer/Xcode/DerivedData/Rx-hawhizdyzypcbzejdlhpvmtjimuk/Build/Intermediates/Rx.build/Release-iphoneos/RxCocoa-iOS.build/Objects-normal/armv7/_RXObjCRuntime.o RxCocoa/Runtime/_RXObjCRuntime.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
/Users/duh/Desktop/guide/Carthage/Checkouts/RxSwift/RxCocoa/Common/TextInput.swift:78:28: warning: 'RxTextInput' is deprecated: renamed to 'TextInput'
/Users/duh/Desktop/guide/Carthage/Checkouts/RxSwift/RxCocoa/Common/TextInput.swift:71:29: warning: 'RxTextInput' is deprecated: renamed to 'TextInput'
/Users/duh/Desktop/guide/Carthage/Checkouts/RxSwift/RxCocoa/Common/TextInput.swift:78:28: warning: 'RxTextInput' is deprecated: renamed to 'TextInput'
/Users/duh/Desktop/guide/Carthage/Checkouts/RxSwift/RxCocoa/Common/TextInput.swift:71:29: warning: 'RxTextInput' is deprecated: renamed to 'TextInput'
/Users/duh/Desktop/guide/Carthage/Checkouts/RxSwift/RxCocoa/Runtime/_RXObjCRuntime.m:16:9: fatal error: 'include/_RXObjcRuntime.h' file not found
A shell task (/usr/bin/xcrun xcodebuild -workspace /Users/duh/Desktop/guide/Carthage/Checkouts/RxSwift/Rx.xcworkspace -scheme RxCocoa-iOS -configuration Release -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build) failed with exit code 65:
--- xcodebuild: WARNING: Unable to open project file '/Users/duh/Desktop/guide/Carthage/Checkouts/RxSwift/Rx.playground' in workspace '/Users/duh/Desktop/guide/Carthage/Checkouts/RxSwift/Rx.xcworkspace'.
** BUILD FAILED **


The following build commands failed:
    CompileC /Users/duh/Library/Developer/Xcode/DerivedData/Rx-hawhizdyzypcbzejdlhpvmtjimuk/Build/Intermediates/Rx.build/Release-iphoneos/RxCocoa-iOS.build/Objects-normal/armv7/_RXObjCRuntime.o RxCocoa/Runtime/_RXObjCRuntime.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Self contained code example that reproduces the issue:

github "Alamofire/Alamofire" "4.0.1"
github "hkellaway/Gloss" "1.0.0"
github "CosmicMind/Material" "2.2.2"
github "ReactiveX/RxSwift" "3.0.0-rc.1"
github "RxSwiftCommunity/RxDataSources" "1.0.0-rc.2"
github "RxSwiftCommunity/RxAlamofire" "3.0.0-rc.2"

RxSwift/RxCocoa/RxBlocking/RxTest version/commit

3.0.0-rc.1

Platform/Environment

  • iOS
  • macOS
  • tvOS
  • watchOS
  • playgrounds

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

  • easy, 100% repro
  • sometimes, 10%-100%
  • hard, 2% - 10%
  • extremely hard, %0 - 2%

Xcode version:

  Xcode 8.0 (8A128a)

Installation method:

  • CocoaPods
  • Carthage
  • Git submodules

I have multiple versions of Xcode installed:
(so we can know if this is a potential cause of your issue)

  • yes (which ones)
  • no

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

  • just starting
  • I have a small code base
  • I have a significant code base
@bitkill
Copy link
Author

bitkill commented Oct 21, 2016

just found out that the error is because I have a case-sensitive filesystem.
There is a typo in https://github.com/ReactiveX/RxSwift/blob/master/RxCocoa/Runtime/_RXObjCRuntime.m#L16

changed from
#import "include/_RXObjcRuntime.h"
to
#import "include/_RXObjCRuntime.h"

It's working for me now

@kzaher
Copy link
Member

kzaher commented Oct 22, 2016

Hi @bitkill ,

This should be fixed now. I've pushed a patch to master. Feel free to reopen this issue if it's not fixed.

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

No branches or pull requests

2 participants