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

田益华 发布于 2016/02/29 18:23
阅读 2K+
收藏 0

我想用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" 

大神出来指指路呀


加载中
0
亲表酱紫嘛
亲表酱紫嘛
大神,这个问题您现在解决了吗,我也碰到这种问题了,头疼ing
返回顶部
顶部