首页 文章

xcode错误:未找到未找到预编译的头文件

提问于
浏览
2

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

/ Users / ImoEntwicklung / Documents / Customer Programs / arzneimittel / arzneimittel /../../ azure-notificationhubs / iOs / WindowsAzureMessaging / WindowsAzureMessaging / SBNotificationHub.h:6:9:错误:找不到'SBTokenProvider.h'文件#导入“SBTokenProvider.h”

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

错误:未能发出预编译 Headers '/Users/ImoEntwicklung/Library/Developer/Xcode/DerivedData/Arzneimittel-fjgbyklcwfwvyhbdlidichafvuho/Build/Intermediates.noindex/PrecompiledHeaders/BridgingHeader-swift_1FFBBGOR0UHNO-clang_15BN3EC1NL1KU.pch'用于桥接 Headers '/ 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

有人可以帮我从这里出去吗?

1 回答

  • 0

    有类似的问题结束这个解决方案:

    • 选择方案,从出现的菜单中选择 Manage Schemes...

    • 从弹出的方案列表中找到 [Your Project Name] 方案,选择它并按列表左下角的 - 按钮删除

    • 按右上角的 Autocreate Schemes Now 按钮

相关问题