Xcode Apple Mach-O Linker (id) Warning
I have this app with 0 errors and warnings when I run it on my device. But when I try to archive it for iTunes Connect I get all these weird ones Apple Mach-O Linker (id) Warnings
.
There are two types of warnings:
-
Linker asked to preserve internal global: '__block_descriptor_tmp'
-
Linker asked to preserve internal global: '__block_literal_global'
And the craziest part is that I get 402 of these warnings!
I have a suspicion that these errors may occur or are related to the Derived Data folder of my application. I tried removing it, but the errors just came back.
Do you think it's safe to just ignore the warnings and upload them to the App Store?
In case anyone is facing the same issue, I just wanted to write udpate: I didn't find a way to get rid of the warnings, but the said app update went through the review process and app store without messages. This is a known issue with Firebase upstream.
It has something to do with Firebase and bitcode. They go away if you set the parameter Enable bitcode
to false.