Jenkins 打包错误信息
CraftsmanHomeVC/DJCraftsmanStoryController.m:19:9: ‘DJUserCraftsmanStoreViewModel.h’ file not found
normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Could not read serialized diagnostics file: Cannot Load File: Failed to open diagnostics file
项目是模块化的
第一层文件目录, BlackList, collect等 是由DJUser.podspec 这个文件生成的虚拟文件 所以当你选中 collect文件 创建文件夹的时候 文件默认是创建在最外层的
而文件的读取是通过下面的方式读取的, 所以在本地 Xcode 编译没有问题, 但是用 Jenkins 打包 就会找不到文件
# 收藏
s.subspec 'Collect' do |ss|
ss.source_files = 'Collect/**/*.{h,m}'
ss.dependency 'DJUser/Core'
ss.dependency 'DJSheQu'
end