Using Xcode 7
I am trying to install Alamofire in a sample project. Have used the instructions from Ray Wenderlich\'s page
Only change from above link is the
As for me worked to change the name of the project. Accidentally put
ProjectNameTests
instead of
ProjectName
No schemas needed if you've configured the names correctly everywhere:
Example of correct Podfile (Alamofire):
'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
target 'ProjectName' do
pod 'Alamofire', '~> 4.7'
end
There is only one way to solve this issue.
Quit Xcode.
Delete project's temp files located at /Users/username/Library/Developer/Xcode/DerivedData
Delete ProjectName.xcworkspace
Delete Podfile.lock file and Pods folder Run pod install.
Open the newly created ProjectName.xcworkspace file and build.
credits to Dimitris Bouzikas here
Here is what to do:
After you do all things, don't open the file with extension .xcodeproj
but open the file with extension .xcworkspace
My problem was solved using these steps :
Clean Project Goto Project > Build Setting > Framework Search Path and add
Adding Alamo Fire to all of my target's build phases fixed it for me.