我在我的 iOS 应用程序中使用 CocoaPods 一年了。
昨天我尝试更新 pod update
我的项目中包含的所有 pod。
但是当使用这个命令时,我总是得到以下错误:
[!] The `XXXTests [Debug]` target overrides the `FRAMEWORK_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-XXXTests/Pods-XXXTests.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `XXX [Release]` target overrides the `FRAMEWORK_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-XXXTests/Pods-XXXTests.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
根据 this answer我已将 FRAMEWORK_SEARCH_PATHS 更改为 $(inherited)
但它不会产生任何影响。
谁能帮我解决这个问题?
编辑 1:这是我的 pod 文件的内容:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'xxx' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for xxx
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Crash'
pod 'Firebase/RemoteConfig'
target 'xxxTests' do
inherit! :search_paths
# Pods for testing
end
end
最佳答案
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
target 'xxx' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Crash'
pod 'Firebase/RemoteConfig'
# Pods for xxx
target 'xxxTests' do
inherit! :search_paths
# Pods for testing
end
end
关于swift - CocoaPods 更新目标覆盖 `FRAMEWORK_SEARCH_PATHS`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40945581/