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
CocoaPods 1.11.x changed the path where xcframework was copied #10970
Comments
Probably not considered breaking as these are implementation details of how cocoapods works with respect to integrating xcframeworks. I do not think relying on this mechanism is safe to do so as it can change as it did on 1.11.x. The reason the paths changed was due to fix another bug as you pointed out. If you rely on I am curious why you need that setting to begin with? |
I need this scenario because PodA will become an open-source library, so who will be responsible for adding the frameworks will be the owner of the project that is using PodA. And since who will add is the project owner, PodB can differentiate the name from project to project. Is there a better way to do this? Also, can you demonstrate how it would be the recursive way? Appreciate! |
I think you can do I am sorry but I do not quite understand the use case you are trying to accomplish entirely |
This way you showed is how it works in version 1.10.X but not in 1.11.x Because now in 1.11.x the PODS_XCFRAMEWORKS_BUILD_DIR looks like this: XCFrameworkFolder/ In 1.10.x it was like: XCFrameworkFolder/ |
@rooque maybe I dont quite understand it fully. Either way, I honestly do not think relying on this mechanism is right thing to do. Would love to hear more about how your use case can be accomplished in a different more appropriate way by cocoapods. |
Report
I had a scenario as drawn below:
s.pod_target_xcconfig = { "FRAMEWORK_SEARCH_PATHS" => " \"${PODS_XCFRAMEWORKS_BUILD_DIR}/FrameworkA\" \"${PODS_XCFRAMEWORKS_BUILD_DIR}/FrameworkB\"" }
, everything works fine.This change was probably made by the PR #10884
Is this type of change considered breaking?
Maybe I'm using this configuration in the wrong way and I have some other way to meet this scenario
What did you do?
Pod install and build project for both versions.
What did you expect to happen?
The project should build for both version.
What happened instead?
In 1.10.x -> Project builds just fine.
In 1.11.x -> FrameworkA/FrameworkA.h not found.
Stack
1.10.1
Installation Source
Plugins
1.11.2
Installation Source
Plugins
Project that demonstrates the issue
Ping me if you need this test project
The text was updated successfully, but these errors were encountered: