-
Notifications
You must be signed in to change notification settings - Fork 69
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
Integration Attempts to Use Dependent Frameworks from Wrong Path #41
Comments
Hi @vasl, 1/ Is s.vendored_frameworks = ["ModuleZero/ModuleZero.framework"] Am I right? 2/ Is the error message "Errno::ENOENT - No such file or directory @ realpath_rec" related to Thank you! |
Thank you for getting back to me. I'm on a multi-project schedule and I do not have access to that project recently. I'll take a look the next time I get the chance to work on it. Sorry if not happening soon. I can somewhat remember that |
So I got to look at the snapshot.
|
Hi. Thank you for the details. Will check it then! |
Not entirely sure whether this is a cocoapods-binary-cache issue or CocoaPods issue. I did not see this before so I'll assume it's related to cocoapods-binary-cache.
I have some app modules packaged as Pods hosted on private Git repo, the
Podfile
is defined as follows:ModuleOne here is a mega Pod that depends on some other framework, say ModuleZero and so on. It has an oversimplified folder structure like this:
Running
pod binary prebuild --push
orbundle exec pod binary prebuild --push
generated/prebuilt ModuleOne and dependencies as expected in the specified sandbox directory, but the final integration failed due to "Errno::ENOENT - No such file or directory @ realpath_rec - ...". No Pod-related workspace was generated after the command failed.I dug around and it seemed the issue was cocoapods-binary-cache or CocoaPods looking into the wrong path when searching for dependent frameworks. When ModuleOne depended on ModuleZero, ModuleOne was prebuilt into
$SANDBOX_PATH/GeneratedFrameworks/ModuleOne/ModuleOne.framework
, where CocoaPods got it right; ModuleZero was left in$SANDBOX_PATH/GeneratedFrameworks/ModuleOne/ModuleOne/ModuleZero/ModuleZero.framework
but somehow CocoaPods wanted to find it in$SANBOX_PATH/GeneratedFrameworks/ModuleOne/ModuleZero.framework
. Even if I manually moved .framework directory, .bundle also faced the same issue.Verbose
pod binary prebuild
points the stack to.gem/gems/cocoapods-1.10.0/lib/cocoapods/project.rb:326
but I've never ran into this issue on stock CocoaPods installation.The text was updated successfully, but these errors were encountered: