[!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
出現這個錯誤是因為使用文本編輯編輯了Podfile, 解決辦法:不要使用文本編輯去編輯Podfile,使用Xcode編輯,或者使用終端敲命令去編輯。
[!] The `ChatDemo [Debug]` target overrides the `OTHER_LDFLAGS` 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.
[!] The `ChatDemo [Release]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods/Pods.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
上面兩個錯誤的兩種解決方法:
1.點擊項目文件 project.xcodeproj,右鍵`顯示包內容`,用文本編輯器打開`project.pbxproj`,刪除`OTHER_LDFLAGS`的地方,保存,回到 Xcode,編譯通過
2.Go to your target Build Settings -> Other linker flags -> double click . Add $(inherited)
to a new line.
[!] Pods written in Swift can only be integrated as frameworks; add `use_frameworks!` to your Podfile or target to opt into using it. The Swift Pod being used is: NVActivityIndicatorView
出現這種錯誤, 是因為Podfile中, platform后的iOS版本低於框架所要求的版本