mythemebox / support

MyThemeBox - Product Issues
2 stars 0 forks source link

iOS Build Error - 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0 #1

Open codesundar opened 3 years ago

codesundar commented 3 years ago

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.4.99. (in target 'AppAuth' from project 'Pods')

Screenshot 2021-08-30 at 5 12 40 PM

codesundar commented 3 years ago

Solution 1:

Step 1: Remove & Re-add platform

ionic cordova platform rm ios
ionic cordova platform add ios

Step 2: Open projectname/platforms/ios/Podfile & add these lines at end

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

Step 3: Build it again

ionic cordova build ios
codesundar commented 3 years ago

Solution 2:

If you've added cordova-plugin-firebasex plugin, this may cause this issue. so you can solve it using

ionic cordova platform rm ios
ionic cordova plugin rm cordova-plugin-firebasex
ionic cordova plugin add cordova-plugin-firebasex@latest-cli
ionic cordova platform add ios

then build the app again

ionic cordova build ios