无法为桥接标头发出预编译的标头 [英] Failed to emit precompiled header for bridging header
问题描述
我从GitHub下载了一个项目,然后播放了以下文件,其中一些是由OBJ-C编写的,我使用了桥头。
I downloaded a project from GitHub, then pod the following files, some of which are written by OBJ-C and I used a bridge header.
pod ‘SnapKit’
pod ‘MJRefresh’
pod ‘Alamofire’
pod ‘Kingfisher’
pod ‘MBProgressHUD’
pod ‘pop’
pod ‘EVReflection’
pod ‘StreamingKit’
pod ‘iCarousel’
pod ‘ReflectionView’
当我使用Xcode 9.0 beta 2运行项目时,遗憾的是错误日志如下:
When I run the project with Xcode 9.0 beta 2, but unfortunately the error log as follows :
错误:未能发出预编译头
'/var/folders/kd/4gh0_kxx3jx4thjb_sssmmcw0000gn/T/EvoRadio-Bridging-Header-97bd5f.pch'
用于桥接头
'/ Users / ringo / Downloads / EvoRadio-master / EvoRadio / Resources / EvoRadio-Bridging-Header.h'
error: failed to emit precompiled header '/var/folders/kd/4gh0_kxx3jx4thjb_sssmmcw0000gn/T/EvoRadio-Bridging-Header-97bd5f.pch' for bridging header '/Users/ringo/Downloads/EvoRadio-master/EvoRadio/Resources/EvoRadio-Bridging-Header.h'
我用Google搜索了,但没有这样的问题。错误意味着它需要一个PCH文件?
这是我的 .pch
标头配置:
无法解决。
I have googled, but no such issue.The error means it needs a PCH file?
This is my .pch
header configuration:
It can't solve it.
如何制作?
推荐答案
我也准确无误在为加密核心数据添加可可豆荚之后,同样的问题(Xcode9 beta 6)。
这是我的 PodFile
:
I also got exact same issue (Xcode9 beta 6) after I added cocoa pods for Encrypted Core Data.
This is my PodFile
:
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
pod 'EncryptedCoreData', :git => 'https://github.com/project-imas/encrypted-core-data.git'
target 'Root' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Root
target 'RootTests' do
inherit! :search_paths
# Pods for testing
end
target 'RootUITests' do
inherit! :search_paths
# Pods for testing
end
end
解决方案:
1我将 $(继承)非递归
添加到搜索路径 - >标题搜索路径
2然后将 $ {PODS_ROOT}递归
添加到搜索路径 - >用户标题搜索路径
我的项目目标构建设置中的上述内容。
Solution:
1 I added $(inherited) non-recursive
to Search Path -> Header Search Paths
2 Then added ${PODS_ROOT} recursive
to Search Path -> User Header Search Paths
Both the above in my projects' target build settings.
请查看这些SO答案:
1继承标题搜索路径
2继承用户搜索路径
Please have a look at these SO answers:
1 Inherit Header Search Paths
2 Inherit User Search Paths
这篇关于无法为桥接标头发出预编译的标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!