2016-07-25 33 views
1

我一直运行我的项目在circleCI说没有找到领域框架时,我不断收到链接器错误。我的开发环境框架没有问题。我检查了框架搜索路径以包括$(继承)和carthage构建文件夹($(PROJECT_DIR)/ Carthage/Build/iOS)。下面是我的cartfile都和circle.yml(circleCI的配置文件)构建失败的领域和circleCI(与迦太基)

cartfile的内容

github "Alamofire/Alamofire" ~> 3.4 
github "Alamofire/AlamofireImage" ~> 2.0 
github "SwiftyJSON/SwiftyJSON" ~> 2.3.0 
github "SnapKit/SnapKit" >= 0.15.0 
github "realm/realm-cocoa" 

circle.yml

machine: 
    xcode: 
    version: "7.3" 

dependencies: 
    pre: 
    - curl -O https://gist.githubusercontent.com/cabeca/cbaacbeb6a1cc4683aa5/raw/8e17f39f5a7413fd0559c9e6808e01b6fb514422/simulator_populator 
    - ruby ./simulator_populator 
    - carthage update --platform iOS 

carthage update前的2线由circleCI支持高新技术建议以避免与tvOS框架的问题。我也尝试切换carthage updatecarthage bootstrap,结果相同。下面是错误消息我得到 enter image description here

从它看起来像当它试图链接测试文件出现错误的截图,但测试和uitest文件是由Xcode中创建默认情况下,我没有它添加什么但

回答

0

,但测试和uitest文件是由Xcode中创建默认情况下,我还没有上添加任何东西

我觉得这里这就是问题所在。您需要确保两个目标都可以通过构建设置FRAMEWORK_SEARCH_PATHS找到框架。这应该包括相关框架的父目录,例如$(SRCROOT)/Carthage/Build/iOS。通常可以通过将框架拖放到“带库的链接二进制文件”构建阶段来实现该目标。

0

你需要

carthage bootstrap --platform iOS 

carthage update --platform iOS