Reputation: 1720
my project was running fine but when i added alamofire and it is not working.
it is giving following error
ld: warning: directory not found for option '-F/Users/banglafire/Desktop/mysios/Build/Products/Debug-iphonesimulator/Alamofire' ld: framework not found Alamofire clang: error: linker command failed with exit code 1 (use -v to see invocation)
additional information
Cocopad version 1.3.1
my pod file
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'My' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for My
pod 'Alamofire'
end
How do i solve it? Please help!
Upvotes: 1
Views: 4664
Reputation: 894
I was facing same problem. So i think you are opening .xcodeproj.
you need to open .xcworkspace
Upvotes: 3
Reputation: 818
I recently encountered this problem aswell. I tried a lot of the suggested fixes on here, but none of them actually fixed the problem.
The actual problem was an incorrect value that was set in the Build Settings of the app.
After setting Per-configuration Build Products Path to:
CONFIGURATION_BUILD_DIR = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
the problem was resolved and my build succeeded.
Upvotes: 0
Reputation: 319
I think there are some issues with your Pod file should be as below:
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'My' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'Alamofire', '~> 4.4'
target 'MyTests' do
inherit! :search_paths
# Pods for testing
end
target 'MyUITests' do
inherit! :search_paths
# Pods for testing
end
end
try to remove Pod file and again install the pod file and add pod-like this. Hope this could help you.
Upvotes: 2
Reputation: 295
Did you update your pod on project folder already ?
Also check if your pod is correct or not.
https://github.com/Alamofire/Alamofire
When you add something pod on your project, you still need to update your folder.
Try use terminal -> then go to your folder project -> type pod install
Upvotes: 0
Reputation: 45
Try to add the version of the alamofire
pod 'Alamofire', '~> 4.5'
Then run pod install
Upvotes: 0