我现在在iOS应用程序中使用CocoaPods一年。 昨天我试着更新pod update
我的项目中包含的所有豆荚。CocoaPods更新目标覆盖`FRAMEWORK_SEARCH_PATHS`
但是使用这个命令我一直都想与这下面的错误时:
[!] 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:这是我荚文件的内容:
# 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
编辑乌尔荚文件,并替换它我更新的答案pod文件。保存textedit文件,关闭,火推荐吊舱安装 –
非常感谢! :)不过我也不得不把'$(继承)'在FRAMEWORK_SEARCH_PATHS我的目标xxx和xxxTests – Mojo
没有问题,只是删除一个, –