Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Carthage build fails to find Nimble/Nimble-Swift.h using Xcode 11 in some environments (GitHub Actions/Xcode Bots) #702
Comments
|
Also getting this issue after update to MacOS Catalina 10.15 when using Carthage • Nimble: 8.0.4 It would be nice to get a fix, it's breaking our builds |
|
Seeing same issue on Jenkins CI with Xcode 11.1. Builds fine locally and on CircleCI. |
|
Any update on this? |
|
If anyone is still seeing this issue when using GitHub Actions, I managed to get it to work by patching Nimble to use the legacy build system (setting |
This comment has been hidden.
This comment has been hidden.
…ated mockingbird from 0.10.0 to 0.11.0) (#40) Add Quick and Nimble into the project for better unit tests. See https://www.raywenderlich.com/135-behavior-driven-testing-tutorial-for-ios-with-quick-nimble for a good tutorial on what they are and how to use them For some reason, a simple pod install doesn't work, so we are forced to add a pod deintegrate into the build step. There is an issue reported in the Nimble library and I also commented on the issue (Quick/Nimble#702 (comment)). Until we get more guidance on how to fix this CwlCatchException.h not found error, we're stuck deintegrating and re-installing all pods on every build. :(
|
I'm struggling with this as well. Builds perfectly fine locally using Xcode 11.3.1 (and Xcode 11.4) but fails on CI most of the times. Suddenly couple of builds succeeded yesterday on CI, but then it started to fail again. And I'm always doing a clean install on CI with all Carthage caches cleared so the install should be deterministic. According to the Xcode build logs on CI, the automatically generated Objective-C header |
|
We found that immediately retrying the carthage build command helps working around this issue. |
@vlypskyi Thanks for the workaround |
What did you do?
Tried to build the Nimble project for iOS using Carthage on Xcode 11
What did you expect to happen?
Build to succeed
What actually happened instead?
The build fails with the error
NMBStringify.m:6:9: fatal error: 'Nimble/Nimble-Swift.h' file not found #import <Nimble/Nimble-Swift.h>Environment
List the software versions you're using:
Xcode DefaultPlease also mention which package manager you used and its version. Delete the
other package managers in this list:
Extra info
When trying to build Nimble via Carthage in certain environments the
Nimble/Nimble-Swift.hfile is not found. I found that it fails in GitHub actions (example), but a question on StackOverflow shows it is failing when built by an Xcode Bot.In GitHub actions is only fails when using Xcode 11, but for Xcode Bots I'm not sure (the question does not specify).
Workaround
The project can be built when using the Debug configuration, but this is not ideal.