Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用Xcode 10而不是swift添加CoreLocation框架?_Xcode_Core Location - Fatal编程技术网

如何使用Xcode 10而不是swift添加CoreLocation框架?

如何使用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

我正在尝试将CoreLocation添加到我的应用程序中

我把进口包括在内

使用“生成设置”中“打包”部分下的“框架版本”。我试图通过在另一个线程下输入${builded_Products_dir}/B.framework/B per suggestions,在“Other Libriarian Flags”(链接部分)下添加框架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框架包含到项目中。我删除了它,并在应用程序目标链接binbary到库上使用了构建阶段。现在工作正常。

你想在你的应用程序中使用
CoreLocation
,但不想使用Swift导入它?我的意思是我使用的是objective-c而不是Swift。你可以在Ob-c中导入iOS框架,比如
CoreLocation
,就像在Swift中一样。前任: