0

我正在尝试在我的项目中设置葫芦。

我遵循本教程:http ://angelolloqui.com/blog/25-Acceptance-testing-with-Calabash-and-CocoaPods

但这就像现在新目标在 pod 中找不到其余的类,我收到此错误:

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_AFHTTPRequestOperationManager", referenced from:
      objc-class-ref in INCWorldWeatherOnline.o
  "_OBJC_CLASS_$_AFJSONRequestSerializer", referenced from:
      objc-class-ref in INCWorldWeatherOnline.o
  "_OBJC_CLASS_$_MTLJSONAdapter", referenced from:
      objc-class-ref in INCWorldWeatherOnline.o
  "_OBJC_CLASS_$_MTLModel", referenced from:
      _OBJC_CLASS_$_INCForecastCondition in INCForecastCondition.o
      _OBJC_CLASS_$_INCCurrentCondition in INCCurrentCondition.o
  "_OBJC_CLASS_$_MTLValueTransformer", referenced from:
      objc-class-ref in INCForecastCondition.o
      objc-class-ref in INCCurrentCondition.o
  "_OBJC_METACLASS_$_MTLModel", referenced from:
      _OBJC_METACLASS_$_INCForecastCondition in INCForecastCondition.o
      _OBJC_METACLASS_$_INCCurrentCondition in INCCurrentCondition.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

原来的目标工作没有问题

任何想法?

4

2 回答 2

0

当我将 Build Active Architecture Only 设为“NO”
并使用 product -> archive 将 build 上传到 itunes 商店时出现此错误,我不知道为什么会发生这种情况,但它对我有用

于 2015-10-25T21:21:55.247 回答
-2

在目标的构建设置中,尝试更改Build Active Architecture Only


Debug->Yes
于 2014-11-03T05:59:18.627 回答