react-native-pictures icon indicating copy to clipboard operation
react-native-pictures copied to clipboard

Error 'Task' is only available in iOS 13.0 or newer

Open MariuzM opened this issue 1 year ago • 9 comments

Just installed and getting this error

image

MariuzM avatar Jan 04 '24 04:01 MariuzM

Hello @MariuzM ! So nice to see the library installed! What is the version of react-native you are running in your app?

PierreCapo avatar Jan 04 '24 05:01 PierreCapo

"expo": "~49.0.21",
 "react-native": "0.72.6",

Thanks for looking into this

MariuzM avatar Jan 04 '24 05:01 MariuzM

This library uses functions that are only available in iOS 13 but your iOS app supports until iOS 12.4 (from RN 0.72).

From there you have various possibilities:

  • upgrade to RN 0.73 (which supports only iOS13.4+)
  • Change the iOS minimum version of your app to 13.0. It is fast to do and you will need to do it anyway when upgrading to 0.73
  • Fork this library so that this code uses iOS 12.4 compatible functions.

Meanwhile I am going to edit the README to stipulate the minimum iOS version 👍

PierreCapo avatar Jan 04 '24 05:01 PierreCapo

I have done the min version in the app, but i guess the RN 0.73 is still a must, Expo 50 is around the corner

      [
        'expo-build-properties',
        {
          ios: {
            deploymentTarget: '15.0',
          },
          android: {
            compileSdkVersion: 33,
            targetSdkVersion: 33,
            buildToolsVersion: '33.0.0',
          },
        },
      ],

MariuzM avatar Jan 04 '24 05:01 MariuzM

Cool, nice to see it fixed on your side!

PierreCapo avatar Jan 04 '24 06:01 PierreCapo

Uh? but its not :D

doing the deploymentTarget: '15.0', does not solve the issue, upgrading to expo 50 when that comes out will probably fix it.

MariuzM avatar Jan 04 '24 06:01 MariuzM

Sorry, I thought you meant it worked with this change.

Actually I looked again in, and it looks like the minimum supported iOS version of expo is right now iOS 13.0 https://docs.expo.dev/faq/#what-versions-of-android-and-ios-are-supported-by-the-expo-sdk Which means that upgrading to sdk 50 won't change probably anything.

That's strange, to sum up it complains that the function is only available on iOS 13.0+ but your build is somehow not compatible with iOS 13.0+ only.

PierreCapo avatar Jan 04 '24 12:01 PierreCapo

I have upgraded expo to "expo": "50.0.0-preview.7", and rn "react-native": "0.73.1", all working fine now

but because expo still in preview maybe leave this issue open so someone else find it and know its there

MariuzM avatar Jan 04 '24 12:01 MariuzM

Oh perfect, thanks for trying and good to know. Let's do this yeah, I'll let this issue opened until expo SDK 50 is released 👍

PierreCapo avatar Jan 04 '24 13:01 PierreCapo