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

Obj-C support is broken #642

Closed
1 task done
joeljfischer opened this issue Apr 1, 2019 · 4 comments
Closed
1 task done

Obj-C support is broken #642

joeljfischer opened this issue Apr 1, 2019 · 4 comments

Comments

@joeljfischer
Copy link

joeljfischer commented Apr 1, 2019

  • I have read CONTRIBUTING and have done my best to follow them.

What did you do?

Updated Nimble version from 7.3.0 to 8.0.1.

What did you expect to happen?

Tests still build

What actually happened instead?

My unit tests using Quick & Nimble will not compile:

Property 'to' cannot be found in forward class object 'NMBExpectation'

This points to DSL.h which has @class NMBExpectation.

Environment

List the software versions you're using:

  • Quick: 2.0.0
  • Nimble: 8.0.1
  • Xcode Version: 10.2 (10E125) (Open Xcode; In menubar: Xcode > About Xcode)
  • Swift Version: Objective-C (Open Xcode Preferences; Components > Toolchains. If none, use Xcode Default.)

Please also mention which package manager you used and its version. Delete the
other package managers in this list:

  • Carthage: 0.32.0 (Use carthage version in Terminal)
@joeljfischer
Copy link
Author

This seems like it may be an issue with Xcode 10.2? I reverted to 7.3.4 and I'm having the same issue.

@joeljfischer
Copy link
Author

This appears to be related to Nimble-Swift.h which actually defines NMBExpectation not being available in Nimble.h. However, I'm still unable to get it to compile and expose the information in such a way that my tests work properly. I'm still looking into it, but if someone with more familiarity with Nimble's internals could take a look as well, it would be greatly appreciated.

@ikesyo
Copy link
Member

ikesyo commented Apr 3, 2019

I don't see any problem for Objective-C support, e.g. ReactiveCocoa/ReactiveObjC#156

Please try using @import Nimble; instead of #import <Nimble/Nimble.h>

@joeljfischer
Copy link
Author

I did also try that, and it still failed. I tested with a submodule and everything worked fine, so I suspected Carthage was the issue. It appears I was correct and my issue was resolved in v0.33.0 which released late yesterday. After updating, everything worked properly again.

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