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

Xcode 7.1 GM Build Error: iOS framework contains tvOS platforms #208

Closed
nanoxd opened this issue Oct 21, 2015 · 7 comments
Closed

Xcode 7.1 GM Build Error: iOS framework contains tvOS platforms #208

nanoxd opened this issue Oct 21, 2015 · 7 comments
Labels

Comments

@nanoxd
Copy link

nanoxd commented Oct 21, 2015

I attempted to use the xcode7.1 branch to build with Carthage and received:

Nimble/Nimble/Adapters/AssertionRecorder.swift:48:20: Use of unresolved identifier 'NMBExceptionCapture'

Nimble/Nimble/Matchers/RaisesException.swift:20:27: Use of unresolved identifier 'NMBExceptionCapture'

/Nimble/<module-includes>:1:1: Umbrella header for module 'Nimble' does not include header 'Nimble/Nimble/objc/DSL.h'
/Nimble/<module-includes>:1:1: Umbrella header for module 'Nimble' does not include header '/Nimble/Nimble/objc/NMBExceptionCapture.h'

Adding the following the umbrella header fixed the issue:

#import <Nimble/DSL.h>
#import <Nimble/NMBExceptionCapture.h>

I'm not sure if this is the only way to fix it, I can submit a PR if you'd like to go this route.

Thanks 🎊!

@nanoxd
Copy link
Author

nanoxd commented Oct 21, 2015

Upon further digging, the error stems from having bit code disabled for the tvOS slice.

nano tmux 2015-10-21 14-20-51
The interesting part is that I'm not building all platforms (using carthage update --platform iOS) but the Supported Platforms contains references to the Apple TV

nimble xcodeproj 2015-10-21 14-29-37

@nanoxd nanoxd changed the title Xcode 7.1 GM Build Error: Use of unresolved ID NVMExceptionCapture Xcode 7.1 GM Build Error: Use of unresolved ID NMBExceptionCapture Oct 21, 2015
@nanoxd nanoxd changed the title Xcode 7.1 GM Build Error: Use of unresolved ID NMBExceptionCapture Xcode 7.1 GM Build Error: iOS framework contains tvOS platforms Oct 21, 2015
@eimantas
Copy link

I've forked quick/Nimble and updated the settings and the code base to compile under Xcode 7.1. You can check it out at walkingsmarts/Nimble (same branch: xcode7.1)

@AnthonyMDev
Copy link
Contributor

When is a new version going to be released with the xcode7.1 branch merged?

@RohanNagar
Copy link

+1 to this issue. This is currently broken for me and I can't run my tests :(

@jeffh
Copy link
Member

jeffh commented Oct 27, 2015

Hey guys,

Sorry for the slow turnaround, most of the current contributors to Quick are currently not active and I can only guarantee a few hours a week.

I would be more comfortable releasing if I didn't receive conflicting results of enabling and disabling bitcode for tvOS. I think I'll just bite the bullet and release with bitcode enabled and see if there's any fallout for that.

Thanks,
Jeff

@jeffh jeffh added the bug label Oct 27, 2015
@jeffh
Copy link
Member

jeffh commented Oct 27, 2015

I've cut v3.0.0.

Please let me know if you're having any issues.

@jeffh jeffh closed this as completed Oct 27, 2015
@RohanNagar
Copy link

@jeffh Appreciate it, everything seems to be working after the upgrade.

alexbepple added a commit to alexbepple/etaboard that referenced this issue Jan 27, 2018
cp. Quick/Nimble#208

Temporary fix for Quick not building with Xcode 7.1 through Carthage:

/Users/ab/code/etaboard/Source/UnitTests/LevenshteinDistanceTests.swift:2:8: Module file was created by an older version of the compiler; rebuild 'Nimble' and try again: /Users/ab/code/etaboard/Carthage/Build/iOS/Nimble.framework/Modules/Nimble.swiftmodule/x86_64.swiftmodule
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

5 participants