SlideMenuControllerSwift icon indicating copy to clipboard operation
SlideMenuControllerSwift copied to clipboard

Getting errors in SlideMenuControllerSwift files in latest Xcode 10.

Open YashJadhav opened this issue 6 years ago • 5 comments

Hello,

I installed SlideMenuControllerSwift using Cocoapods, and facing errors in SlideMenuControllerSwift files. Facing same problem by doing manual installation as well.

I think the errors are due to latest swift 4.2, the code is not compatible to latest Xcode 10 & Swift 4.2.

Please Team SlideMenuControllerSwift take this issue into consideration and try to solve it as fast as you can since I want to use PageMenu in my current project which I am currently working on.

YashJadhav avatar Jan 31 '19 10:01 YashJadhav

To fix this issue

Goto build Phases -> Make sure you have correct target selected (see left side list) -> Remove info.pllist file from Copy bundle and resources folder -> Clean project and Compile

PrashantKT avatar Feb 05 '19 11:02 PrashantKT

Having the same problem here. What's the best solution to resolve this for use in the latest Xcode? The instructions from @PrashantKT don't seem to make sense to me. Which Target? And why remove the info.plist?

AndyDunn avatar Feb 11 '19 16:02 AndyDunn

@AndyDunn Just go to build phases and remove info.plist from there. and compile your code.

PrashantKT avatar Feb 12 '19 04:02 PrashantKT

Hi @PrashantKT , I just created a demo project to checkout your solution and followed the steps you mentioned above. Project Target -> Build Phases -> Copy Bundle Resources -> Remove info.plist file from here. But there is no info.plist file in my Copy Bundle Resources section, only main.storyboard, launchscreen.storyboard and xcassets folder. I have used Cocoapods to install SlideMenuController library.

YashJadhav avatar Feb 12 '19 05:02 YashJadhav

try Pods->Targets -> SlideMenuControllerSwift -> Swift Language Version -> change 4.2 to 4.0. Im not sure is this a proper way.

Oowomn avatar Feb 19 '19 08:02 Oowomn