Module file was created by an older version of the compiler; rebuild 'XXXXX' and try again

同一个项目切换不同的Xcode,重新编译有可能会报这个错误。主要问题是Xcode缓存导致的。删掉Xcode里面的缓存数据就好了。

主要目的是删除:DerivedData

步骤:可以在Xcode中打开,Xcode->Preferences->Locations->DerivedData,删除即可 

如图:


删掉真个目录即可;


你可能感兴趣的:(Module file was created by an older version of the compiler; rebuild 'XXXXX' and try again)