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 in
https://github.com/firebase/firebase-ios-sdk/issues/5987
The error comes from a new recommended Xcode 12 build setting. We'll investigate an update to nanopb.
In the meantime a workaround is disabling the option in the generate Pods project Build Settings:
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
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
It's a new warning setting in Xcode 12. The issue is gone after updating the pods. And it works until you apply the recommended settings which includes a new warning. After enabling the recommended warnings, the following setting is added to the project file (project.pbxproj), which breaks the compatibility with GoogleDataTransport:
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
So, for now, just update your pods and don't update the pods project to the recommended settings. Alternatively, you could update to recommended settings and manually reset the flag afterwards to NO
.
rm -rf ~/Library/Developer/Xcode/DerivedData/
rm -rf ~/Library/Caches/CocoaPods/
pod deintegrate
pod update
I solved by updating CocoaPods to the latest stable version, which is 1.9.3, running sudo gem install cocoapods
.
After that i updated all my pods with pod update
and updated the swift version in Podfile to the last available
config.build_settings['SWIFT_VERSION'] = '5.3'
I checked that the Clang warnings where turned off in Pod's project tab AND GoogleDataTranport's target tag image. As mentioned in https://github.com/firebase/firebase-ios-sdk/issues/5987.
Finally I cleared the build folder with CMD+Shift+K
and re-run the project with CMD+R