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

Can't build Expo app after installing the package #711

Open
eylonshm opened this issue Jul 29, 2024 · 3 comments
Open

Can't build Expo app after installing the package #711

eylonshm opened this issue Jul 29, 2024 · 3 comments
Labels

Comments

@eylonshm
Copy link

eylonshm commented Jul 29, 2024

Reproduction steps

  • Developing an Expo app.
  1. Added @datadog/mobile-react-native as a dependency in my package.json project
  2. Tried to build the app using eas build --platform=ios (android is working just fine)
  3. Build fails on Pods install stage with this error (Full Pods install stage on stackTrace section at the bottom):
[!] `<PBXResourcesBuildPhase UUID=`13B0**********00A75B9A`>` attempted to initialize an object with an unknown UUID. `078BF8B**********9778B` for attribute: `files`. This can be the result of a merge and the unknown UUID is being discarded.
pod install exited with non-zero code: 1
  1. Every build is failing with the same error.
  2. When using version 2.3.6 everything's fine, but >2.4.0 fails.

Volume

100%

Affected SDK versions

2.4.0

Latest working SDK version

2.3.6

Does the crash manifest in the latest SDK version?

Yes

React Native Version

0.74.1

Package.json Contents

No response

iOS Setup

No response

Android Setup

No response

Device Information

Every device.
Using Expo.
Build fails locally or on Expo Server

Other relevant information

Please contact me for more information.
We can't upgrade the package version for now.
Thank you guys!

Stack trace

Pods Install from Expo servers:

Using Expo modules
[Expo] Enabling modular headers for pod SPIndicator
[Expo] Enabling modular headers for pod SPAlert
[Expo] Enabling modular headers for pod ExpoModulesCore
[Expo] Enabling modular headers for pod React-Core
[Expo] Enabling modular headers for pod EXStructuredHeaders
[Expo] Enabling modular headers for pod EXUpdatesInterface
[Expo] Enabling modular headers for pod EXManifests
[Expo] Enabling modular headers for pod EASClient
[Expo] Enabling modular headers for pod ReachabilitySwift
[Expo] Enabling modular headers for pod sqlite3
[Expo] Enabling modular headers for pod RCT-Folly
[Expo] Enabling modular headers for pod glog
[Expo] Enabling modular headers for pod React-RCTFabric
[Expo] Enabling modular headers for pod React-Codegen
[Expo] Enabling modular headers for pod RCTRequired
[Expo] Enabling modular headers for pod RCTTypeSafety
[Expo] Enabling modular headers for pod ReactCommon
[Expo] Enabling modular headers for pod React-NativeModulesApple
[Expo] Enabling modular headers for pod Yoga
[Expo] Enabling modular headers for pod React-Fabric
[Expo] Enabling modular headers for pod React-graphics
[Expo] Enabling modular headers for pod React-utils
[Expo] Enabling modular headers for pod React-featureflags
[Expo] Enabling modular headers for pod React-debug
[Expo] Enabling modular headers for pod React-ImageManager
[Expo] Enabling modular headers for pod React-rendererdebug
[Expo] Enabling modular headers for pod DoubleConversion
[Expo] Enabling modular headers for pod hermes-engine
[Lottie React Native] Using install_modules_dependencies
Auto-linking React Native modules for target WhiteLabelApp: DatadogSDKReactNative, RNCAsyncStorage, RNDateTimePicker, RNGestureHandler, RNReanimated, RNSVG, RNScreens, lottie-react-native, pusher-websocket-react-native, react-native-netinfo, react-native-render-html, react-native-safe-area-context, react-native-slider, and react-native-webview
Framework build type is static library
[Codegen] Adding script_phases to React-Codegen.
[Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json
[Codegen] Analyzing /Users/expo/workingdir/build/apps/white-label-app/package.json
[Codegen] Searching for codegen-enabled libraries in the app.
[Codegen] The "codegenConfig" field is not defined in package.json. Assuming there is nothing to generate at the app level.
[Codegen] Searching for codegen-enabled libraries in the project dependencies.
[Codegen] Found @datadog/mobile-react-native
[Codegen] Found @react-native-community/datetimepicker
[Codegen] Found @react-native-community/slider
[Codegen] Found lottie-react-native
[Codegen] Found react-native
[Codegen] Found react-native-gesture-handler
[Codegen] Found react-native-reanimated
[Codegen] Found react-native-screens
[Codegen] Found react-native-svg
[Codegen] Found react-native-webview
[Codegen] Found @react-native-async-storage/async-storage
[Codegen] Found react-native-safe-area-context
[Codegen] >>>>> Searching for codegen-enabled libraries in react-native.config.js
[Codegen] Processing DdSdkReactNative
[Codegen] Searching for podspec in the project dependencies.
[Codegen] Supported Apple platforms: ios, tvos for DdSdkReactNative
[Codegen] Processing RNDateTimePickerCGen
[Codegen] Searching for podspec in the project dependencies.
[Codegen] Supported Apple platforms: ios, visionos for RNDateTimePickerCGen
[Codegen] Processing RNCSlider
[Codegen] Searching for podspec in the project dependencies.
[Codegen] Supported Apple platforms: ios, visionos for RNCSlider
[Codegen] Processing lottiereactnative
[Codegen] Searching for podspec in the project dependencies.
[Codegen] Supported Apple platforms: ios, macos, tvos for lottiereactnative
[Codegen] Processing FBReactNativeSpec
[Codegen] Searching for podspec in the project dependencies.
[Codegen] Processing rncore
[Codegen] Searching for podspec in the project dependencies.
[Codegen] Processing rngesturehandler_codegen
[Codegen] Searching for podspec in the project dependencies.
[Codegen] Supported Apple platforms: ios, macos, tvos, visionos for rngesturehandler_codegen
[Codegen] Processing rnreanimated
[Codegen] Searching for podspec in the project dependencies.
[Codegen] Supported Apple platforms: ios, macos, tvos, visionos for rnreanimated
[Codegen] Processing rnscreens
[Codegen] Searching for podspec in the project dependencies.
[Codegen] Supported Apple platforms: ios, tvos, visionos for rnscreens
[Codegen] Processing rnsvg
[Codegen] Searching for podspec in the project dependencies.
[Codegen] Supported Apple platforms: ios, macos, tvos, visionos for rnsvg
[Codegen] Processing RNCWebViewSpec
[Codegen] Searching for podspec in the project dependencies.
[Codegen] Supported Apple platforms: ios, macos for RNCWebViewSpec
[Codegen] Processing rnasyncstorage
[Codegen] Searching for podspec in the project dependencies.
[Codegen] Supported Apple platforms: ios, macos, tvos, visionos for rnasyncstorage
[Codegen] Processing safeareacontext
[Codegen] Searching for podspec in the project dependencies.
[Codegen] Supported Apple platforms: ios, tvos, visionos for safeareacontext
[Codegen] Generating Native Code for ios
[Codegen] Generated artifacts: /Users/expo/workingdir/build/apps/white-label-app/ios/build/generated/ios
[Codegen] Generating Native Code for ios
[Codegen] Generated artifacts: /Users/expo/workingdir/build/apps/white-label-app/ios/build/generated/ios
[Codegen] Generating Native Code for ios
[Codegen] Generated artifacts: /Users/expo/workingdir/build/apps/white-label-app/ios/build/generated/ios
[Codegen] Generating Native Code for ios
[Codegen] Generated artifacts: /Users/expo/workingdir/build/apps/white-label-app/ios/build/generated/ios
[Codegen] Generating Native Code for ios
[Codegen] Generated artifacts: /Users/expo/workingdir/build/apps/white-label-app/ios/build/generated/ios
[Codegen] Generating Native Code for ios
[Codegen] Generated artifacts: /Users/expo/workingdir/build/apps/white-label-app/node_modules/react-native/ReactCommon
[Codegen] Generating Native Code for ios
[Codegen] Generated artifacts: /Users/expo/workingdir/build/apps/white-label-app/ios/build/generated/ios
[Codegen] Generating Native Code for ios
[Codegen] Generated artifacts: /Users/expo/workingdir/build/apps/white-label-app/ios/build/generated/ios
[Codegen] Generating Native Code for ios
[Codegen] Generated artifacts: /Users/expo/workingdir/build/apps/white-label-app/ios/build/generated/ios
[Codegen] Generating Native Code for ios
[Codegen] Generated artifacts: /Users/expo/workingdir/build/apps/white-label-app/ios/build/generated/ios
[Codegen] Generating Native Code for ios
[Codegen] Generated artifacts: /Users/expo/workingdir/build/apps/white-label-app/ios/build/generated/ios
[Codegen] Generating Native Code for ios
[Codegen] Generated artifacts: /Users/expo/workingdir/build/apps/white-label-app/ios/build/generated/ios
[Codegen] Generating Native Code for ios
[Codegen] Generated artifacts: /Users/expo/workingdir/build/apps/white-label-app/ios/build/generated/ios
[Codegen] Creating component provider.
[Codegen] Generated provider in: /Users/expo/workingdir/build/apps/white-label-app/node_modules/react-native/React/Fabric
[Codegen] Done.
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 fmt from ../node_modules/react-native/third-party-podspecs/fmt.podspec
Fetching podspec for glog from ../node_modules/react-native/third-party-podspecs/glog.podspec
Fetching podspec for hermes-engine from ../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec
[Hermes] Using release tarball from URL: https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.74.1/react-native-artifacts-0.74.1-hermes-ios-debug.tar.gz
% Total % Received % Xferd Average Speed Time
Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --
:--:-- --:--:-- --:--:-- 0
100 16.5M 100 16.5M 0 0 103M 0 --:--:-- --:--:-- --:--:-- 103M
% Total % Received % Xferd Average Speed Time Time
Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 12.2M 100 12.2M 0 0 94.0M 0
--:--:-- --:--:-- --:--:-- 94.4M
[Lottie React Native] Using install_modules_dependencies
Adding spec repo trunk with CDN https://cdn.cocoapods.org/
CocoaPods 1.15.0 is available.
To update use: gem install cocoapods
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.15.0
Downloading dependencies
Installing Burnt (0.12.1)
Installing DatadogCore (2.13.0)
Installing DatadogCrashReporting (2.13.0)
Installing DatadogInternal (2.13.0)
Installing DatadogLogs (2.13.0)
Installing DatadogRUM (2.13.0)
Installing DatadogSDKReactNative (2.4.1)
Installing DatadogTrace (2.13.0)
Installing DatadogWebViewTracking (2.13.0)
Installing DoubleConversion (1.1.6)
Installing EASClient (0.12.0)
Installing EXApplication (5.9.1)
Installing EXConstants (16.0.2)
Installing EXJSONUtils (0.13.1)
Installing EXManifests (0.14.3)
Installing EXSplashScreen (0.27.5)
Installing EXStructuredHeaders (3.8.0)
Installing EXUpdates (0.25.21)
Installing EXUpdatesInterface (0.16.2)
Installing Expo (51.0.22)
Installing ExpoAsset (10.0.10)
Installing ExpoClipboard (6.0.3)
Installing ExpoFileSystem (17.0.1)
Installing ExpoFont (12.0.9)
Installing ExpoKeepAwake (13.0.2)
Installing ExpoLinearGradient (13.0.2)
Installing ExpoModulesCore (1.12.19)
Installing FBLazyVector (0.74.1)
Installing NWWebSocket (0.5.4)
Installing OpenTelemetrySwiftApi (1.6.0)
Installing PLCrashReporter (1.11.2)
Installing PusherSwift (10.1.5)
Installing RCT-Folly (2024.01.01.00)
Installing RCTDeprecation (0.74.1)
Installing RCTRequired (0.74.1)
Installing RCTTypeSafety (0.74.1)
Installing RNCAsyncStorage (1.23.1)
Installing RNDateTimePicker (8.0.1)
Installing RNGestureHandler (2.16.2)
Installing RNReanimated (3.10.1)
Installing RNSVG (15.2.0)
Installing RNScreens (3.31.1)
Installing ReachabilitySwift (5.2.3)
Installing React (0.74.1)
Installing React-Codegen (0.74.1)
Installing React-Core (0.74.1)
Installing React-CoreModules (0.74.1)
Installing React-Fabric (0.74.1)
Installing React-FabricImage (0.74.1)
Installing React-ImageManager (0.74.1)
Installing React-Mapbuffer (0.74.1)
Installing React-NativeModulesApple (0.74.1)
Installing React-RCTActionSheet (0.74.1)
Installing React-RCTAnimation (0.74.1)
Installing React-RCTAppDelegate (0.74.1)
Installing React-RCTBlob (0.74.1)
Installing React-RCTFabric (0.74.1)
Installing React-RCTImage (0.74.1)
Installing React-RCTLinking (0.74.1)
Installing React-RCTNetwork (0.74.1)
Installing React-RCTSettings (0.74.1)
Installing React-RCTText (0.74.1)
Installing React-RCTVibration (0.74.1)
Installing React-RuntimeApple (0.74.1)
Installing React-RuntimeCore (0.74.1)
Installing React-RuntimeHermes (0.74.1)
Installing React-callinvoker (0.74.1)
Installing React-cxxreact (0.74.1)
Installing React-debug (0.74.1)
Installing React-featureflags (0.74.1)
Installing React-graphics (0.74.1)
Installing React-hermes (0.74.1)
Installing React-jserrorhandler (0.74.1)
Installing React-jsi (0.74.1)
Installing React-jsiexecutor (0.74.1)
Installing React-jsinspector (0.74.1)
Installing React-jsitracing (0.74.1)
Installing React-logger (0.74.1)
Installing React-nativeconfig (0.74.1)
Installing React-perflogger (0.74.1)
Installing React-rendererdebug (0.74.1)
Installing React-rncore (0.74.1)
Installing React-runtimeexecutor (0.74.1)
Installing React-runtimescheduler (0.74.1)
Installing React-utils (0.74.1)
Installing ReactCommon (0.74.1)
Installing SPAlert (4.2.0)
Installing SPIndicator (1.6.4)
Installing SocketRocket (0.7.0)
Installing TweetNacl (1.0.2)
Installing Yoga (0.0.0)
Installing boost (1.83.0)
Installing fmt (9.1.0)
Installing glog (0.3.5)
Installing hermes-engine (0.74.1)
Installing lottie-ios (4.4.3)
Installing lottie-react-native (6.7.0)
Installing pusher-websocket-react-native (1.3.1)
Installing react-native-netinfo (11.3.1)
Installing react-native-render-html (6.3.4)
Installing react-native-safe-area-context (4.10.1)
Installing react-native-slider (4.5.2)
Installing react-native-webview (13.8.6)
Installing sqlite3 (3.45.3+1)
Generating Pods project
Setting USE_HERMES build settings
Setting REACT_NATIVE build settings
[Ccache]: Removing Ccache from CC, LD, CXX & LDPLUSPLUS build settings
[Privacy Manifest Aggregation] No existing PrivacyInfo.xcprivacy file found, creating a new one.
[Privacy Manifest Aggregation] Reading .xcprivacy files to aggregate all used Required Reason APIs.
[!] An error occurred while processing the post-install hook of the Podfile.
undefined method each' for nil:NilClass /Users/expo/workingdir/build/apps/white-label-app/node_modules/react-native/scripts/cocoapods/privacy_manifest_utils.rb:111:in block (4 levels) in get_used_required_reason_apis'
/Users/expo/workingdir/build/apps/white-label-app/node_modules/react-native/scripts/cocoapods/privacy_manifest_utils.rb:106:in each' /Users/expo/workingdir/build/apps/white-label-app/node_modules/react-native/scripts/cocoapods/privacy_manifest_utils.rb:106:in block (3 levels) in get_used_required_reason_apis'
/Users/expo/workingdir/build/apps/white-label-app/node_modules/react-native/scripts/cocoapods/privacy_manifest_utils.rb:105:in each' /Users/expo/workingdir/build/apps/white-label-app/node_modules/react-native/scripts/cocoapods/privacy_manifest_utils.rb:105:in block (2 levels) in get_used_required_reason_apis'
/Users/expo/workingdir/build/apps/white-label-app/node_modules/react-native/scripts/cocoapods/privacy_manifest_utils.rb:104:in each' /Users/expo/workingdir/build/apps/white-label-app/node_modules/react-native/scripts/cocoapods/privacy_manifest_utils.rb:104:in block in get_used_required_reason_apis'
/Users/expo/workingdir/build/apps/white-label-app/node_modules/react-native/scripts/cocoapods/privacy_manifest_utils.rb:102:in each' /Users/expo/workingdir/build/apps/white-label-app/node_modules/react-native/scripts/cocoapods/privacy_manifest_utils.rb:102:in get_used_required_reason_apis'
/Users/expo/workingdir/build/apps/white-label-app/node_modules/react-native/scripts/cocoapods/privacy_manifest_utils.rb:18:in add_aggregated_privacy_manifest' /Users/expo/workingdir/build/apps/white-label-app/node_modules/react-native/scripts/react_native_pods.rb:301:in react_native_post_install'
/Users/expo/workingdir/build/apps/white-label-app/ios/Podfile:32:in block (3 levels) in from_ruby' /Users/expo/.gems/arm64/gems/cocoapods-core-1.14.3/lib/cocoapods-core/podfile.rb:196:in post_install!'
/Users/expo/.gems/arm64/gems/cocoapods-1.14.3/lib/cocoapods/installer.rb:1013:in run_podfile_post_install_hook' /Users/expo/.gems/arm64/gems/cocoapods-1.14.3/lib/cocoapods/installer.rb:1001:in block in run_podfile_post_install_hooks'
/Users/expo/.gems/arm64/gems/cocoapods-1.14.3/lib/cocoapods/user_interface.rb:149:in message' /Users/expo/.gems/arm64/gems/cocoapods-1.14.3/lib/cocoapods/installer.rb:1000:in run_podfile_post_install_hooks'
/Users/expo/.gems/arm64/gems/cocoapods-1.14.3/lib/cocoapods/installer.rb:337:in block (2 levels) in create_and_save_projects' /Users/expo/.gems/arm64/gems/cocoapods-1.14.3/lib/cocoapods/installer/xcode/pods_project_generator/pods_project_writer.rb:61:in write!'
/Users/expo/.gems/arm64/gems/cocoapods-1.14.3/lib/cocoapods/installer.rb:336:in block in create_and_save_projects' /Users/expo/.gems/arm64/gems/cocoapods-1.14.3/lib/cocoapods/user_interface.rb:64:in section'
/Users/expo/.gems/arm64/gems/cocoapods-1.14.3/lib/cocoapods/installer.rb:315:in create_and_save_projects' /Users/expo/.gems/arm64/gems/cocoapods-1.14.3/lib/cocoapods/installer.rb:307:in generate_pods_project'
/Users/expo/.gems/arm64/gems/cocoapods-1.14.3/lib/cocoapods/installer.rb:183:in integrate' /Users/expo/.gems/arm64/gems/cocoapods-1.14.3/lib/cocoapods/installer.rb:170:in install!'
/Users/expo/.gems/arm64/gems/cocoapods-1.14.3/lib/cocoapods/command/install.rb:52:in run' /Users/expo/.gems/arm64/gems/claide-1.1.0/lib/claide/command.rb:334:in run'
/Users/expo/.gems/arm64/gems/cocoapods-1.14.3/lib/cocoapods/command.rb:52:in run' /Users/expo/.gems/arm64/gems/cocoapods-1.14.3/bin/pod:55:in <top (required)>'
/Users/expo/.gems/arm64/bin/pod:25:in load' /Users/expo/.gems/arm64/bin/pod:25:in

'
[!] [Codegen] warn: using experimental new codegen integration
[!] <PBXResourcesBuildPhase UUID=13B07F8E1A680F5B00A75B9A> attempted to initialize an object with an unknown UUID. 078BF8BD05B04C14BA29778B for attribute: files. This can be the result of a merge and the unknown UUID is being discarded.

@eylonshm eylonshm added the crash label Jul 29, 2024
@eylonshm eylonshm changed the title Can't build Expo app after installing the package #710 Can't build Expo app after installing the package Jul 29, 2024
@marco-saia-datadog
Copy link
Member

Hello @eylonshm, thank you for reaching out!

Have you tried updating to the latest versions of our packages?

"expo-datadog": "51.0.2",
"@datadog/mobile-react-native": "2.4.3"

It would be useful to see your package.json in order to diagnose the problem.

Could you please share it here?

@KristianGoshi
Copy link

KristianGoshi commented Oct 30, 2024

Having the same issue after adding the package and trying to run pod install.

This is my package.json:

{
"name": "kure",
"version": "1.3.4",
"private": true,
"scripts": {
"allow-bash": "chmod -R 744 ./scripts",
"android": "npx react-native run-android",
"clean": "yarn clean-deps && yarn clean-ios && yarn clean-android",
"clean-android": "cd android && ./gradlew clean",
"clean-deps": "rm -rf node_modules && yarn install",
"clean-ios": "cd ios && pod deintegrate && pod install",
"fb-stage": "./scripts/copyFirebaseConfig.sh STAGE",
"inc": "./scripts/incVersion.sh",
"ios": "npx react-native run-ios",
"lint": "eslint src/",
"lint-fix": "eslint --fix src/",
"precommit": "lint-staged && yarn sort-package-json && git add package.json",
"prepare": "husky install",
"prettier": "prettier --write '{src,tests}//*.{js,jsx,ts,tsx}'",
"rename": "yarn react-native-rename",
"restart": "yarn && yarn pod-install && yarn start",
"start": "npx react-native start --reset-cache",
"test": "jest --config='./jest.config.json' --detectOpenHandles",
"test-cov": "jest --config='./jest.config.json' --collectCoverageFrom='src/
/.js'",
"type-check": "tsc --noEmit",
"postversion": "yarn react-native-version -t android,ios -a -L",
"version-app": "yarn react-native-version -r -A -t android,ios -L"
},
"husky": {
"hooks": {
"pre-commit": "yarn precommit"
}
},
"lint-staged": {
"package.json": [
"yarn sort-package-json"
],
"
.{md,yml}": [
"prettier --write"
],
"{src,tests}/**/*.{ts,tsx,js,jsx}": [
"prettier --write",
"yarn lint-fix",
"yarn lint"
]
},
"resolutions": {
"@types/react": "^18.0.0"
},
"dependencies": {
"@amplitude/analytics-react-native": "^1.4.9",
"@babel/preset-typescript": "^7.15.0",
"@core/body-weight-planner": "^1.2.0",
"@datadog/mobile-react-native": "2.4.4",
"@datadog/mobile-react-navigation": "2.4.4",
"@gorhom/bottom-sheet": "^4",
"@kilomobile/rn-analytics-core": "^6.3.2",
"@kilomobile/rn-analytics-firebase": "^6.3.2",
"@kilomobile/rn-analytics-instabug": "^6.3.2",
"@kilomobile/rn-firebase": "^0.1.6",
"@kilomobile/rn-globals": "^1.1.0",
"@kilomobile/rn-utils": "^3.0.1",
"@notifee/react-native": "^9.1.1",
"@react-native-async-storage/async-storage": "^1.24.0",
"@react-native-clipboard/clipboard": "^1.14.1",
"@react-native-community/blur": "^4.4.1",
"@react-native-community/cli-platform-android": "^13.6.6",
"@react-native-community/netinfo": "^11.4.1",
"@react-native-firebase/analytics": "^20.0.0",
"@react-native-firebase/app": "^20.5.0",
"@react-native-firebase/auth": "^20.5.0",
"@react-native-firebase/crashlytics": "^20.5.0",
"@react-native-firebase/database": "^20.5.0",
"@react-native-firebase/firestore": "^20.5.0",
"@react-native-firebase/messaging": "^21.0.0",
"@react-native-firebase/remote-config": "^20.5.0",
"@react-native-firebase/storage": "^20.5.0",
"@react-native-masked-view/masked-view": "^0.3.1",
"@react-native-picker/picker": "^2.7.5",
"@react-navigation/native": "^6.0.10",
"@react-navigation/native-stack": "^6.9.12",
"@react-navigation/stack": "^6.3.29",
"@redux-saga/is": "^1.1.3",
"@reduxjs/toolkit": "^1.9.3",
"@sentry/react-native": "^5.33.1",
"@shopify/react-native-skia": "^1.2.3",
"@sparkfabrik/react-native-idfa-aaid": "^1.1.1",
"@superwall/react-native-superwall": "^1.3.1",
"@types/date-fns": "^2.6.0",
"add": "^2.0.6",
"axios": "^1.3.4",
"dayjs": "^1.11.11",
"i18next": "^22.4.12",
"instabug-reactnative": "^13.0.0",
"jwt-decode": "^3.1.2",
"klaviyo-react-native-sdk": "^0.4.2",
"lodash": "^4.17.21",
"lottie-react-native": "^6.7.2",
"parse-url": "^9.2.0",
"react": "18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^12.2.0",
"react-native": "0.74.1",
"react-native-bootsplash": "^5.5.3",
"react-native-color-matrix-image-filters": "^6.0.9",
"react-native-date-picker": "^5.0.2",
"react-native-device-info": "^11.1.0",
"react-native-dialog": "^9.3.0",
"react-native-fast-image": "^8.5.11",
"react-native-flipper": "^0.212.0",
"react-native-gesture-handler": "^2.16.2",
"react-native-haptic-feedback": "^2.2.0",
"react-native-idle-timer": "^2.2.3",
"react-native-in-app-review": "^4.3.3",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-linear-gradient": "^2.5.6",
"react-native-mmkv": "^2.12.2",
"react-native-permissions": "^4.1.5",
"react-native-purchases": "^8.2.2",
"react-native-purchases-ui": "^8.2.2",
"react-native-quick-base64": "^2.1.2",
"react-native-quick-crypto": "0.7.0-rc.5",
"react-native-reanimated": "3.10.0",
"react-native-reanimated-skeleton": "^1.5.1",
"react-native-redash": "^18.1.3",
"react-native-safe-area-context": "^4.10.1",
"react-native-screens": "^3.31.1",
"react-native-snap-carousel": "^3.9.1",
"react-native-store-review": "^0.4.3",
"react-native-svg": "^13.8.0",
"react-native-svg-transformer": "^1.0.0",
"react-native-swiper": "^1.6.0",
"react-native-track-player": "^4.1.1",
"react-native-vector-icons": "^9.1.0",
"react-native-video": "^6.3.0",
"react-redux": "^8.0.5",
"redux": "^4.2.1",
"redux-persist": "^6.0.0",
"redux-persist-filesystem-storage": "^4.1.0",
"redux-saga": "^1.2.3",
"reselect": "^4.1.5",
"singular-react-native": "^3.5.2",
"styled-components": "^6.0.0",
"stylis": "^4.0.0",
"typed-redux-saga": "^1.5.0",
"use-subscription": "^1.6.0",
"yarn": "^1.22.22"
},
"devDependencies": {
"@babel/core": "7.21.3",
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
"@babel/preset-env": "7.20.2",
"@babel/runtime": "7.21.0",
"@commitlint/cli": "^17.4.4",
"@commitlint/config-conventional": "^17.4.4",
"@jest/reporters": "^29.5.0",
"@kilohealth/eslint-config-react-native": "^1.8.0",
"@kilohealth/eslint-config-redux-saga": "^1.5.0",
"@react-native/babel-preset": "0.74.83",
"@react-native/eslint-config": "0.74.83",
"@react-native/metro-config": "0.74.83",
"@react-native/typescript-config": "0.74.83",
"@testing-library/jest-native": "^5.4.2",
"@testing-library/react-native": "^12.0.0",
"@types/jest": "^29.5.0",
"@types/lodash": "^4.14.175",
"@types/react": "^18.2.6",
"@types/react-native": "0.71.3",
"@types/react-native-vector-icons": "^6.4.9",
"@types/react-redux": "^7.1.25",
"@types/use-subscription": "^1.0.0",
"@types/yup": "^0.32.0",
"babel-jest": "^29.6.3",
"babel-plugin-module-resolver": "^5.0.0",
"babel-plugin-transform-inline-environment-variables": "^0.4.3",
"date-fns": "^2.29.3",
"eslint": "^8.36.0",
"generate-changelog": "^1.8.0",
"husky": "^8.0.3",
"jest": "^29.6.3",
"lint-staged": "^13.2.0",
"metro-react-native-babel-preset": "^0.76.0",
"pod-install": "^0.1.38",
"prettier": "2.8.8",
"query-string": "^8.1.0",
"react-native-rename": "^3.2.12",
"react-native-version": "^4.0.0",
"react-test-renderer": "18.2.0",
"reactotron-core-client": "^2.8.10",
"reactotron-react-native": "^5.0.3",
"reactotron-redux": "^3.1.3",
"reactotron-redux-saga": "^4.2.3",
"rn-host-detect": "^1.2.0",
"sort-package-json": "^2.4.1",
"stylelint": "15.3.0",
"stylelint-config-react-native-styled-components": "0.5.0",
"stylelint-config-styled-components": "0.1.1",
"stylelint-processor-styled-components": "1.10.0",
"stylelint-react-native": "2.6.0",
"typescript": "5.0.4"
},
"engines": {
"node": ">=18"
}
}

And this is the Podfile:

def node_require(script)
require Pod::Executable.execute_command('node', ['-p',
"require.resolve(
'#{script}',
{paths: [process.argv[1]]},
)", dir]).strip
end

node_require('react-native/scripts/react_native_pods.rb')
node_require('react-native-permissions/scripts/setup.rb')

platform :ios, min_ios_version_supported
prepare_react_native_project!

setup_permissions([
'AppTrackingTransparency',
])

linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
use_frameworks! :linkage => linkage.to_sym
end

target 'kure' do
config = use_native_modules!

use_frameworks! :linkage => :static
$RNFirebaseAsStaticFramework = true

use_react_native!(
:path => config[:reactNativePath],
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)

post_install do |installer|
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false,
)
installer.pods_project.targets.each do |target|
if target.name == 'BoringSSL-GRPC'
target.source_build_phase.files.each do |file|
if file.settings && file.settings['COMPILER_FLAGS']
flags = file.settings['COMPILER_FLAGS'].split
flags.reject! { |flag| flag == '-GCC_WARN_INHIBIT_ALL_WARNINGS' }
file.settings['COMPILER_FLAGS'] = flags.join(' ')
end
end
end
end
end
end

Highest working version is 2.3.6. Anything at 2.4.0 and above causes this issue

@trughooputh
Copy link

trughooputh commented Nov 16, 2024

Similar issue on my side, without using expo

After only adding the npm package yarn add @datadog/mobile-react-native for React Native 0.74.1
Following: https://docs.datadoghq.com/real_user_monitoring/mobile_and_tv_monitoring/setup/reactnative/#setup

and installing the pods
(Also tried pod deintegrate)

[Privacy Manifest Aggregation] Appending aggregated reasons to existing PrivacyInfo.xcprivacy file.
[Privacy Manifest Aggregation] Reading .xcprivacy files to aggregate all used Required Reason APIs.
[!] An error occurred while processing the post-install hook of the Podfile.

undefined method `each' for nil

...

/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:196:in `post_install!'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:1013:in `run_podfile_post_install_hook'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:1001:in `block in run_podfile_post_install_hooks'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-1.15.2/lib/cocoapods/user_interface.rb:149:in `message'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:1000:in `run_podfile_post_install_hooks'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:337:in `block (2 levels) in create_and_save_projects'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-1.15.2/lib/cocoapods/installer/xcode/pods_project_generator/pods_project_writer.rb:61:in `write!'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:336:in `block in create_and_save_projects'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-1.15.2/lib/cocoapods/user_interface.rb:64:in `section'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:315:in `create_and_save_projects'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:307:in `generate_pods_project'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:183:in `integrate'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:170:in `install!'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-1.15.2/lib/cocoapods/command/update.rb:63:in `run'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-1.15.2/bin/pod:55:in `<top (required)>'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/bin/pod:25:in `load'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/bin/pod:25:in `<main>'


Edit: could unblock a bit, only with 2.3.6, and following example from https://github.com/DataDog/dd-sdk-reactnative/blob/develop/packages/core/scripts/replace-react-require.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants