ios - AFNetworking with cocoapods link error when using Xcode6 -



ios - AFNetworking with cocoapods link error when using Xcode6 -

i got error when migrating project xcode5 6.

undefined symbols architecture i386: "_objc_class_$_afhttprequestoperationmanager", referenced from: objc-class-ref in qcroomlistcontrollerviewcontroller.o objc-class-ref in libqcbase.a(qchttprequestadapter.o) objc-class-ref in libqcbase.a(qchttpapi.o) "_objc_class_$_afhttpresponseserializer", referenced from: objc-class-ref in qcroomlistcontrollerviewcontroller.o "_objc_class_$_afjsonresponseserializer", referenced from: objc-class-ref in libqcbase.a(qchttpapi.o) ld: symbol(s) not found architecture i386

i take cocoapods bundle manager, , project construction below:

both major project , baselib using pods, @ same time project using baselib.a.

i've seek combinations xcode5 ios 7.1 sdk(which working one), xcode6 ios 7.1 sdk , xcode6 ios 8.0 sdk. current conclusion whenever xcode6 involved, links fail, no matter version of ios sdk choosed.

i've been searching fair solution 3 days, cocoapods issues , everything. relevant settings described below, thought or farther info appreciated:)

the xcconfig file correctly set on both project , baselib:

architectures setting:

my podfile content:

#platform :ios, "6.0" source 'https://github.com/cocoapods/specs.git' workspace 'qichengws.xcworkspace' xcodeproj 'qichengnew/qichengnew.xcodeproj' xcodeproj 'qcbase/qcbase.xcodeproj' target :qichengnew pod 'jsonmodel' pod 'sdwebimage', '~>3.6' pod 'autonscoding', '~> 0.1.3' platform :ios, '7.0' pod 'protocolbuffers', '~> 1.9' pod 'cocoaasyncsocket', '~> 7.3' pod 'gbinfinitescrollview', '~> 1.6' pod 'gbinfinitescrollview/pagecontrol' pod 'umenganalytics', '~> 3.1.2' platform :ios, '7' pod 'mwphotobrowser', '1.4.0' xcodeproj 'qichengnew/qichengnew.xcodeproj' end target :qcbase platform :ios, '7.0' pod "afnetworking", "~> 2.0" pod 'svpulltorefresh', :head pod 'toast', '~> 2.3' xcodeproj 'qcbase/qcbase.xcodeproj' end

i hope have found solution now. if not updating afnetworking 2.4 solved me

ios xcode6 linker-error cocoapods afnetworking-2

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -