纯swift项目中架构armv7的未定义符号

时间:2016-11-30 12:04:49

标签: ios swift xcode swift3

我将项目划分为几个框架。在模拟器和iPhone上进行调试时,它编译得很好。但是,当我尝试存档或配置文件时,它给了我:

Undefined symbols for architecture armv7:
  "Observation.Observation.__allocating_init (observer : Swift.AnyObject, listener : (Any) -> ()) -> Observation.Observation", referenced from:
  WebService.WebServiceRequestOperation.init (dependencies : [__ObjC.Operation]?, progressObservation : (observer : Swift.AnyObject, listener : (Any) -> ())?, finishBlock : (WebService.WebServiceRequestOperation) -> ()?) -> WebService.WebServiceRequestOperation in WebServiceRequestOperation.o
  WebService.WebServiceBackgroundDownloadOperation.init (urlString : Swift.String, dependencies : [__ObjC.Operation]?, progressObservation : (observer : Swift.AnyObject, listener : (Any) -> ())?, finishBlock : (WebService.WebServiceBackgroundDownloadOperation) -> ()?) -> WebService.WebServiceBackgroundDownloadOperation in WebServiceBackgroundDownloadOperation.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我尝试了在互联网上发现的有关类似错误的所有内容,但没有任何效果。我认为问题是当Xcode使用Release而不是Debug模式时。我尝试将Build Settings中的一些选项更改为Release和Debug中的相同,但没有任何效果。这个项目只包含swift源文件 - 没有编译框架。

0 个答案:

没有答案