0

I am using AFNetworking and get following warning printed on console while running app on device but no warning on simulator. Any help would be appreciated. Am using Xcode 6.1.1 on Yosemite for iOS 8.

objc[306]: Class AFQueryStringPair is implemented in both /private/var/mobile/Containers/Bundle/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/AppName.app/AppName and /private/var/mobile/Containers/Bundle/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/AppName.app/AppName. One of the two will be used. Which one is undefined.\

neo
  • 169
  • 2
  • 10
  • Probably you have AFNetworking added to your test target. See [Class Foo is implemented in both MyApp and MyAppTestCase. One of the two will be used. Which one is undefined](http://stackoverflow.com/questions/6149673/class-foo-is-implemented-in-both-myapp-and-myapptestcase-one-of-the-two-will-be) – Aaron Brager Feb 19 '15 at 23:18
  • I saw the post but in my case i don't have unit testing. There is only one target. The implemented target /private/var/mobile/Containers/Bundle/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/AppName.app/AppName and /private/var/mobile/Containers/Bundle/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/AppName.app/AppName is same(identical). – neo Feb 20 '15 at 17:53

1 Answers1

0

I also ran into this problem. You are probably linking to AFNetworking twice somehow. Double check that AFNetworking is only linked once in your build hierarchy.

Please see this answer for more detail.

Community
  • 1
  • 1
ChrisJF
  • 6,822
  • 4
  • 36
  • 41