不管使用 pod install 或者 pod update 會(huì)報(bào)這樣的錯(cuò)誤
解決 1凭疮,3 的方法 找到這個(gè)地方
[!] The
APP_NAME [Debug]
target overrides the FRAMEWORK_SEARCH_PATHS
build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the
$(inherited)
flag, or - Remove the build settings from the target.
把里面Debug 和 Release 改成這樣 $(inherited)
解決 2 和 4 方法
pod install
后經(jīng)常會(huì)出現(xiàn)如下錯(cuò)誤
[!] The target 項(xiàng)目名 [Debug]
overrides the OTHER_LDFLAGS
build setting defined in Pods/Pods.xcconfig'. - Use the
$(inherited)` flag, or
- Remove the build settings from the target.
[!] The target 項(xiàng)目名 [Debug - Release]
overrides the OTHER_LDFLAGS
build setting defined in Pods/Pods.xcconfig'. - Use the
$(inherited)` flag, or
- Remove the build settings from the target.
對(duì)于我等菜鳥看得莫名奇妙疲牵,無從下手燕雁,那么如何解決呢岖妄?
在 Finder 中找到 項(xiàng)目名.xcodeproj宫仗,右鍵選擇顯示包內(nèi)容
用文本編輯器打開 project.pbxproj挤庇,搜索 OTHER_LDFLAGS
若項(xiàng)目未運(yùn)行 pod install
則會(huì)看到2處類似格式的語句
OTHER_LDFLAGS = "";
將其刪除后運(yùn)行
pod install
即可
若已運(yùn)行
pod install
則刪除2處如下格式的語句
<key>OTHER_LDFLAGS</key>
<string></string