How to fix .pch file missing on build?

后端 未结 10 1062
日久生厌
日久生厌 2020-11-29 15:18

When I build my c++ solution in Visual Studio it complains that the xxxxx.pch file is missing. Is there a setting I am missing to get the pre-compiled headers back?

10条回答
  •  南笙
    南笙 (楼主)
    2020-11-29 16:04

    In case this is happening to you on a server build (AppCenter) and yo uaer using CocoaPods ensure that your Podfile is checked in.

    AppCenter only runs the "pod install" command if it finds a Pofile and it DOES NOT find the PODS folder on the files.

    I had the folder checked-in, but because git automatically ignores .pch files (check you .gitignore to veryfy this), my .pch weren'nt being checked in.

    I sorted my issue by forcing the .pch files to check it, but Deleting the PODS folder should work too, since Appcenter will run the pod install command in that case.

    Hoppefully this helps somebody.

提交回复
热议问题