小编Rub*_*ben的帖子

通过Cocoapods添加后出现Alamofire错误

我有一个用Objective-C编写的Xcode项目.但是我想在Swift中编写我的新屏幕并需要Alamofire框架.我的项目中已经有Swift文件,但尝试几次后出现以下错误:

ld: warning: directory not found for option '-L/Users/USERNAME/Developer/APP NAME/build/Debug-iphoneos'
ld: warning: directory not found for option '-F/Users/USERNAME/Developer/APP NAME/build/Release-iphoneos'
ld: framework not found Alamofire
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)

在终端我得到以下建议:

[!] The `APP NAME [Debug]` target overrides the `EMBEDDED_CONTENT_CONTAINS_SWIFT` build setting defined in `Pods/Target Support Files/Pods-APP-NAME/Pods-APP-NAME.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.

[!] The …
Run Code Online (Sandbox Code Playgroud)

xcode cocoapods swift alamofire

5
推荐指数
1
解决办法
492
查看次数

标签 统计

alamofire ×1

cocoapods ×1

swift ×1

xcode ×1