Bartłomiej Semańczyk
Bartłomiej Semańczyk

Reputation: 61832

"framework not found AFNetworking for architecture arm64" for my Test Target

This is what I see when trying to run tests under test target in my iOS App:

ld: framework not found AFNetworking for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

This is how my podfile looks like:

use_frameworks!
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, "8.2"

def pods

    pod 'AFNetworking'
    pod 'Fabric'
    pod 'Crashlytics'
    pod 'MagicalRecord'
    pod 'SDWebImage'
    pod 'SVProgressHUD'
end

target 'MySoberRoomMate' do
    pods
end

inhibit_all_warnings!

Upvotes: 0

Views: 2043

Answers (1)

Abdul Rehman
Abdul Rehman

Reputation: 2456

I am new on IOS development and did not have the required reputation to add comment so that I am posting answer.

I did a little work with pod file and i think the pods for the test target is not added in pod file so that the compiler showing the error.

do some thing like this in the pod file for the test target

target 'TestTarget' do
    pods
end

add your test target name in place of 'TestTarget'

Hope it works.

Upvotes: 3

Related Questions