我在这里发布问题和答案是因为我花了 4 个多小时才弄明白这个问题。
pod install
并收到以下错误The 'XXX [Debug]' target overrides the 'LIBRARY_SEARCH_PATHS' build setting defined in 'Pods/Target Support Files/Pods-XXX/Pods-XXX.debug.xcconfig'.
This can lead to problems with the CocoaPods installation
- Use the '$(inherited)' flag, or
- Remove the build settings from the target.
$(inherited)
作为第一项。 Cocoapods 停止抱怨,但您不再看到最初导入的所有搜索路径。答案 0 :(得分:4)
在这里观看 2 分钟的视频:https://youtu.be/XvaqW0lQL18
转到目标的 XCode 构建设置中的库搜索路径
双击,选择其中的任何条目,然后单击“-”按钮将其删除。
您会注意到该字段现在是空的,但“图书馆搜索路径”现在是粗体。
选择粗体的“图书馆搜索路径”行并按退格键
您应该会看到所有原始搜索路径神奇地重新出现。
我无法相信这是多么不直观。我希望它可以帮助我以外的人。