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

Xcode 12 beta Gives Deployment Target Warning #4448

Closed
1 task done
nicolas-miari opened this issue Aug 20, 2020 · 3 comments
Closed
1 task done

Xcode 12 beta Gives Deployment Target Warning #4448

nicolas-miari opened this issue Aug 20, 2020 · 3 comments
Assignees

Comments

@nicolas-miari
Copy link

What did you do?

Built my app using Xcode 12 beta.

What did you expect to happen?

No new warnings.

What happened instead?

I got this warning:

The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99.

Charts Environment

Charts version/Branch/Commit Number:
Xcode version: 12.0 beta 3 (12A8169g)
Swift version: 5
Platform(s) running Charts: iOS
macOS version running Xcode: 10.15.6 (19G73)

Demo Project


@DanielRouxSA
Copy link

DanielRouxSA commented Sep 4, 2020

This is a CocoaPods issue: CocoaPods/CocoaPods#9884 caused by Xcode dropping support for iOS 8.

Until CocoaPods is updated to fix this, the workaround is to either change the pod's deployment target, or have CocoaPods remove the deployment target from the pod entirely by adding the following to the podfile:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
    end
  end
end

and then running a pod install.

@nicolas-miari
Copy link
Author

@Ettariella
Perhaps I should have mentioned that my project integrates Charts using Swift Package Manager, not Cocoapods.

@pmairoldi
Copy link
Collaborator

Version 4.0.2 now available on cocoapods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants