Jenkins 上本来可以编译成功的Job,在提交代码后,突然编译失败,提示:
The following build commands failed:
CompileC XXXXXxxxxxxxxx.m normal armv7 Objective-C xxxxxxxxxxx
而本地Xcode编译没有问题。
参考网上同样类型错误示例中 int转string的使用
NSString *utm = [[NSString alloc] initWithFormat:@"%ld",indexPath.row];
改为
NSString *utm = [NSString stringWithFormat:@"%@", (@(indexPath.row))]
仔细检查了报错类中的提交的代码,重新修改后,编译成功,
猜测Jenkins xcode 插件编译时对代码的检查 要比Xcode更为严格?!
如果有大神,欢迎指导,具体原因是什么呢?