0

one week ago I ran my project with a few pods well on Xcode 7.3.1. But now I have upgraded to Xcode 8. When I open the project, it asked me to convert the codes to Swift 3 automatically. If I do not convert, it exists 2 errors in some pods swift file. When I finished converting, it becomes 83 errors!! What should I do to run the project well in Xcode 8? I just use following pods:

pod "TextFieldEffects"
pod 'BTNavigationDropdownMenu'
pod 'LTMorphingLabel'
pod 'Material', '~> 1.0'
user6702783
  • 223
  • 4
  • 14

1 Answers1

0

Just Do one Thing -

Open Terminal and run this command

pod update

Because currently you are using an old version.

After that if need pod install again

iDeveloper
  • 2,339
  • 2
  • 24
  • 38
  • Under the project direction? Do I also need to update the cocoapods? – user6702783 Sep 23 '16 at 05:17
  • Yes, by the way you can just open terminal and run this command – iDeveloper Sep 23 '16 at 05:20
  • One of the pod seems not been updated and it exists some errors after I updated, should I convert the file? or convert into swift 2.3? – user6702783 Sep 23 '16 at 05:27
  • read this complete answer, it may helps you - [Click Here](http://stackoverflow.com/questions/39636385/how-to-install-the-alamofire-4-0-in-xcode-8-0/39636620?noredirect=1#comment66579750_39636620) – iDeveloper Sep 23 '16 at 05:32
  • I also ran "pod install", I believe some pods have been updated, but there are four errors all the same: “Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly. – user6702783 Sep 23 '16 at 05:35
  • tell me your installed pod version – iDeveloper Sep 23 '16 at 05:36
  • pod --version 1.0.1 – user6702783 Sep 23 '16 at 05:41
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/124003/discussion-between-ideveloper-and-user6702783). – iDeveloper Sep 23 '16 at 05:44