架构x86_64的未定义符号:" _OBJC_CLASS _ $ _ AFHTTPRequestSerializer"

时间:2015-06-15 20:02:24

标签: swift skmaps

我通过CocoaPods与use_frameworks!集成了SDKTools,它给我带来了这些错误:

Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_AFHTTPRequestSerializer", referenced from: objc-class-ref in SKTDownloadObjectHelper.o "_OBJC_CLASS_$_AFNetworkReachabilityManager", referenced from: objc-class-ref in SKTDownloadManager.o "_OBJC_CLASS_$_SKAdvisorSettings", referenced from: objc-class-ref in SKTNavigationManager+Factories.o "_OBJC_CLASS_$_SKAnimationSettings", referenced from: objc-class-ref in SKTNavigationManager+UI.o "_OBJC_CLASS_$_SKAnnotation", referenced from: objc-class-ref in SKTNavigationManager+UI.o "_OBJC_CLASS_$_SKMapView", referenced from: objc-class-ref in SKTNavigationManager+Styles.o "_OBJC_CLASS_$_SKMapViewStyle", referenced from: objc-class-ref in SKTNavigationConfiguration.o "_OBJC_CLASS_$_SKMapsService", referenced from: objc-class-ref in SKTDownloadManager+Additions.o objc-class-ref in SKTDownloadObjectHelper.o "_OBJC_CLASS_$_SKNavigationSettings", referenced from: objc-class-ref in SKTNavigationManager.o "_OBJC_CLASS_$_SKPositionerService", referenced from: objc-class-ref in SKTNavigationManager+BackgroundMode.o objc-class-ref in SKTNavigationManager+Factories.o objc-class-ref in SKTNavigationManager+NavigationState.o objc-class-ref in SKTNavigationManager+UI.o objc-class-ref in SKTNavigationManager.o objc-class-ref in SKTNavigationUtils.o "_OBJC_CLASS_$_SKReverseGeocoderService", referenced from: objc-class-ref in SKTNavigationUtils.o "_OBJC_CLASS_$_SKRouteSettings", referenced from: objc-class-ref in SKTNavigationManager+Factories.o "_OBJC_CLASS_$_SKRoutingService", referenced from: objc-class-ref in SKTNavigationManager+BackgroundMode.o objc-class-ref in SKTNavigationManager+NavigationState.o objc-class-ref in SKTNavigationManager+Settings.o objc-class-ref in SKTNavigationManager+Styles.o objc-class-ref in SKTNavigationManager+UI.o objc-class-ref in SKTNavigationManager.o "_OBJC_CLASS_$_SKTrailSettings", referenced from: objc-class-ref in SKTNavigationManager.o "_OBJC_CLASS_$_SKVisualAdviceConfiguration", referenced from: objc-class-ref in SKTNavigationManager+Factories.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

没有use_frameworks!标志,一切正常。但我必须使用此标志才能使用其他pod。 这是一个快速的项目顺便说一句。

任何帮助都受到高度赞赏,因为我现在已经尝试解决这个问题了。

1 个答案:

答案 0 :(得分:0)

您需要添加AFNetworking

我是用这样的cocoapods做的:

cd /project/path
touch myPodfile

现在打开你的Podfile并添加:

pod "AFNetworking", "~> 2.0"

然后:

pod setup

pod install