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
Ruben source share