<> Strange Error

后端 未结 6 1697
执念已碎
执念已碎 2020-12-15 02:43

I have encountered a situation where xcode stops auto-completing and if you try to write a variable that already been defined xcode says << error type>>

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-15 03:40

    <> can result from the Swift compiler not finding the header file.

    Same module:

    Do you have some sort of folder structure that your source code is in? If so, try setting Scan All Source Files for Includes to YES.
    This will make Xcode look through all of those folders when trying to find the Header file.

    Embedded Projects, multiple modules etc:

    1. Check the Search Paths

    Have a look where the file in which your type is defined is stored. In your Build Settings make sure that this location is included in the Search Paths.
    If it is part of the User Header Search Paths, make sure, that Always Search User Paths is turned on.

    2. Check dependencies

    Have a look at superclasses etc of your type. Are they included in the Search Path as well?

提交回复
热议问题