Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 0.4.1 does not compile with swift 2.3 #116

Closed
glm4 opened this issue Oct 3, 2016 · 5 comments
Closed

version 0.4.1 does not compile with swift 2.3 #116

glm4 opened this issue Oct 3, 2016 · 5 comments

Comments

@glm4
Copy link

glm4 commented Oct 3, 2016

@shogo4405 There is a few compiling errors in the version 0.4.1 when compiling using swift 2.3.
What's the solution?
Thanks

@shogo4405
Copy link
Owner

are u using xcode8 or 7?
if u are using xcode8, no way. plese cosider downgrade to xcode7.3.

@glm4
Copy link
Author

glm4 commented Oct 4, 2016

@shogo4405 Using Xcode 8, I need to stay in swift 2.3 but with SDK for iOS10, so i cant downgrade to Xcode 7.3. It compiles now by doing a convert, which is not ideal, can I include the library manually so every time a make a pod install i don't have to do the convert process?

@alex-vasenin
Copy link

I'm using Xcode 8 and Swift 3. After adding pod 'lf' to the Podfile, Xcode asked me to convert both lf and XCGLogger, but then said no changes needed. I don't get it, why it asks to convert in the first place?

@alex-vasenin
Copy link

Here a workaround for the "convert after every pod install" issue found at CocoaPods/CocoaPods#5521

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

@shogo4405
Copy link
Owner

0.4.2 supports XCode8. Try update. I released 0.4.2.

platform :ios, ‘8.0’

target 'Test' do
  use_frameworks!
  pod 'lf', '~> 0.4.2'
end

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants