Cocoapods: Default Xcode 12 settings fail to build CocoaPods-generate umbrella headers

Created on 7 Jul 2020  Â·  12Comments  Â·  Source: CocoaPods/CocoaPods

In Xcode 12 default options, CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER is set to Yes. This causes CocoaPods generated umbrella header files to fail with errors like:

Double-quoted include "FBLPromise+All.h" in framework header, expected angle-bracketed instead

Reported and additional discussion at https://github.com/firebase/firebase-ios-sdk/issues/5987

Reproducible project:
testProject.zip

Most helpful comment

@jackguo709 @swisscheesy Update to CocoaPods 1.10. More details and options at https://stackoverflow.com/a/63648164/556617

All 12 comments

Should we set CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER to NO for all Pods build settings?

Yes, that should be safer and easier than generating different content for the umbrellas.

Is Xcode 12 now expecting umbrella headers to use <> imports?

Yes.

Interesting - makes sense I guess. Apple does that in their own frameworks

I just updated to Xcode 12 and am experiencing this issue. How should I resolve it? After the update, the project can initially be successfully built, with a lot of The iOS Simulator deployment target is set to 8.0 warnings. So I updated all of their targets to 12.0. Then this quoted imports error appeared.

I did the following in order, but still get the error.

gem install cocopoads,
rm -rf ~/Library/Developer/Xcode/DerivedData/
pod deintegrate
pod update

I just updated to Xcode 12 and am experiencing this issue. How should I resolve it? After the update, the project can initially be successfully built, with a lot of The iOS Simulator deployment target is set to 8.0 warnings. So I updated all of their targets to 12.0. Then this quoted imports error appeared.

I did the following in order, but still get the error.

gem install cocopoads,
rm -rf ~/Library/Developer/Xcode/DerivedData/
pod deintegrate
pod update

Just upgraded Xcode and am unable to run my flutter app on Ios now as well. Looking for a fix

@jackguo709 @swisscheesy Update to CocoaPods 1.10. More details and options at https://stackoverflow.com/a/63648164/556617

Thanks Paul

Screen Shot 2021-02-02 at 11 51 43 AM
Screen Shot 2021-02-02 at 11 51 51 AM
Screen Shot 2021-02-02 at 11 52 03 AM

pod --version
1.10.1

but can't fixed this issue.

@libyasdf Make sure to run pod deintegrate. See the stackoverflow link above.

@libyasdf Make sure to run pod deintegrate. See the stackoverflow link above.

problem solved

  1. this time I used pod deintegrate

  2. pod install successes. (A few days ago, due to network reasons, there was a problem in this step. It's not true success before)

  3. This project must run on true iPhone.

  4. Actually, pod --version under the project directory is 1.9.3. I don't know why it's 1.10.1 outside. But it didn't affect the final result.

  5. I run pod repo-art add cocoa-remote https://.... to make a local repo, below the directory ~/.cocoapods/repos-art. But when I pod install, It's don't download using local resource —— it's cause the pod install frequent failures.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pronebird picture pronebird  Â·  3Comments

hmistry picture hmistry  Â·  3Comments

evermeer picture evermeer  Â·  3Comments

tlandsmancars picture tlandsmancars  Â·  3Comments

luhui picture luhui  Â·  3Comments