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 using cocoapods 1.11.0 fails with a does not define modules
message
#10912
Comments
thanks for this great report and sample app. will investigate for 1.11.1 |
while i have not inspected this at all, there is a tiny chance cocoapods 1.11 now catches this case more correctly than previous versions but again I will need to investigate. |
Yes, I was thinking this might be the case, but I wanted to make sure by letting you know. If this is indeed the case, there will most likely be more users with issues like the one I'm reporting. |
if it is the case then the error message describes what needs to be done but lets cross that bridge if its true |
Agreed. |
a quick look shows that no changes were made related to throwing this warning...........this is kinda weird. |
@polmum I think I found the culprit and might be "by design" after all. The pod BidMachine (https://github.com/appodeal/CocoaPods/blob/master/BidMachine/1.7.3.5/BidMachine.podspec) has no sources and its a treated as a vendored pre-compiled pod. There is a change in 1.11.0 that inspects whether this pod uses swift or not to fix this issue which now checks if the pod author has specified So CocoaPods now treats BidMachine as if it uses swift and performs the checks needed. This now causes the inspect to scan BidMachine to ensure its dependencies for static libraries are also using modular headers for its dependencies so the Protobuf pod breaks now. This is only limited to a very specific scenario or using static libraries and consuming pre-compiled pods. There is an enhancement somewhere here that asks to skip some dependencies if they are not imported from modular headers but that is for non-vendored frameworks. Based on this change and fix I think you'd have to |
Was able to platform :ios, '10.0'
target 'TestApp' do
pod 'BidMachine'
pod 'Protobuf', :modular_headers => true
target 'TestAppTests' do
inherit! :search_paths
end
target 'TestAppUITests' do
end
end |
We could maybe update the check to skip inspecting targets that do not require building? They are afterall pre built... |
@polmum I will be updating to relax the validation to exclude prebuilt pods. |
PR up #10914 |
Great news! Thanks for your quick replies and for considering relaxing the validation. |
Merged. I will wait a few days for 1.11.1 for new issues to pop up. You can use Bundler in the meantime to point to the |
It worked, thank you :) |
awesome! |
I accidentally merged the fix to |
Report
What did you do?
Run
pod install
using the latest cocoapods version (1.11.0
)What did you expect to happen?
Install all pod dependencies correctly, as it was happening with the previous version (
1.10.1
).What happened instead?
The command failed with the following message:
CocoaPods Environment
Stack
Installation Source
Plugins
Podfile
Project that demonstrates the issue
CocoapodsTestApp.zip
If you run the sample project with older cocoapods versions, the
pod install
command will succeed.The text was updated successfully, but these errors were encountered: