How to set `-ferror-limit` when using Fastlane
I have an iOS project that uses multiple CocoaPods that generate a lot of warnings on compilation.
In my subfile, I have inhibit_all_warnings!
one that prevents warnings from showing up when building Xcode.
When I use Fastlane it throws an error fatal error: too many errors emitted, stopping now [-ferror-limit=]
.
This answer tells me that adding an argument -ferror-limit=0
causes it to ignore the warnings and continue compiling.
I tried adding xcargs: '-ferror-limit=0'
ipa to the action call in Fastfile, but it didn't work.
How can I get Fastlane ipa action to ignore warnings and keep compiling?
source to share