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

Building test suite fails on Xcode 12 due to not finding XCTest.h header #801

Closed
1 task done
bvirlet opened this issue Jul 27, 2020 · 4 comments · Fixed by #803
Closed
1 task done

Building test suite fails on Xcode 12 due to not finding XCTest.h header #801

bvirlet opened this issue Jul 27, 2020 · 4 comments · Fixed by #803
Assignees

Comments

@bvirlet
Copy link

bvirlet commented Jul 27, 2020

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

What did you do?

I'm build our test suite for our current project (which builds fine with Xcode 11.4) with Xcode 12 Beta 3.

What did you expect to happen?

The tests fail to build with the following error:

/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/Developer/Library/Frameworks/XCTest.framework/Modules/module.modulemap:2:21: error: umbrella header 'XCTest.h' not found
    umbrella header "XCTest.h"
                    ^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "Headers/Nimble-Swift.h"
        ^
/Users/..<shortened>../Vendor/Carthage/Build/iOS/Nimble.framework/Headers/Nimble-Swift.h:199:9: error: could not build module 'XCTest'
@import XCTest;
        ^
<unknown>:0: error: could not build Objective-C module 'Nimble'

I have found the following Apple Forums thread which seems relevant but it doesn't give a definite answer. The suggestion solution from Apple engineers seem like a workaround, but also seems to imply that the testing frameworks (such as Quick/Nimble) are missing some settings.

I'm not sure if this is an Xcode 12 Beta 3 issue, or is there something that needs to be fixed. Your advice would be appreciated.

Thanks!

Environment

List the software versions you're using:

  • Quick: 3.0.0
  • Nimble: 8.1.1
  • Xcode Version: Version 12.0 beta 3 (12A8169g)
  • Swift Version: Xcode Default
  • Carthage: 0.35.0 (Use carthage version in Terminal)

Additional information

  • Test suite is hybrid Swift/Objective-C (but Quick/Nimble are only used in Swift). I don't have the problem with another project's Swift-only test suite.
@bvirlet bvirlet changed the title Building tests Building test suite fails on Xcode 12 due to not finding XCTest.h header Jul 27, 2020
@ikesyo
Copy link
Member

ikesyo commented Jul 28, 2020

Thanks for filing an issue. Could you try #803?

@ikesyo ikesyo self-assigned this Jul 28, 2020
@bvirlet

This comment has been minimized.

@bvirlet
Copy link
Author

bvirlet commented Jul 28, 2020

I got rid of the initial issue on my project by removing the following path "$(SDKROOT)/Developer/Library/Frameworks" from my test target FRAMEWORK_SEARCH_PATHS.

@ikesyo

This comment has been minimized.

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

Successfully merging a pull request may close this issue.

2 participants