fatal error: file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Dev

时间:2022-09-19 22:48:26

类似这样的错误:

fatal error: file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITableView.h' has been modified since the precompiled header '/Users/weixuewu/Library/Developer/Xcode/DerivedData/JiaoWuXiTong-grltjakjujuowvcvrkqlqrwpbqfr/Build/Intermediates/PrecompiledHeaders/Pods-AFNetworking-prefix-esbdmbdlgmazudenvxmluxydclkd/Pods-AFNetworking-prefix.pch.pch' was built

note: '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITableView.h' required by '/Users/weixuewu/Library/Developer/Xcode/DerivedData/ModuleCache/3HIREQHFIR4KN/UIKit-2M4VYLEDI34V0.pcm'

note: '/Users/weixuewu/Library/Developer/Xcode/DerivedData/ModuleCache/3HIREQHFIR4KN/UIKit-2M4VYLEDI34V0.pcm' required by '/Users/weixuewu/Library/Developer/Xcode/DerivedData/JiaoWuXiTong-grltjakjujuowvcvrkqlqrwpbqfr/Build/Intermediates/PrecompiledHeaders/Pods-AFNetworking-prefix-esbdmbdlgmazudenvxmluxydclkd/Pods-AFNetworking-prefix.pch.pch'

note: please rebuild precompiled header '/Users/weixuewu/Library/Developer/Xcode/DerivedData/JiaoWuXiTong-grltjakjujuowvcvrkqlqrwpbqfr/Build/Intermediates/PrecompiledHeaders/Pods-AFNetworking-prefix-esbdmbdlgmazudenvxmluxydclkd/Pods-AFNetworking-prefix.pch.pch'

1 error generated.

解决方法:

找出note标记的pcm文件地址:/Users/weixuewu/Library/Developer/Xcode/DerivedData/ModuleCache/3HIREQHFIR4KN/UIKit-2M4VYLEDI34V0.pcm

然后删除,重新编译即可