【发布时间】:2019-03-26 22:55:56
【问题描述】:
升级到最新的 Xcode 后出现一系列错误。
MyApp/Pods/Protobuf/objectivec/google/protobuf/Any.pbobjc.m:17:10: Non-portable path to file '<protobuf/Any.pbobjc.h>'; specified path differs in case from file name on disk
当我查看代码时,我发现路径确实是大写的。
#import <Protobuf/Any.pbobjc.h>
对于如何处理这个问题有什么建议吗?
我的 pod 文件如下所示:
# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'
target 'MyApp' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for MyApp
pod 'Firebase/Core'
pod 'Firebase/Storage'
pod 'Firebase/Database'
pod 'Firebase/Firestore'
pod 'Firebase/Auth'
pod 'Firebase/AdMob'
# Pods for PodTest
pod 'Fabric'
pod 'Crashlytics'
target 'MyAppTests' do
inherit! :search_paths
# Pods for testing
end
target 'MyAppUITests' do
# inherit! :search_paths
# Pods for testing
end
end
到目前为止,我已经尝试解构并重新安装所有 pod 文件,但错误仍然存在。
【问题讨论】: