PrefixHeader.pch file can't find headers

前端 未结 4 719
粉色の甜心
粉色の甜心 2021-02-08 21:53

I have a small prefix header file

#ifndef UP_FOR_IT_PrefixHeader_pch
#define UP_FOR_IT_PrefixHeader_pch

#ifdef __OBJC__
    #import 
    #         


        
4条回答
  •  一整个雨季
    2021-02-08 22:14

    Goto Build Settings > Apple LLVM 6.0 - Language > Prefix Header

    Add here: $(SRCROOT)/PrefixHeader.pch

    enter image description here

    If $(SRCROOT) not working for you, set the value of 'Prefix Header' to your PCH file name, with the project name - i.e. for project named 'Test-Project' and PCH file named 'Test-Project-Prefix.pch' and add the complete string 'Test-Project/Test-Project-Prefix.pch'

    enter image description here

提交回复
热议问题