I am going through the following repository steps listed here: https://github.com/square/react-native-square-reader-sdk/tree/master/reader-sdk-react-native-quickstart and everything seems fine until I try to run ios:
amanagraphics@Amanas-MacBook-Pro reader-sdk-react-native-quickstart % yarn
yarn install v1.22.19
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning "react-native > react-native-codegen > [email protected]" has unmet peer dependency "@babel/preset-env@^7.1.6".
[4/4] 🔨 Building fresh packages...
✨ Done in 15.44s.
amanagraphics@Amanas-MacBook-Pro reader-sdk-react-native-quickstart % cd ios
amanagraphics@Amanas-MacBook-Pro ios % pod install
Auto-linking React Native modules for target `RNReaderSDKSample`: RNGestureHandler, RNPermissions, RNReaderSDK, RNScreens, ReactNativeCameraKit, and react-native-safe-area-context
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`
Fetching podspec for `boost` from `../node_modules/react-native/third-party-podspecs/boost.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
Downloading dependencies
Installing DoubleConversion (1.1.6)
Installing FBLazyVector (0.67.2)
Installing FBReactNativeSpec (0.67.2)
Installing Permission-Camera (3.6.1)
Installing Permission-LocationAccuracy (3.6.1)
Installing Permission-LocationAlways (3.6.1)
Installing Permission-LocationWhenInUse (3.6.1)
Installing Permission-Microphone (3.6.1)
Installing RCT-Folly (2021.06.28.00-v2)
Installing RCTRequired (0.67.2)
Installing RCTTypeSafety (0.67.2)
Installing RNGestureHandler (2.9.0)
Installing RNPermissions (3.6.1)
Installing RNReaderSDK (1.1.4)
Installing RNScreens (3.17.0)
Installing React (0.67.2)
Installing React-Core (0.67.2)
Installing React-CoreModules (0.67.2)
Installing React-RCTActionSheet (0.67.2)
Installing React-RCTAnimation (0.67.2)
Installing React-RCTBlob (0.67.2)
Installing React-RCTImage (0.67.2)
Installing React-RCTLinking (0.67.2)
Installing React-RCTNetwork (0.67.2)
Installing React-RCTSettings (0.67.2)
Installing React-RCTText (0.67.2)
Installing React-RCTVibration (0.67.2)
Installing React-callinvoker (0.67.2)
Installing React-cxxreact (0.67.2)
Installing React-jsi (0.67.2)
Installing React-jsiexecutor (0.67.2)
Installing React-jsinspector (0.67.2)
Installing React-logger (0.67.2)
Installing React-perflogger (0.67.2)
Installing React-runtimeexecutor (0.67.2)
Installing ReactCommon (0.67.2)
Installing ReactNativeCameraKit (13.0.0)
Installing Yoga (1.14.0)
Installing boost (1.76.0)
Installing fmt (6.2.1)
Installing glog (0.3.5)
Installing react-native-safe-area-context (3.4.1)
Generating Pods project
Integrating client project
Pod installation complete! There are 43 dependencies from the Podfile and 42 total pods installed.
amanagraphics@Amanas-MacBook-Pro ios %
amanagraphics@Amanas-MacBook-Pro ios % ruby <(curl https://connect.squareup.com/readersdk-installer) install \
--app-id sq0idp-8KasdasdXjn-kasdasdUbCw \
--repo-password 4mlcnejwoaltewjasdasdasdasdasdasdasdasdfl7xurq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 12883 100 12883 0 0 69447 0 --:--:-- --:--:-- --:--:-- 77608
Checking available versions ...
Installing version 1.6.9 ...
[100.0% complete] [####################################################################################################]
Installed version 1.6.9: /Users/amanagraphics/react-native-square-reader-sdk/reader-sdk-react-native-quickstart/ios/SquareReaderSDK.xcframework
amanagraphics@Amanas-MacBook-Pro ios % cd ../
amanagraphics@Amanas-MacBook-Pro reader-sdk-react-native-quickstart % react-native run-ios
error Cannot read properties of undefined (reading 'configurations').
TypeError: Cannot read properties of undefined (reading 'configurations')
at Object.dependencyConfig (/Users/amanagraphics/react-native-square-reader-sdk/reader-sdk-react-native-quickstart/node_modules/@react-native-community/cli-platform-ios/build/config/index.js:102:37)
at /usr/local/lib/node_modules/react-native/node_modules/@react-native-community/cli-config/build/loadConfig.js:35:61
at Array.reduce (<anonymous>)
at getDependencyConfig (/usr/local/lib/node_modules/react-native/node_modules/@react-native-community/cli-config/build/loadConfig.js:31:51)
at Object.get @react-native-community/cli-platform-android [as @react-native-community/cli-platform-android] (/usr/local/lib/node_modules/react-native/node_modules/@react-native-community/cli-config/build/loadConfig.js:101:20)
at warnAboutManuallyLinkedLibs (/Users/amanagraphics/react-native-square-reader-sdk/reader-sdk-react-native-quickstart/node_modules/@react-native-community/cli-platform-ios/build/link/warnAboutManuallyLinkedLibs.js:39:43)
at Object.runIOS [as func] (/Users/amanagraphics/react-native-square-reader-sdk/reader-sdk-react-native-quickstart/node_modules/@react-native-community/cli-platform-ios/build/commands/runIOS/index.js:104:44)
at Command.handleAction (/usr/local/lib/node_modules/react-native/node_modules/@react-native-community/cli/build/index.js:111:23)
at Command.listener [as _actionHandler] (/usr/local/lib/node_modules/react-native/node_modules/commander/lib/command.js:482:17)
at /usr/local/lib/node_modules/react-native/node_modules/commander/lib/command.js:1283:65
Password/Key changed for security. I have seen some solutions online which require to modify the file to check if the array exists or not, but that sounds like a hacky solution to me.
Any ideas would be greatly appreciated.