无法用XCode / Obj-C编译Cocoapods - “Pods-prefix.pch.dia:没有这样的文件或目录” [英] Cannot compile Cocoapods with XCode/Obj-C – "Pods-prefix.pch.dia: No such file or directory"

查看:166
本文介绍了无法用XCode / Obj-C编译Cocoapods - “Pods-prefix.pch.dia:没有这样的文件或目录”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用XCode 4.5.1和iOS 6.0基本SDK。



以下是我收到的错误:

i686-apple-darwin11- llvm-gcc-4.2:/Users/fahim/Library/Developer/Xcode/DerivedData/Currenthiphop-emodxxwwaiojlcboaxuodksuwuww/Build/Intermediates/PrecompiledHeaders/Pods-prefix-evibdktwbatdnbabmrlnderfsxxi/Pods-prefix.pch.dia:没有这样的文件或目录



Pods-prefix-xxx目录中只有一个文件:
Pods-prefix.pch。 pth.hash-criteria



这是我的Podfile:
platform:ios

  pod'LibComponentLogging-Core'
pod'LibComponentLogging-LogFile'
pod'LibComponentLogging -qlog'
pod'LibComponentLogging-pods'

pod'Facebook-iOS-SDK'
pod'RestKit'

任何帮助表示赞赏。谢谢!

解决方案

我实际上发现这个解决方案就在这里,它详细介绍了使用常规方法(Finder或Dock)打开Xcode,而不是使用打开< Workspace> .xcworkspace 命令。我总是在码头上使用Xcode,而另一位开发人员(无法构建项目并且出现错误)使用的是来自该码头的 open 命令命令行。一旦他从Dock中打开Xcode,并手动浏览以打开项目,他就可以成功地构建它。


I am using XCode 4.5.1 and iOS 6.0 base SDK.

Here is the error I am receiving:

i686-apple-darwin11-llvm-gcc-4.2: /Users/fahim/Library/Developer/Xcode/DerivedData/Currenthiphop-emodxxwwaiojlcboaxuodksuwuww/Build/Intermediates/PrecompiledHeaders/Pods-prefix-evibdktwbatdnbabmrlnderfsxxi/Pods-prefix.pch.dia: No such file or directory

There is only 1 file in the Pods-prefix-xxx directory: Pods-prefix.pch.pth.hash-criteria

Here is my Podfile: platform :ios

pod 'LibComponentLogging-Core'
pod 'LibComponentLogging-LogFile'
pod 'LibComponentLogging-qlog' 
pod 'LibComponentLogging-pods'

pod 'Facebook-iOS-SDK'
pod 'RestKit'

Any help is appreciated. Thank you!

解决方案

I actually found this solution right here that details opening up Xcode using normal means (Finder or the Dock), as opposed to using the open <Workspace>.xcworkspace command. I've always used Xcode from my dock, whereas the other developer (who couldn't build the project and was getting the error you were) was using the open command from the command line. Once he opened Xcode from the Dock, and manually browsed to open the project that way, he could build it successfully.

这篇关于无法用XCode / Obj-C编译Cocoapods - “Pods-prefix.pch.dia:没有这样的文件或目录”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆