This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Trying to migrate an Objective C project to Cocoapods for an iOSDFULibrary with Xcode 9 results in an unopenable project

Hi,

When I take a vanilla Objective C Xcode project and try to convert it to Cocoapods for an iOSDFULibrary with Xcode 9 results in an unopenable project. You get an error "Unsupported Swift Version". Please see the attached screenshot.

I’ve tried both: github.com/.../IOS-Pods-DFU-Library github.com/.../IOS-nRF-Toolbox Both result with the same error in the attached screenshot.

This issue seems to be a newer incarnation of: devzone.nordicsemi.com/.../ image001.png

Parents
  • You did not trick the pod file thinking it's swift 4, it actually is swift 4 :) the reason why it's tagged as Swift 3 is might be a bug or you are using a wrong version of cocoapods perhaps ?

    the errors you are seeing now seem to be due to a wrong version of the Zip library installed, can you please update your question to show step by step how you create the podfile, what's in it and how you install the pods ? also the version of your cocoapods installation? i'm pretty sure it's something really simple :)

Reply
  • You did not trick the pod file thinking it's swift 4, it actually is swift 4 :) the reason why it's tagged as Swift 3 is might be a bug or you are using a wrong version of cocoapods perhaps ?

    the errors you are seeing now seem to be due to a wrong version of the Zip library installed, can you please update your question to show step by step how you create the podfile, what's in it and how you install the pods ? also the version of your cocoapods installation? i'm pretty sure it's something really simple :)

Children
No Data