file has been modified since the precompiled header was built

后端 未结 13 1976
鱼传尺愫
鱼传尺愫 2020-12-23 09:49

So I accidentally modified a header (CBCentralManager.h) and caused the above error to show when I build. I searched stack overflow for the solution, and found

13条回答
  •  盖世英雄少女心
    2020-12-23 10:26

    Deep clean (Cmd + Opt + Shft + K), clearing folder DerivedData, clearing simulator, restarting Xcode and mac doesn't work for me.

    Problem was fixed only after changing pch-file (adding a whitespace or comment/uncomment some code). File was incorrectly cached on build phase by Xcode. Changing this file fixed problem.

提交回复
热议问题