iOS 协同开发出fatal error: file ‘XX-Prefix.pch’ has been modified since the precompiled header was built

在协同开发的时候,刚刚从svn下载到本地的代码,出现“fatal error: file ‘XX-Prefix.pch‘ has been modified since the precompiled header was built”的问题,这个其实不是什么问题,解决方案如下:

1、找到  XX-Prefix.pch 文件  注释掉下面的代码:

#ifdef __OBJC__
    #import <UIKit/UIKit.h>
    #import <CoreData/CoreData.h>
    #import <Foundation/Foundation.h>
#endif

然后,重新编译项目

2、打开上面步骤中的注释

然后再次编译运行,发现竟然没有上面的错误了,很神奇吧。

问题解决。

时间: 2024-10-13 23:22:39

iOS 协同开发出fatal error: file ‘XX-Prefix.pch’ has been modified since the precompiled header was built的相关文章

解决 xx.h has been modified since the precompiled header 系统头文件被修改

fatal error: file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h' has been modified since the precompiled header '/Users/

fatal error C1859: “Release\IWBServer.pch”意外的预编译头错误,只需重新运行编译器就可能修复此问题

解决方案 1.    创建预编译头(/Yc)   -- >     stdafx.cpp    使用预编译头(/Yu) 2.    complie 3.    使用预编译头(/Yu)    -->   创建预编译头(/Yc) 4.   生成-仅用于项目-仅清除"project" 5.  生成-清理解决方案 6.  生成-清理"project" 7. 项目右键生成

iOS遇到的问题:OC与swift混编造成的 Failed to emit precompiled header

当我接手一个OC与swift混编的项目的时候,其实我是拒绝的.哎,没有办法啊,只能干啦. pod完以后有很多问题,最难的问题就是这个了, 其实是由于他Podfile文件里面有use_frameworks!这样一句话,首先,我们先说一下他的作用. A.用cocoapods 导入swift 框架 到 swift项目和OC项目都必须要 use_frameworks!B.使用 dynamic frameworks,必须要在Podfile文件中添加 use_frameworks! use_framewor

iOS 使用XCode6打开项目以后再用XCode5出现的问题fatal error: malformed or corrupted AST file: &#39;Unable to load module

使用不同版本的XCode出现的问题: fatal error: malformed or corrupted AST file: 'Unable to load module "/Users/xxx/Library/Developer/Xcode/DerivedData/ModuleCache/XYZYIE6ZV0OP/Darwin.pcm": file not found' note: after modifying system headers, please delete the

编译依赖于React Native0.46.4的React Native IOS工程时,出现错误“fatal error: &#39;React/RCTEventEmitter.h&#39; file not found”

我的环境: WebStorm 2017.2Build #WS-172.3317.70, built on July 14, 2017 JRE: 1.8.0_152-release-915-b5 x86_64JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Mac OS X 10.12.6 Xcode8.3.3(8E3004b) 网上搜索,可以解决我的问题的网址:https://stackoverflow.com/questions/41663002

iOS &quot;fatal error: malformed or corrupted AST file - Xcode&quot;解决方案

运行项目时遇见问题: fatal error: malformed or corrupted AST file: 'Unable to load module "/Users/me/Library/Developer/Xcode/DerivedData/ModuleCache/XYZYIE6ZV0OP/Darwin.pcm": file not found' note: after modifying system headers, please delete the module c

/usr/include/glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h: No such file or directory

cc -DDEBUG -mtune=core2 -O2 \ -onvideo nvideo.c \ -I/usr/include/atk-1.0 \ -I/usr/include/cairo \ -I/usr/include/gdk-pixbuf-2.0 \ -I/usr/include/glib-2.0 \ -I/usr/include/gtk-3.0 \ -I/usr/include/pango-1.0 \ -I/usr/include/libxml2 \ -I/usr/lib/x86_64

fatal error: &#39;CodePush/CodePush.h&#39; file not found

原文参考:https://blog.csdn.net/u013530539/article/details/79107810 $(SRCROOT)/../node_modules/react-native-code-push/ios fatal error: 'CodePush/CodePush.h' file not found 原文地址:https://www.cnblogs.com/lude1994/p/11125724.html

./ViewController.h:9:9: fatal error: &#39;UIKit/UIKit.h&#39; file not found

clang编译的两种方法 1.使用绝对路径: clang -rewrite-objc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk xx/xx/y.m(文件的绝对路径) 通过上述命令即可编译通过 2.修改全局变量 vim ~/.bash_profile 在终端输入i键入 alias rewriteo