How can we disable printing Xcode warnings in GitLab? Log limit is exceeding and my job is failing every time as the warning for "using 'class' keyword for protocol inheritance is deprecated; use 'AnyObject' instead" is getting logged many times.
Asked
Active
Viewed 206 times
0
-
You can suppress specific warnings, [here's a guide](https://davedelong.com/blog/2018/12/15/silencing-specific-build-warnings/). – EmilioPelaez Nov 30 '21 at 12:16
-
Why would you ever want to disable Xcode warnings? – user1432193 Nov 30 '21 at 13:23
-
Why don't you fix the warnings? You can fix them in a few minutes using search & replace. – Sulthan Nov 30 '21 at 13:39
-
Does this answer your question? [In Xcode, how to suppress all warnings in specific source files?](https://stackoverflow.com/questions/6921884/in-xcode-how-to-suppress-all-warnings-in-specific-source-files) – sytech Dec 01 '21 at 01:43
1 Answers
0
Disabling warnings won't fix your problem.
Yo can change the build log size of your jobs in Gitlab CI/CD so you can see the entire log and be able to view the real error.
To do that edit your config.toml file and add a new limit in kilobytes:
[[runners]]
output_limit = 10000
For this to take effect, you need to restart the gitlab runner:
sudo gitlab-runner restart
Also check the documentation

mlazarov
- 404
- 3
- 7
-
While this may solve the fatal error OP is encountering in their GitLab job, this doesn't answer the principal question (which future viewers of this question are most likely to care about): "How can we disable printing Xcode warnings in GitLab?" – sytech Dec 01 '21 at 01:43