ld: framework not found error in xcode 8

11,057

Solution 1

After installing the frameworks, did you closed your project and opened the newly created workspace?

Once you start using CocoaPods to install framework, you must use the workspace as it includes your Sample project and the Pod project containing the frameworks.

In you project directory, make sure to open the .xcworkspace instead of .xcodeproj.

Edit: If that is not the issue, go to your Sample target/General/Linked Framework and Librairies

You should only have one that should be name something like: Pods_Sample.framework

If you are only using cocoa pods to install frameworks it should be the only one there as it includes all the pods.

Solution 2

select your target -> General ->Embedded Binary , click + ,and add Alamofire.framework

Share:
11,057
Arun
Author by

Arun

Updated on June 13, 2022

Comments

  • Arun
    Arun almost 2 years

    I am using xcode 8 for development and cocoapods 1.0.1 for frameworks. After installing frameworks, i couldn't able to build my project. I am getting "ld: framework not found" error. I am using following lines in pod file:

    # Uncomment this line to define a global platform for your project
    platform :ios, '9.0'
    
    target 'Sample' do
    
    use_frameworks!
    
    pod 'MBProgressHUD', '~> 0.9'
    pod 'TPKeyboardAvoiding', '~> 1.2'
    pod 'SDWebImage', '~> 3.7'
    pod 'UIActivityIndicator-for-SDWebImage'
    pod 'UITextView+Placeholder', '~> 1.2'
    pod 'Alamofire', '~> 4.0'
    
    end
    
    post_install do |installer|
        installer.pods_project.targets.each do |target|
            target.build_configurations.each do |config|
                config.build_settings['SWIFT_VERSION'] = '3.0'
            end
        end
    end