'Method' is ambiguous for type lookup in this context, Error in Alamofire

后端 未结 11 1657
灰色年华
灰色年华 2020-12-20 10:52

I am using Alamofire for network handling in swift and run into one weird error. It seems like we can\'t pass Method enum as parameter.
[Error is on Method para

11条回答
  •  半阙折子戏
    2020-12-20 11:14

    Change the enum type name to different &...

    • Use the $(inherited) flag, or
    • Remove the build settings from the target.

    Target - > building settings- >ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES, Value type is Boolean, click on the other, change the value to $(inherited) perform - pod update Done

    then try to run Your project , error will gone ! (I have tried in my project)

    enum 'XYZ'ButtonType {

    }

提交回复
热议问题