0

In Podfile I

    pod 'AFNetworking', '~> 2.6.0'

pod update and I open project using xcworkspace.

And everything gone my way,but:

when i import AFNetworking ,Xcode prompt 'No such module AFNetworking'

I searched the solution for this question, and did like this: in 'Built setting ->User Header Search Paths ' add ${SRCROOT} and choose recursive.

But it didn't work . Xcode throw the same mesage :'No such module AFNetworking'

Oo_oO
  • 139
  • 1
  • 13

2 Answers2

5

Okay,I just did a mistake operation .

 platform :ios, '8.0'
 use_frameworks!

Two line above is necessary ! After I added them and run pod update, my project's Link Binary With Libraries add a row contain Pods_.framework .Then I import AFNetworking is OK.

check out there :No such module 'RestKit' with cocoapods and swift

Community
  • 1
  • 1
Oo_oO
  • 139
  • 1
  • 13
2

Go to

Project > General > Linked Frameworks and Libraries

When press "Plus" and add your framework from list.

Dmitry Petukhov
  • 586
  • 2
  • 12
  • 26