Quick / Nimble

A Matcher Framework for Swift and Objective-C
https://quick.github.io/Nimble/documentation/nimble/
Apache License 2.0
4.8k stars 598 forks source link

Nimble linker issues with Objective-C++ #448

Closed aboedo closed 2 years ago

aboedo commented 7 years ago

What did you do?

Created a .mm file in which to add unit tests using nimble macros / functions.

What did you expect to happen?

No compiler issues.

What actually happened instead?

Compiler issues appear as soon as you add expect, to or any other nimble stuff. Note that quick functions like context, describe or it will work correctly.

Environment

List the software versions you're using:

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

Project that demonstrates the issue

Just try modifying the extension of any Objective-C file that uses quick/nimble to .mm.

jeffh commented 7 years ago

Hey @aboedo,

Thanks for filling an issue. Unfortunately, Nimble currently uses Swift's interop with Objective-C which currently doesn't support Objective-C++.

For now, I have a hacky proof-of-concept that simply carries the swift-bridged types over to ObjC on my branch. Let me know if that works.

younata commented 2 years ago

Hey @aboedo! This issue is nearly 5 years old at this time! Thank you for your patience, but I'm going to close it.