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

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

Open
MariuzM opened this issue Jan 4, 2024 · 9 comments
Open

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

MariuzM opened this issue Jan 4, 2024 · 9 comments

Comments

@MariuzM
Copy link

MariuzM commented Jan 4, 2024

Just installed and getting this error

image
@PierreCapo
Copy link
Owner

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

@MariuzM
Copy link
Author

MariuzM commented Jan 4, 2024

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

Thanks for looking into this

@PierreCapo
Copy link
Owner

PierreCapo commented Jan 4, 2024

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 👍

@MariuzM
Copy link
Author

MariuzM commented Jan 4, 2024

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',
          },
        },
      ],

@PierreCapo
Copy link
Owner

Cool, nice to see it fixed on your side!

@MariuzM
Copy link
Author

MariuzM commented Jan 4, 2024

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.

@PierreCapo
Copy link
Owner

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 PierreCapo reopened this Jan 4, 2024
@MariuzM
Copy link
Author

MariuzM commented Jan 4, 2024

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

@PierreCapo
Copy link
Owner

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 👍

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