【发布时间】:2019-11-26 16:31:08
【问题描述】:
我正在尝试将 CoreLocation 添加到我的应用中。
我已包含#import
使用构建设置中打包部分下的“框架版本”A。我尝试通过在另一个线程下根据建议输入 ${BUILT_Products_dir}/B.framework/B 在“其他图书馆员标志”(链接部分)下添加框架 B。
我在构建时不断收到以下错误
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_CLLocationManager", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
这个框架还有其他的链接需要在哪里做吗?
【问题讨论】:
-
您希望能够在您的应用中使用
CoreLocation,但又不想使用 Swift 来导入它? -
我的意思是我使用的是objective-c而不是swift。
-
您可以像在 Swift 中一样在 Ob-C 中导入 iOS 框架,例如
CoreLocation。例如:stackoverflow.com/questions/16511350/…
标签: xcode core-location