14

I'm seeing the following warning messages in xcode whenever compiling my app.

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.3.99.

Google says it's somehow related to cocoapods but i'm not using them (just swift packages) & i also don't see pod file in xcode's list of project files..

Deployment target is already set to 14 -

Any ideas on how to get rid of these messages?

eugene_prg
  • 948
  • 2
  • 12
  • 25

1 Answers1

22

Search for IPHONEOS_DEPLOYMENT_TARGET in the search bar: you'll see that the human readable version (non-raw) string is iOS deployment target. So this is not about setting the simulator's target, this is about setting the iOS one. But you think you've already set the correct value for iOS deployment target.

Perhaps you are looking at the wrong target? Or looking at the project instead of the target?: See the picture below, select the target under TARGETS not PROJECT. This is because the target configuration overrides the project one:

enter image description here

Ben Butterworth
  • 22,056
  • 10
  • 114
  • 167
  • Hi Ben, Thanks for your answer. I've just checked the settings and it appears i have it set correctly, here's the screenshot - https://d.pr/i/aV3eST – eugene_prg Mar 25 '21 at 11:35
  • 1
    That's a different version you're using now: `14.4` not `14.0` and I have the same issue. I believe that is happening because Xcode currently warns against using versions newer than `14.3.99`. I **think this warning will disappear** if you change your deployment target to `14.3`. It would be interesting to see what your results are. I guess this warning can only be removed when using `14.4` as deployment target once a new version of Xcode is released. – Ben Butterworth Mar 25 '21 at 11:39
  • it didn't disappear after changing it to 14.3.. Still the same warning - " Showing All Messages 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." – eugene_prg Mar 25 '21 at 11:42
  • Did you try building for a physical device and does it have a similar warning? – Ben Butterworth Mar 25 '21 at 11:42
  • Perhaps it might be one of your dependencies targetting iOS 8.0 if possible? – Ben Butterworth Mar 25 '21 at 11:43
  • exactly the same warnings when building for my physical device (running on the latest iOS of course). – eugene_prg Mar 25 '21 at 11:46
  • may be it has something to do with FacebookSDK i downloaded via swift package manager? Here's another screenshot https://d.pr/i/LukSIZ – eugene_prg Mar 25 '21 at 11:48
  • I found this related github issue: https://github.com/facebook/facebook-ios-sdk/issues/1491 are you on the latest version? – Ben Butterworth Mar 25 '21 at 11:49
  • seems to be the latest one - here's the screenshot again https://d.pr/i/YUBMjB. .. but i found the following lines (iOS v8.0) in Package.swift file inside of SDK folder: https://d.pr/i/EsnrPY .. so i have this feeling that this is not the latest version of SDK but don't understand why xCode doesn't update it properly.. – eugene_prg Mar 25 '21 at 11:58
  • It looks like you're on 7.1.1, can you try [9.1.1](https://github.com/facebook/facebook-ios-sdk/releases) – Ben Butterworth Mar 25 '21 at 12:02