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

Deployment target build warning in Xcode 12+ when installing via Cocopods #295

Closed
adamjansch opened this issue Oct 20, 2020 · 2 comments
Closed
Assignees
Milestone

Comments

@adamjansch
Copy link
Contributor

Since updating to Xcode 12, many Pods (including MIKMIDI) are creating this build 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.

The solution (as mentioned in CocoaPods/CocoaPods#9884) is to raise the minimum deployment target in the podspec.

Considering this would change the compatibility range of MIKMIDI would this solution be acceptable?

@armadsen armadsen self-assigned this Oct 22, 2020
@armadsen armadsen added this to the 1.8 milestone Oct 22, 2020
@armadsen
Copy link
Member

Hi @aj-bmdi, this change has already been made on the 1.8 branch. I need to finish up some work before releasing that, but will do so fairly soon. In the meantime, you can workaround this by either switching your Podfile to point to that branch, or adding the following to the bottom of your Podfile:

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

Replace 12.0 with your project's actually target. You could also potentially modify that to only change MIKMIDI's deployment target, but if your experience is like mine, it won't be the only pod for which that's needed...

@adamjansch
Copy link
Contributor Author

Awesome, thanks for the info!

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

2 participants