Alamofire error after adding via Cocoapods

I have an Xcode project written in Objective-C. But I want to write my new screens in Swift and need Alamofire infrastructure. I already have Swift files in my project, but after several attempts I get the following error:

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) 

And in the terminal, I get the following sentence:

 [!] 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 `APP NAME [Release]` target overrides the `EMBEDDED_CONTENT_CONTAINS_SWIFT` build setting defined in `Pods/Target Support Files/Pods-APP-NAME/Pods-APP-NAME.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the `$(inherited)` flag, or - Remove the build settings from the target. 

I already tried adding $(inherited) to the Library Search Paths (build phases.

My swap file:

 # Uncomment this line to define a global platform for your project platform :ios, '8.0' use_frameworks! target 'APP-NAME' do pod 'Alamofire', '~> 2.0' end 
+5
source share
1 answer

drag and drop the Alamofire.framework file into your project manually, and then connect the binary file to the framework (phase-link-build-build binary file with libraries - add Alamofire.framework)

I did this to add most of the third-party library in swift 2.0, xcode 7.3

0
source

Source: https://habr.com/ru/post/1236145/


All Articles