如何使用Xcode 10而不是swift添加CoreLocation框架?
我正在尝试将CoreLocation添加到我的应用程序中 我把进口包括在内 使用“生成设置”中“打包”部分下的“框架版本”。我试图通过在另一个线程下输入${builded_Products_dir}/B.framework/B per suggestions,在“Other Libriarian Flags”(链接部分)下添加框架B 我在构建时不断遇到以下错误如何使用Xcode 10而不是swift添加CoreLocation框架?,xcode,core-location,Xcode,Core Location,我正在尝试将CoreLocation添加到我的应用程序中 我把进口包括在内 使用“生成设置”中“打包”部分下的“框架版本”。我试图通过在另一个线程下输入${builded_Products_dir}/B.framework/B per suggestions,在“Other Libriarian Flags”(链接部分)下添加框架B 我在构建时不断遇到以下错误 Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_CLLo
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框架包含到项目中。我删除了它,并在应用程序目标链接binbary到库上使用了构建阶段。现在工作正常。你想在你的应用程序中使用
CoreLocation
,但不想使用Swift导入它?我的意思是我使用的是objective-c而不是Swift。你可以在Ob-c中导入iOS框架,比如CoreLocation
,就像在Swift中一样。前任: