Reference to 'X' is ambiguous

后端 未结 8 1480
伪装坚强ぢ
伪装坚强ぢ 2020-12-05 23:29

After several changes to my project I suddenly get this build error:

Reference to \'kCGImageAlphaPremultipliedLast\' is ambiguous

<
相关标签:
8条回答
  • 2020-12-06 00:29

    use

    #import "anyviewcontroller.h"
    

    instead of any module

    @import anymodule;
    

    I am using LGSideMenuController, when i integrate it first time, it is working well, but i don't know why i got this error after some time.

    so i replaced module @import LGSideMenuController; into header file Like this #import "UIViewController+LGSideMenuController.h"

    and error goes away.

    0 讨论(0)
  • 2020-12-06 00:32

    For anyone still struggling with issue: Non of the of the proposed solutions worked in my case. I'm compiling all my frameworks using Carthage and was getting these errors in my main project whenever I import a header of a framework that's using a framework used also by my main project. What eventually solved it was disabling 'Modules' on the main project.

    0 讨论(0)
提交回复
热议问题