Open RtgrV opened 6 years ago
Building from xcode-10 is fine, building with carthage
goes wrong.
The log file, /var/folders/yc/tjq3l5k126158h1f_8hfsn5r0000gn/T/carthage-xcodebuild.Jr5TTv.log
gives the following output:
error: Build input file cannot be found: '/Users/<user>/<project>/Carthage/Checkouts/EarlGrey/fishhook/fishhook.c'
** ARCHIVE FAILED **
Carthage run is going good after the second run. To reproduce the issue, remove EarlGrey from the Carthage
folder.
But well, it should go fine in the first run?
We are also experiencing this issue, is there any plan to fix it? It will be required before the launch of iOS 12.
Still having this issue with the new EarlGrey 1.15.0 .
I am also seeing the issue on build machines only.
Compiling fishhook.c 17:37:42 17:37:42 ❌ error: Build input file cannot be found:
Any fix available ?
It looks like the pre-rec files aren't being downloaded with the new build system. @RtgrV - what was the change to get it working the second time?
I fixed it by creating EarlGrey.framework
and include it as part of Embedded Binaries field, it works
Thanks @badrinathvm. @RtgrV Anyway that could help you with the Carthage issues?
@tirodkar no change needed. Removing all files -) run -) fails -) run again -) succeeds 100% reproducible
At our project we did the same thing as @badrinathvm . But I believe this is a work around and not an actual fix..
@RtgrV Yes, this is a alternative way i say. Because Xcode 10 doesn't allow to download the files while compiling , everything should be done prior. By doing this we might miss out the new features which may be added to Earl Grey framework. May be Earl Grey should find a way to download them before.
We just use a simple script to download the files. These are pre-requisites to get EarlGrey to compile, so we can't have files as part of EarlGrey do the downloading itself.
If you are manually pulling (EarlGrey 1.15.0) source code into your project and running CI with X Code 10,
.gitignore
file on EarlGrey directory using text editor comment out #fishhook above step resolve my issue. It looks like X Code 10 restricts running or downloading dependency (fishhook) by its script from other project target like @tirodkar mentioned.
This sounds like a problem I was just struggling with in my own project, mainly Xcode being unable to see new files that were downloaded and compiled using an external build system during a script phase. I just wanted to make a wrapper around a third party library that allowed it to be used with Carthage. Xcode failed to find the compiled library despite it existing on the file system.
I was able to solve this by specifying the files I cared about under the "Output Files" section of the script phase. That made Xcode realize that those files were added or changed.
Maybe this can help you somehow.
Hello all,
When we build EarlGrey through carthage on our CI, with the newest xcode 10 beta, it fails to compile. Is anyone looking into these problems?
Used Setup
Cartfile.private
Cartfile.resolved
Carthage command
Terminal settings
Set
xcode-select
toxcode-beta.app
.Thanks in advance :-) .