Coder Social home page Coder Social logo

Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. about devicekit HOT 15 CLOSED

devicekit avatar devicekit commented on June 26, 2024
Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift.

from devicekit.

Comments (15)

dennisweissmann avatar dennisweissmann commented on June 26, 2024 1

Hey @vixentael ,

Glad you solved it, however I still cannot reproduce it :( As you can see in my previous reply I also tried it with a pod file which explicitly sets the Swift version.

However, I'll leave this issue open so that people can find it easier (and work around it).

Thanks for your input and workaround!

from devicekit.

dennisweissmann avatar dennisweissmann commented on June 26, 2024

Hi, that's unfortunate :( Which version of Swift are you using in your project? Which version of the framework do you use? How does your podfile look like?

from devicekit.

Mozoee avatar Mozoee commented on June 26, 2024

Hi, My Swift version is 3.0.2. I am sorry about the Pod file as i have again deintegrate it and now working through my own class.

from devicekit.

dennisweissmann avatar dennisweissmann commented on June 26, 2024

Okay, I'll close this for now. Thanks for reporting!

from devicekit.

chlebta avatar chlebta commented on June 26, 2024

@dennisweissmann got same issue if I delete : SWIFT_VERSION then I've this convert to swift 3 issue

from devicekit.

dennisweissmann avatar dennisweissmann commented on June 26, 2024

@chlebta damn, which version are you using? (DeviceKit and Xcode and what is your application language version?)

from devicekit.

danielewin avatar danielewin commented on June 26, 2024

platform :ios, '10.0'

target '...' do

use_frameworks!

pod '...'

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end

end

from devicekit.

dennisweissmann avatar dennisweissmann commented on June 26, 2024

Hi @danielewin,

I cannot reproduce this :(

What I've tried:

  1. Create a single-view iOS Application called "DeviceKitDemo".

  2. cd to that folder, pod init

  3. Replace contents of file with

    platform :ios, '10.0'
    target 'DeviceKitDemo' do
    use_frameworks!
    pod 'DeviceKit', '~> 1.0'
    post_install do |installer|
    end
    end
    end
    end

    I've also tried your version

    platform :ios, '10.0'
    target 'DeviceKitDemo' do
    use_frameworks!
    pod 'DeviceKit', '~> 1.0'
    post_install do |installer|
    installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
    config.build_settings['SWIFT_VERSION'] = '3.0'
    end
    end
    end
    end

  4. pod install

  5. Open the .workspace

from devicekit.

vixentael avatar vixentael commented on June 26, 2024

Hi guys!

I experience the same problem using xcode 8.2.1 swift 3.0.2.

I reproduce it with versions 1.0.0 and 1.0.1 of DeviceKit

screen shot 2017-02-01 at 2 48 16 pm

from devicekit.

vixentael avatar vixentael commented on June 26, 2024

Probably I know the reason.

My podfile also contains the line config.build_settings['SWIFT_VERSION'] = '3.0'.

I removed it, deintegrate Pods, init them, clean up Derived Data, re-opened Xcode (those xcode magic tricks) --> and have no errors now ¯_(ツ)_/¯

from devicekit.

chlebta avatar chlebta commented on June 26, 2024

from devicekit.

dennisweissmann avatar dennisweissmann commented on June 26, 2024

@vixentael I only now saw your screenshot, this is not related to this issue, these are errors coming from SwiftLint, you should always exclude 3rd-party code from linting!

from devicekit.

dennisweissmann avatar dennisweissmann commented on June 26, 2024

Okay guys, which version of CocoaPods do you use? I'm on 1.2.0 and I still cannot reproduce it (also not with Cocoa Lumberjack @chlebta)

from devicekit.

chlebta avatar chlebta commented on June 26, 2024

@dennisweissmann I'm using pod 1.1.1

from devicekit.

dennisweissmann avatar dennisweissmann commented on June 26, 2024

Is this still an issue with Xcode > 8.3?

from devicekit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.