-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
c++11 pod compile error on cocoapods 0.22.1 #1189
Comments
Unfortunately not. Please figure out the exact build setting issue and then provide a reduced sample project, so we can fix this. |
You can try to build my project with cocoapods 0.22.1 (Version 0.20.x works fine). It's pretty simple. Just run |
Thanks, that makes it much clearer :) So the build failure happens in Pods-CedarAsync, the reason for this is that it’s missing those settings that you’ve mentioned, which are only applied to Pods-Cedar. In short, the Pods-CedarAsync spec is technically broken, because it actually requires those build settings. It previously worked because before CP 0.22.x, the build settings of all pods in a target were shared, which was basically polluting the build env of individual pods. The fix is basically this change to the CedarAsync spec, but unfortunately this leads to another failure, namely the stdlib being specified twice in the Pods target. I.e. in Pods.xcconfig, this:
Expands to:
So I can’t push this spec change yet, until we have a fix for such duplicated values, but you should be able to apply the fix locally and change the contents of Pods.xcconfig to hardcode the fixed values:
|
@irrationalfab Before releasing 0.22.2 I’m going to look into this bug. |
Released 0.22.2. |
I have now also pushed the spec change: CocoaPods/Specs@e2c3ec4 |
Thanks guys! Everything works fine now! |
Good to hear! 🍻 |
@alloy 👍 I'm wondering if a similar issue might arise in the xcconfigs of the aggregate targets. |
@irrationalfab This was at the aggregate level, so I have only changed the AggregateXCConfig class. |
Sorry, I read the implementation too quickly. Indeed it makes sense. However doesn't this means that we will not be able to use the variables to allow to configure the xcconfigs more easily as originally planned? |
Right now, yes. So we need to discuss how we want it to be configurable, the simplest approach would probably be to do the aggregate target in the same way as the other targets. |
Update EKStreamView/1.0.1/EKStreamView.podspec
Hi!
I have project that uses CedarAsync for BDD-testing. And everything were fine until I've update cocoapods from 0.20.2 to 0.22.1. And after that I couldn't build CedarAsync pod anymore!
The problem is in C++11 extensions that used by CedarAsync. And I've found in XCode "build settings" some parameter that set version of C++ for pods to c++0x. I've changed it to c++11, but still got compile error.
Do you have any ideas how to fix it?
The text was updated successfully, but these errors were encountered: