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
  • Hi @red! Sorry to hear about your issue , seems like it’s a simple fix due to Xcode assuming your swift version, just select the pods project and go to build settings and search for ‘SWIFT_VERSION’ then select 4.0 instead of your current setting. This might be a bug in Xcode or cocoa pods, we will take a look into that next Monday and update you. But doing that will allow you to build with no problems, let us know after doing that if your problems are resolved!

    If not we will gladly take you through it personally step by step to make sure your project works properly as soon as possible

Reply
  • Hi @red! Sorry to hear about your issue , seems like it’s a simple fix due to Xcode assuming your swift version, just select the pods project and go to build settings and search for ‘SWIFT_VERSION’ then select 4.0 instead of your current setting. This might be a bug in Xcode or cocoa pods, we will take a look into that next Monday and update you. But doing that will allow you to build with no problems, let us know after doing that if your problems are resolved!

    If not we will gladly take you through it personally step by step to make sure your project works properly as soon as possible

Children
Related