OGeek|极客世界-中国程序员成长平台

标题: ios - xcode 错误 : failed to emit precompiled header file not found [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 19:43
标题: ios - xcode 错误 : failed to emit precompiled header file not found

花了三天时间寻找我的问题的解决方案。我决定请你帮忙。我们公司有这个 Xcode Ios-App。它是由我的同事开发的,但他几个月前离开了我们。我必须承认我对 XCode 环境比较陌生。老板要求更改应用程序中的一些小东西,所以我得到了 Mac,将 Xcode 更新到 9.2 并从 git 检索代码。 Pod 有一些错误,所以我更新了它们,然后修复了更多问题。目前我遇到了以下错误。

/Users/ImoEntwicklung/Documents/Customer Programs/arzneimittel/arzneimittel/../../azure-notificationhubs/iOs/WindowsAzureMessaging/WindowsAzureMessaging/SBNotificationHub.h:6:9: error: 'SBTokenProvider.h' file not found #import "SBTokenProvider.h"

然后(我认为)后续错误:

error: failed to emit precompiled header '/Users/ImoEntwicklung/Library/Developer/Xcode/DerivedData/Arzneimittel-fjgbyklcwfwvyhbdlidichafvuho/Build/Intermediates.noindex/PrecompiledHeaders/BridgingHeader-swift_1FFBBGOR0UHNO-clang_15BN3EC1NL1KU.pch' for bridging header '/Users/ImoEntwicklung/Documents/Customer Programs/arzneimittel/arzneimittel/BridgingHeader.h'

找不到的文件位于“Helpers”子目录中,但我认为这不是问题。

enter image description here

完整的错误消息如下所示: enter image description here

最后是报告错误的文件: enter image description here

我做了一些研究并找到了这些帖子:

xcode error: failed to emit precompiled header - not solved

Header file not found in Bridging Header - solved, but the solution didn't worked for me

'failed to emit precompiled header' while adding new pod into existing Project - not solved

Failed to emit precompiled header for bridging header - not sure if this is the same issue, since author posted only follow-up error

Xcode 9 - failed to emit precompiled header - not sure if this is the same issue, since author posted only follow-up error

谁能帮帮我?



Best Answer-推荐答案


有类似的问题 最终得到了这个解决方案:

  1. 选择方案,从出现的菜单中选择Manage Schemes...
  2. 从弹出的方案列表中找到[Your Project Name]方案,选中后按列表左下角的-按钮删除
  3. 点击右上角的Autocreate Schemes Now按钮

关于ios - xcode 错误 : failed to emit precompiled header file not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48641222/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4