无法修复“无法找到或使用自动链接的库" [英] Cannot fix "Could not find or use auto-linked library "

查看:625
本文介绍了无法修复“无法找到或使用自动链接的库"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Swift和pods(firebase)构建的应用程序.我有18个三角形和100个红色错误,这些是以前没有的.它们仅在我尝试存档我的应​​用程序时出现.

I have an app built with Swift with pods(firebase). I have 18 triangle and 100 red errors which weren't there before. They only appear when I try to archive my app.

我已经尝试了所有这些(添加搜索路径,添加空白swift文件,删除框架路径)

I have tried all of these (Adding search paths, Adding blank swift files, deleting framework paths)

它在带有Objective-C项目的Swift静态库时出现错误

为什么链接器链接带有错误的静态库?iOS

ld: warning: Could not find or use auto-linked library 'swiftFoundation'
ld: warning: Could not find or use auto-linked library 'swiftsimd'
ld: warning: Could not find or use auto-linked library 'swiftGLKit'
ld: warning: Could not find or use auto-linked library 'swiftMetal'
ld: warning: Could not find or use auto-linked library 'swiftSpriteKit'
ld: warning: Could not find or use auto-linked library 'swiftDarwin'
ld: warning: Could not find or use auto-linked library 'swiftUIKit'
ld: warning: Could not find or use auto-linked library 'swiftCoreFoundation'
ld: warning: Could not find or use auto-linked library 'swiftObjectiveC'
ld: warning: Could not find or use auto-linked library 'swiftCore'
ld: warning: Could not find or use auto-linked library 'swiftQuartzCore'
ld: warning: Could not find or use auto-linked library 'swiftModelIO'
ld: warning: Could not find or use auto-linked library 'swiftDispatch'
ld: warning: Could not find or use auto-linked library 'swiftAVFoundation'
ld: warning: Could not find or use auto-linked library 'swiftCoreMedia'
ld: warning: Could not find or use auto-linked library 'swiftCoreGraphics'
ld: warning: Could not find or use auto-linked library 'swiftCoreImage'
ld: warning: Could not find or use auto-linked library 'swiftCoreAudio'

环境:Xcode 11 beta 4/目标:iOS 12及更高版本

Environment: Xcode 11 beta 4 / Target: iOS 12 and up

推荐答案

Apple在已知问题部分:

包含带有启用位码的Swift代码的目标使用进行构建时,将构建设置设为是"将无法正确链接存档操作.

Targets that contain Swift code with the Enable Bitcode build setting set to Yes fail to link correctly when built with the Archive action.

给我们一个解决方法:

使用以下项添加自定义构建设置名称LD_VERIFY_BITCODE,并将其设置为NO.给自己做个笔记解决此问题后删除此自定义生成设置.

Add a custom build setting with the name LD_VERIFY_BITCODE, and set it to NO. Make a note to yourself to delete this custom build setting once this issue is resolved.

这篇关于无法修复“无法找到或使用自动链接的库"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆