简体   繁体   English

Xcode Apple Mach-O Linker(id)警告

[英]Xcode Apple Mach-O Linker (id) Warning

I have this app, with 0 errors and warnings when I run it on my device. 我有这个应用程序,当我在我的设备上运行时有0个错误和警告。 But when I try to archive it for iTunes Connect I get all these weird Apple Mach-O Linker (id) Warnings . 但是当我尝试将其存档为iTunes Connect时,我得到了所有这些奇怪的Apple Mach-O Linker (id) Warnings

There are two types of these warnings: 这些警告有两种类型:

  1. Linker asked to preserve internal global: '__block_descriptor_tmp'
  2. Linker asked to preserve internal global: '__block_literal_global'

And the craziest part is that I get 402 of these warnings! 而最疯狂的部分是我得到了402个警告! 在此输入图像描述

I have a suspicion these errors may come from, or has something to do with the Derived Data folder of my application. 我怀疑这些错误可能来自,或与我的应用程序的Derived Data文件夹有关。 I have tried deleting it, but the errors just comes back. 我试过删除它,但错误只是回来了。

Do you think it will be safe to just ignore the warnings and upload it to the App Store? 您是否认为忽略警告并将其上传到App Store是安全的?

It has something to do with Firebase and bitcode. 它与Firebase和bitcode有关。 They go away if you set Enable bitcode to false. 如果将Enable bitcode设置为false,它们就会消失。

启用bitcode

In case someone runs into the same problem, I just wanted to write an udpate: I haven't found a way to get rid of the warnings, but the app update in question went through the review process and is live on the app store with no reported issues. 如果有人遇到同样的问题,我只想写一个udpate:我还没有找到摆脱警告的方法,但是有问题的应用更新经历了审核流程并且在应用商店中正常运行没有报道的问题。 This is a known issue that's from upstream Firebase. 这是来自上游Firebase的已知问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM