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

'maestro' is only available in iOS 12.0 or newer #970

Closed
Shmublon opened this issue May 30, 2022 · 18 comments
Closed

'maestro' is only available in iOS 12.0 or newer #970

Shmublon opened this issue May 30, 2022 · 18 comments
Labels
invalid This doesn't seem right

Comments

@Shmublon
Copy link

Describe the bug
When I trying to build ios version app I have the error "'maestro' is only available in iOS 12.0 or newer", but my
target ios version is 12.0

To Reproduce
Steps to reproduce the behavior:

  1. Install stripe
  2. Run build in Xcode

Expected behavior
Build success

React native info:
System:
OS: macOS 11.6.5
CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 926.85 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 8.1.4 - ~/.nvm/versions/node/v16.13.0/bin/npm
Watchman: 2022.02.21.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0
Android SDK:
API Levels: 23, 29, 30, 31
Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2, 31.0.0, 32.0.0
System Images: android-29 | Google Play Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom
Android NDK: 22.1.7171670
IDEs:
Android Studio: 2020.3 AI-203.7717.56.2031.7621141
Xcode: 13.1/13A1030d - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_292 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: ^17.0.2 => 17.0.2
react-native: 0.66.1 => 0.66.1
react-native-macos: Not Found

@charliecruzan-stripe
Copy link
Collaborator

Hm, are you sure you've properly configured your target iOS version? Stripe-react-native doesn't support <iOS12

@charliecruzan-stripe charliecruzan-stripe added the invalid This doesn't seem right label Jun 1, 2022
@myles-grant
Copy link

myles-grant commented Jun 3, 2022

I ran into this same issue.

After upgrading react-native version 0.66.3 -> 0.68.2 I was able to successfully build the project.

@charliecruzan-stripe
Copy link
Collaborator

Thanks @myles-grant - did your ios deployment target change during that upgrade?

@myles-grant
Copy link

myles-grant commented Jun 3, 2022

Hi @charliecruzan-stripe,

No. I had the deployment set to 13.0 with both versions. Although, when using react-native CLI to create a new project the deployment is initially set to iOS 11.0

Note: Xcode version 13.4 (13F17a)

@craigcoles
Copy link

I have also run into this issue.

All my deployment targets were updated from 11.0 to 12.0. I was also running an older version (13.0) of Xcode so upgraded to the 13.2.1 as per the documentation, but still no joy.

Went through the process of upgrading react native from 0.66.0 to 0.68.2 as per @myles-grant's earlier comment and this seems to have resolved the issue 😅

@bill-pairaktaridis
Copy link

Yeah, we've had iOS 14 as a build target for a while and can't build with the latest version for this library. Trying to upgrade react-native but it should be listed as a requirement.

@charliecruzan-stripe
Copy link
Collaborator

You shouldn't need to upgrade your react-native version to 0.68 to resolve this issue as far as I can tell. I have a sample project with:

  "dependencies": {
    "@stripe/stripe-react-native": "^0.13.1",
    "react": "17.0.2",
    "react-native": "0.66.3"
  },

that is building successfully on Xcode 13. I did originally get the "'maestro' is only available in iOS 12.0 or newer" error, but after totally clearing pods (removing both the ios/Pods/and theios/Podfile.lock`), and cleaning the build folder & DerivedData, builds were successful. Here's the example project i used: https://github.com/charliecruzan-stripe/rn-0.66-with-stripe (it's just a react native init project + stripe)

@bill-pairaktaridis
Copy link

@charliecruzan-stripe unfortunately, no luck. Deleted node_modules, Pods/, Podfile.lock, DerivedData and still the same error.

@charliecruzan-stripe
Copy link
Collaborator

hm, that's odd.. did you try the project I linked?

@bill-pairaktaridis
Copy link

@charliecruzan-stripe yeah, it's not building for a different reason

fatal error: module map file '/Users/bla/Library/Developer/Xcode/DerivedData/AwesomeProject-gbvqgwgmoqpiibdjfruinashoehl/Build/Products/Debug-iphonesimulator/Stripe/Stripe.modulemap' not found

@charliecruzan-stripe
Copy link
Collaborator

@bill-pairaktaridis is it possible that one of the solutions here might apply?

@bill-pairaktaridis
Copy link

@charliecruzan-stripe eventually, upgrade RN to 0.66.4 resolved the issue for us locally and on Codemagic.

@charliecruzan-stripe
Copy link
Collaborator

I have to think this is some sort of odd caching issue that's happening in the ios/ directory of a react native project... some folks are saying this goes away by upgrading to RN 68, others to RN 66 🤔 and I was able to fix it without an upgrade just by clearing all my iOS-related caches (which would make sense since that usually happens when upgrading your RN version).

It is true that maestro is only available in iOS 12 or newer, and we also state in the readme that @stripe/stripe-react-native only supports iOS 12 and up. This error message indicates that something about your project is trying to build for < iOS 12.

Since I don't think this is an issue with this library, I'm going to close this

@charliecruzan-stripe charliecruzan-stripe closed this as not planned Won't fix, can't repro, duplicate, stale Jul 7, 2022
@RajRohitYadav
Copy link

RajRohitYadav commented Jul 14, 2022

on M1 chip with
"react": "17.0.2",
"react-native": "0.66.3",

We are using this script __apply_Xcode_12_5_M1_post_install_workaround as below

  post_install do |installer|
    react_native_post_install(installer)
    __apply_Xcode_12_5_M1_post_install_workaround(installer)
  end

this script has hard-coded 11.0 for IPHONEOS_DEPLOYMENT_TARGET. Hence explains why upgrading react-native solves the issue.

Changing it to 12.0 fixed it for us.

Path to the script
node_modules/react-native/scripts/react_native_pods.rb

@Tamimjabr
Copy link

just upgrade RN to 0.66.4

@Abhilash-R-Flipkart
Copy link

Facing this issue while installing maestro on ios

dyld: lazy symbol binding failed: can't resolve symbol _$sScCMa in /usr/local/Cellar/idb-companion/1.1.8/bin/../Frameworks/IDBGRPCSwift.framework/Versions/A/IDBGRPCSwift because dependent dylib @rpath/libswift_Concurrency.dylib could not be loaded
dyld: can't resolve symbol _$sScCMa in /usr/local/Cellar/idb-companion/1.1.8/bin/../Frameworks/IDBGRPCSwift.framework/Versions/A/IDBGRPCSwift because dependent dylib @rpath/libswift_Concurrency.dylib could not be loaded
fish: Job 1, 'idb_companion --udid 8C6D868E...' terminated by signal SIGABRT (Abort)

@fadikhan96
Copy link

config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0' in my case the here the target was 11 so i changed the target to 13.0

@diegomichell
Copy link

diegomichell commented Apr 12, 2023

This is the right answer, this is the reason that it fails, if you upgrade RN you get rid of this script hence you don't get the problem any more. If for some reason you can't upgrade changing IPHONEOS_DEPLOYMENT_TARGET to 13.0 in a podfile script resolves the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

10 participants