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
"pod install" for binary frameworks works correctly only with ruby 2.6.8 #11211
Comments
The error you've included, |
Thanks a lot @sethfri, I have built CocoaPods from master branch and my issue is gone. Now I can't reproduce this issue even with older version of cocoapods, I tried to reinstall cocoapods, switch ruby versions, clean caches. Maybe you can help me? I want to understand what happens and why it works now even with older configuration. |
I'm not sure exactly what caches you're clearing when you say You could try running |
This is fixed with #11217. The original fix was merged to master (1.12) but now we are cherry-picking it down to for 1.11.3. |
The 1.12 original PR can be found here #11158 |
@dnkoutso thanks a lot! Maybe you know when 1.11.3 is planned to be released? |
@mkondakov83 I can do it in the next few days . |
Hi @dnkoutso, do you still plan to release 1.11.3 ? |
Heh, tried to do it last night but had some build issues, will resume today. |
Report
"pod install" for binary frameworks works properly only with ruby 2.6.8
Any higher or lower version of ruby causes issues: some frameworks are not presented in application bundle; application crashes in runtime with error: Library not loaded: @rpath/TestFramework.framework/TestFramework
Please check attached test project.
Issue description:
We deliver some of our frameworks to our clients as fat binaries. This frameworks are built by script with all dependencies.
Finally we deliver all our frameworks as binaries and all dependencies as binaries.
Client installs our frameworks and all dependencies as binaries from git repo.
This approach was working good until Xcode 13.x
If we build our frameworks with Xcode 13.x we have unexpected issue during "pod install" phase on client's side
All dependency frameworks, installed to original "TestProject" with Podfile (in our case it's Reachability.framework) are installed correctly
But all our own frameworks added to original project "TestProject" (in our case it's TestProject.framework) are not added to app bundle during "pod install"
We have spent a lot of time to discover the reason why it happens and accidentally we have found that "pod install" works fine if active ruby version is set to 2.6.8
What did you do?
Steps to reproduce:
At this moment check ruby version with "ruby -v" command. If ruby version is other than 2.6.8 (tested with 2.6.3, 2.7.4, 3.1.0) next command will generate incorrect ClientTestApp/Pods/Target Support Files/Pods-ClientTestApp/Pods-ClientTestApp-frameworks.sh script with missed TestFramework
7 open ClientTestApp.xcworkspace and run project
What did you expect to happen?
Project ClientTestApps runs without issues
What happened instead?
Project ClientTestApps crashes at runtime with error Library not loaded: @rpath/TestFramework.framework/TestFramework
CocoaPods Environment
Stack
Installation Source
Plugins
Podfile
Project that demonstrates the issue
RubyIssue.zip
The text was updated successfully, but these errors were encountered: