用jenkins自动打包iOS,单个项目打包成功了,但是我公司项目包含两个子项目,相互依赖,打包的时候编译错误了-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

用jenkins自动打包iOS,单个项目打包成功了,但是我公司项目包含两个子项目,相互依赖,打包的时候编译错误了

杨冬芳 2016-06-23 17:51:34 3735

我想用jenkins打包我们iOS项目,我自己写的测试项目已经打包成功了,但是我公司的项目包含了两个子项目,子项目A 又 引用了子项目B 中的东西,在jenkins打包的时候报错说找不到子项目A 中 子项目B的东西。

In file included from /Users/Shared/Jenkins/Home/jobs/youkuhdall/workspace/frameworks/download/DownloadManager/DownloadEngine.m:9:
In file included from /Users/Shared/Jenkins/Home/jobs/youkuhdall/workspace/frameworks/download/DownloadManager/DownloadEngine.h:11:
/Users/Shared/Jenkins/Home/jobs/youkuhdall/workspace/frameworks/download/DownloadManager/DownloadManagerConfig.h:8:9: fatal error: 'Youku/Youku.h' file not found
#import "Youku/Youku.h"
        ^
1 error generated.
In file included from /Users/Shared/Jenkins/Home/jobs/youkuhdall/workspace/frameworks/download/DownloadManager/DownloadManage.m:9:
In file included from /Users/Shared/Jenkins/Home/jobs/youkuhdall/workspace/frameworks/download/DownloadManager/DownloadManage.h:9:
In file included from /Users/Shared/Jenkins/Home/jobs/youkuhdall/workspace/frameworks/download/DownloadManager/DownloadEngine.h:11:
/Users/Shared/Jenkins/Home/jobs/youkuhdall/workspace/frameworks/download/DownloadManager/DownloadManagerConfig.h:8:9: fatal error: 'Youku/Youku.h' file not found
#import "Youku/Youku.h"
/Users/Shared/Jenkins/Home/jobs/youkuhdall/workspace/frameworks/download/DownloadManager/BackgroundManager.m -o /Users/Shared/Jenkins/Home/jobs/youkuhdall/workspace/frameworks/download/build/DownloadManager.build/Debug-iphoneos/DownloadManager.build/Objects-normal/armv7/BackgroundManager.o
/Users/Shared/Jenkins/Home/jobs/youkuhdall/workspace/frameworks/download/DownloadManager/BackgroundManager.m:10:9: fatal error: 'Youku/MPAudioSession.h' file not found
#import <Youku/MPAudioSession.h>
** BUILD FAILED **


The following build commands failed:
    CompileC build/DownloadManager.build/Debug-iphoneos/DownloadManager.build/Objects-normal/armv7/DownloadEngine.o DownloadManager/DownloadEngine.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Build step 'Xcode' marked build as failure
Finished: FAILURE

就是子项目A中引用了子项目B中的 #import "Youku/Youku.h"
大神出来指指路呀

jenkins 持续交付 iOS开发
分享到
取消 提交回答
全部回答(0)
开发与运维
使用钉钉扫一扫加入圈子
+ 订阅

集结各类场景实战经验,助你开发运维畅行无忧

推荐文章
相似问题