我有一个应用程序与斯威夫特与吊舱(消防基地)。我有18个警告和100个错误,这是以前没有的。只有当我试图存档我的应用时,它们才会出现。
我尝试过所有这些(添加搜索路径、添加空白的快速文件、删除框架路径)。
它给出了使用Swift静态库与Objective项目时的错误。
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/ Target: iOS 12及以上
发布于 2019-07-19 12:58:39
苹果在已知问题部分提到了类似的问题:
包含Swift代码并将“启用Bitcode生成”设置设置为“是”的目标在使用Archive操作生成时未能正确链接。
给我们一个解决办法:
添加名为LD_VERIFY_BITCODE的自定义生成设置,并将其设置为否。在此问题解决后,请自己做个笔记,以删除此自定义生成设置。
发布于 2020-06-03 12:23:46
我的ObjectiveC项目包括一个Swift吊舱,然后抛出上述错误。我发现我所要做的就是将一个快速的头文件添加到我的项目的基础上,然后它突然全部构建起来了。
当我进入我的目标项目的构建设置并搜索“迅速”时,我看到的结果非常少,当我知道我应该看到更多的时候--在添加了头文件之后,我突然看到了更多的选项。下面是我所采取的步骤。
我不确定名字是否重要,也不确定文件的位置,但这是对我有用的!
发布于 2020-05-16 13:50:48
我也犯了同样的错误。->解决了我的问题,将库(框架)添加到您在任何目标中使用的Frameworks and Libraries中
例如:

https://stackoverflow.com/questions/57096863
复制相似问题