robbiehanson / XMPPFramework

An XMPP Framework in Objective-C for Mac and iOS
Other
5.91k stars 2.09k forks source link

Package product requires minimum platform version 11.0 for the iOS platform, but this target supports 9.0 (in target from project 'XMPPFramework') #1225

Open LeoMarliereYassir opened 1 year ago

LeoMarliereYassir commented 1 year ago

Hi everyone.

Im currently building an iOS package with the XMPPFramework. Everything is fine, but when I run some test with Bitrise, I have the 3 following issues :

All theses package product that are requiring the minimum plateform version 11.0 are package that are coming from the package XMPPFramework, that does support 9.0. So how can I solve this issue ?

Im not using Cocoapods and I don't have a Podfile for this project. Im managing my dependencies with the Swift Package Manager. Theses error are also only triggered by Bitrise when I build and run my main scheme.

Thanks

Monks-Giorgio commented 1 year ago

Hi, just add something like:

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

to your Podfile

LeoMarliereYassir commented 1 year ago

I don't have any podfile in my project. Should I had one just to fix this issue, or is there a way to do it without ?

mahesh-reddy-ios commented 1 year ago

when we are going to install XMPP Frame Work it is better do install using Pods then we can resolve this issue