我現在在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
沒有問題,只是刪除一個, –