【问题标题】:xcode error: failed to emit precompiled header file not foundxcode错误:未能发出未找到的预编译头文件
【发布时间】:2018-07-16 09:50:40
【问题描述】:

花了三天时间寻找我的问题的解决方案。我决定请你帮忙。我们公司有这个 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: 错误: 'SBTokenProvider.h' 文件不是找到#import "SBTokenProvider.h"

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

错误:未能发出预编译头 '/Users/ImoEntwicklung/Library/Developer/Xcode/DerivedData/Arzneimittel-fjgbyklcwfwvyhbd​​lidichafvuho/Build/Intermediates.noindex/PrecompiledHeaders/BridgingHeader-swift_1FFBBGOR0UHNO-clang_15BN3EC1NL1KU.pch' 用于桥接头 '/User /ImoEntwicklung/Documents/Customer Programs/arzneimittel/arzneimittel/BridgingHeader.h'

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

完整的错误消息如下所示:

最后是报告错误的文件:

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

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

谁能帮帮我?

【问题讨论】:

  • 你解决了这个问题吗,我用不同的 pod 库也有同样的问题

标签: ios objective-c swift xcode xcode9


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 2018-09-17
    • 2018-02-27
    • 1970-01-01
    • 1970-01-01
    • 2020-01-12
    • 1970-01-01
    • 1970-01-01
    • 2015-01-05
    • 1970-01-01
    相关资源
    最近更新 更多