.h file not found

前端 未结 13 2290
清酒与你
清酒与你 2020-12-07 23:56

I\'m working on an app in xcode 4 and everything was going great, then something odd just started happening. Every time I make a new class (any type of class, ViewController

13条回答
  •  南方客
    南方客 (楼主)
    2020-12-08 00:51

    I encounter the same problem and the following steps fix my issues:

    1. Go to the target of project.
    2. Go the the "Build Phases"
    3. Expand the "Compile Sources"
    4. delete the [filename that cause the error].m
    5. Add the file back.
    6. Scroll down, in Build Phases, to "Headers (n items)" and add the .h file in the "Public/Private" section

提交回复
热议问题