好吧,我正在解决一个关于 可可豆荚结构中的重复符号。. 安装好吊舱后,用 post_install
在接受的解决方案中,我建立了我的xcworkspace项目,我遇到了以下错误。
错误是 在预处理器表达式中预期的行结束: 在行。#if HAVE_FULLFSYNC
在方法中 SyncFd(int fd, const std::string& fd_path)
而文件的位置是: PodsPodsleveldb-libraryenv_posix.cc。
我添加的引发这一系列问题的Pod是'CodableFirebase',来自于 此处.
这是我的Podfile。
platform :ios, '13.2'
post_install do |installer_representation|
installer_representation.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = '$(inherited), PodsDummy_Pods=SomeOtherNamePodsDummy_Pods'
end
end
end
target 'ShoeSwiperMenus' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for ShoeSwiperMenus
# add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
# add pods for any other desired Firebase products
# https://firebase.google.com/docs/ios/setup#available-pods
pod 'Firebase/Core'
pod 'Firebase/Firestore'
pod ‘FirebaseUI/Auth'
pod 'FirebaseUI/Google'
pod 'FirebaseUI'
pod 'MaterialComponents/Buttons'
pod 'MaterialComponents/Buttons+Theming'
# pod 'MaterialComponents/schemes/Color'
pod 'Shuffle-iOS'
pod 'JGProgressHUD'
pod 'LBTATools'
pod 'CodableFirebase'
end
当删除 post_install
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我真的是黔驴技穷了...... 我甚至不知道如何开始解决这个问题(谷歌上什么都没有)。请帮助我!
我只是把你的Podfile添加到一个空的项目中,得到了同样的错误,然后删除了这个项目。post_install
块,并且能够无误地构建。
所以,去掉 post_install
块。不管它所谓的解决什么问题,都会造成这个问题。
另外,我建议添加 inhibit_all_warnings!
到Podfile。