dekatotoro / SlideMenuControllerSwift

iOS Slide Menu View based on Google+, iQON, Feedly, Ameba iOS app. It is written in pure swift.
MIT License
3.4k stars 754 forks source link

Getting errors in SlideMenuControllerSwift files in latest Xcode 10. #419

Open YashJadhav opened 5 years ago

YashJadhav commented 5 years ago

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.

PrashantKT commented 5 years ago

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

AndyDunn commented 5 years ago

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?

PrashantKT commented 5 years ago

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

YashJadhav commented 5 years ago

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.

Oowomn commented 5 years ago

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