不管使用 pod install 或者 pod update 會報這樣的錯誤
Snip20160921_1.png
解決 1,3 的方法 找到這個地方
[!] 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.
68A86FB6-416F-49F2-BB25-79F964EFABD1.png
把里面Debug 和 Release 改成這樣 $(inherited)
解決 2 和 4 方法
pod install
后經常會出現如下錯誤
[!] The target 項目名 [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 項目名 [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.
對于我等菜鳥看得莫名奇妙,無從下手,那么如何解決呢?
在 Finder 中找到 項目名.xcodeproj,右鍵選擇顯示包內容
用文本編輯器打開 project.pbxproj,搜索 OTHER_LDFLAGS
若項目未運行 pod install
則會看到2處類似格式的語句
OTHER_LDFLAGS = "";
將其刪除后運行
pod install
即可
若已運行
pod install
則刪除2處如下格式的語句
<key>OTHER_LDFLAGS</key>
<string></string