I've just update XCode to Version 12 and I'm using Firebase. I've updated pods as well but when I build the project it's giving me error:
Double-quoted include "pb.h" in framework header, expected angle-bracketed instead
These errors are multiple and in the pod of GoogleDataTransport
Even if I replace ""
with <>
it still doesn't go away.
Apparently installing cocoapods version 1.10.0 fixes it all.
If that doesn't work for you, please continue reading.
There's lots of temp fixes that'll definitely work for you.
Here's the command to uninstall and reinstall that 1.10.1 version:
gem uninstall cocoapods; gem install cocoapods -v '1.10.1'
ONLY CONTINUE READING IF THE ABOVE DIDN'T WORK FOR YOU.
If you are an experienced Xcode user, just look at the image below, you'll know exactly what to do, else feel free to follow the detailed steps.
If updating cocoapods
didn't work for you, try this...which worked for me.
Please note: This is a workaround. Once
cocoapods
fix this in future releases, please update cocoapods instead of doing the workaround.@iHS has a great temp cocoapods fix
@haley-huynh has a great cocoapods update example.
@bogdan-razvan Said that running
sudo gem install cocoapods
fixed the problem for him ... Maybe give it a shot if not already!All of those are worth giving a shot before this workaround.
With that said, we don't always have time to wait for fix releases 🙄...So open Xcode and let's get to the workaround.
Step 1: Navigate
Pods
(It usually has this blue xcode file next to it). Once you clicked on it, it should have opened the pods targets and settings on the right.Step 2: Build Settings
Build Settings
and then also make sure All
is selected out of the three build settings filter types (Basic
, Customized
and All
)Step 3: Search
quoted include
.Quoted Include In Framework Header
Step 4: Set to No
Quoted Include In Framework Header
to No
Step 4: Rebuild
Step 5: Don't be fooled
He's a picture for some visual stimulation:
Looks like this issue is fixed as part of Cocoapods 1.10.1
(not officially released, as of this writing). However, you can use Cocoapods version 1.10.0.rc.1
temporarily until 1.10.1 is officially available.
gem install cocoapods -v '1.10.0.rc.1'
Another option is to update your Podfile (add below code) to disable the warning flag CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER
setting for all pods in your project.
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER'] = 'NO'
end
end
end
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With