无法在Xcode 10.1中发出预编译的标头

时间:2019-04-04 12:48:36

标签: swift4.2

我已将代码从swift3更新为swift4.2,并且收到警告,因此我通过重新安装所有Pod来更新了Podfile,现在出现错误为:

failed to emit precompiled header '/Users/palak.garg/Library/Developer/Xcode/DerivedData/mySocialChemist-gtbbctpiuhpyzngmqbevmscwbcet/Build/Intermediates.noindex/PrecompiledHeaders/mySocialChemist-Bridging-Header-swift_14WYMBJ6PJP8W-clang_38EYTCGHX7TO1.pch' for bridging header '/Users/palak.garg/Desktop/Code/April current project/Send-a-Script---IOS 2 2 2/mySocialChemist/Classes/mySocialChemist-Bridging-Header.h'

其中mysocialChemist是我的项目名称,mySocialChemist-Bridging-Header.h是桥接头文件。同时显示最近的消息:

/Users/palak.garg/Desktop/Code/April current project/Send-a-Script---IOS 2 2 2/mySocialChemist/Main/mySocialChemistAppDelegate.h:16:9: 'Braintree/BraintreeVenmo.h' file not found

Braintree / BraintreeVenmo是我使用的吊舱。

此外,我在更新了pod的终端上收到警告,如以下屏幕截图所示:

enter image description here

我尝试了以下几点,但对我没有帮助:

  1. 我卸载了Pod,然后重新安装,然后清理并构建了项目,但是没有任何效果。

  2. 还检查了Xcode>产品>方案>编辑方案>构建选项,如image所示。

  3. 清理派生数据并构建项目。

  4. 目标>构建设置> Swift编译器-自定义标志>其他swift标志将$(继承)设置为in image

  5. 目标>构建设置>预处理程序宏设置$(继承),如image

  6. 所示

谢谢。

0 个答案:

没有答案