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

Build fails on Xcode 14.3 RC #36635

Closed
travis-mark opened this issue Mar 24, 2023 · 47 comments
Closed

Build fails on Xcode 14.3 RC #36635

travis-mark opened this issue Mar 24, 2023 · 47 comments
Labels
📮Known Issues This indicates an issue that refers to a bug or limitation of RN that is not currently being handled Resolution: Duplicate

Comments

@travis-mark
Copy link

Description

Xcode Cloud now offers and appears to auto-select Xcode 14.3 Release Candidate for builds. This trips an iOS versioning bug. This is the relevant error section:

=== BUILD TARGET React-Codegen OF PROJECT Pods WITH CONFIGURATION Release === 2s
Passed Make symlink libReact-Codegen.a 0s
Passed Write all-product-headers.yaml 0s
Passed Write React-Codegen.hmap 0s
Passed Write React-Codegen-project-headers.hmap 0s
Passed Write React-Codegen-own-target-headers.hmap 0s
Passed Write React-Codegen-generated-files.hmap 0s
Passed Write React-Codegen-all-target-headers.hmap 0s
Passed Write React-Codegen-all-non-framework-target-headers.hmap 0s
Passed Write React-Codegen.LinkFileList (arm64) 0s
Passed Compile React-Codegen-dummy.m (arm64) 0s
Error Compile FBReactNativeSpec-generated.mm (arm64) 2s
Error 'value' is unavailable: introduced in iOS 12.0
Error 'value' is unavailable: introduced in iOS 12.0
Error 'value' is unavailable: introduced in iOS 12.0
Error 'value' is unavailable: introduced in iOS 12.0
Error 'value' is unavailable: introduced in iOS 12.0
Error 'value' is unavailable: introduced in iOS 12.0
Error 'value' is unavailable: introduced in iOS 12.0

So, the error is that react-native's minimum version is iOS 12.4 but many pods are getting set to 11.0. The surface answer is to patch the projects, but the underlying problem is get_react_codegen_spec uses a hardcoded '11.0' rather than '12.4' or min_ios_version_supported defined in react_native_pods.rb.

React Native Version

0.71.4

Output of npx react-native info

NOTE: This is from my local machine. I am working on getting npx react-native info output from the build machine on Xcode Cloud.

info Fetching system and libraries information...
System:
OS: macOS 13.2.1
CPU: (10) arm64 Apple M1 Max
Memory: 707.53 MB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 19.5.0 - /opt/homebrew/bin/node
Yarn: Not Found
npm: 9.3.1 - /opt/homebrew/bin/npm
Watchman: 2023.02.20.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9477386
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 19.0.2 - /opt/homebrew/opt/openjdk/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: ^0.71.4 => 0.71.4
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

Create a sample project and connect to Xcode Cloud in App Store Connect. Run workflow on Xcode 14.3 RC.

Snack, code example, screenshot, or link to a repository

https://github.com/travis-mark/lrn

@travis-mark
Copy link
Author

I posted a workaround to the sample project:

travis-mark/lrn@0158547

The underlying issue should probably be addressed in react-native directly, but I'm less familiar with patching those files directly.

@siderakis
Copy link

I couldn't get the workaround working because react-native-skia has issues when building the project

@maxoschepkov
Copy link

maxoschepkov commented Mar 31, 2023

Any updates?
Got the same errors with:

  • Xcode Version 14.3 (14E222b)
  • "react-native": "0.70.5"

@travis-mark temporary workaround fixes it.

@travis-mark
Copy link
Author

@travis-mark temporary workaround fixes it.

Thanks for confirming the workaround. I'll take a stab at patching react-native directly to fix the underlying, but it'll be a while as I'm currently busy and unfamiliar with Facebook's submission process.

@Jchang4
Copy link

Jchang4 commented Mar 31, 2023

I posted a workaround to the sample project:

travis-mark/lrn@0158547

The underlying issue should probably be addressed in react-native directly, but I'm less familiar with patching those files directly.

You are an absolute legend! Thank you

@SulthanYS
Copy link

I posted a workaround to the sample project:

travis-mark/lrn@0158547

The underlying issue should probably be addressed in react-native directly, but I'm less familiar with patching those files directly.

@travis-mark Do we anything need to change in xcode to use the workaround

Because, I get this after pod install in ios directory

Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5

[!] Invalid Podfile file: undefined local variable or method `min_ios_version_supported' for #Pod::Podfile:0x00007fd75bcfdc00.

@blakef
Copy link
Contributor

blakef commented Apr 1, 2023

There's a minimum fix that should land next week for 0.69.9, 0.70.8, 0.71.6 and 0.72-RC1.

@blakef blakef added 📮Known Issues This indicates an issue that refers to a bug or limitation of RN that is not currently being handled and removed Needs: Triage 🔍 labels Apr 1, 2023
@blakef
Copy link
Contributor

blakef commented Apr 1, 2023

Closing, please follow progress on the issue under #36739.

@MahmonirB
Copy link

I posted a workaround to the sample project:

travis-mark/lrn@0158547

The underlying issue should probably be addressed in react-native directly, but I'm less familiar with patching those files directly.

It woks well, thanks for sharing it. Just a short question, should we change this workaround for next ios version?

@ghulamrasuldev
Copy link

I posted a workaround to the sample project:
travis-mark/lrn@0158547
The underlying issue should probably be addressed in react-native directly, but I'm less familiar with patching those files directly.

@travis-mark Do we anything need to change in xcode to use the workaround

Because, I get this after pod install in ios directory

Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5

[!] Invalid Podfile file: undefined local variable or method `min_ios_version_supported' for #Pod::Podfile:0x00007fd75bcfdc00.

@travis-mark can you confirm, please?

@SulthanYS
Copy link

I'm stuck on this build failure issue for the past 3 days, Even after I tried some workaround still facing the issue.

@RaederDev
Copy link

After applying the workaround from tavis-mark I had a very strange issue where the pods frameworks script would fail to copy the framework files when archiving a build (building worked fine). Turns out readlink would produce an invalid path and that's why it failed.

I had to modify ios/Pods/Target Support Files/Pods-projectname/Pods-projectname-frameworks.sh and change

if [ -L "${source}" ]; then
    echo "Symlinked..."
    source="$(readlink "${source}")"
fi

to

if [ -L "${source}" ]; then
    echo "Symlinked..."
    source="$(readlink -f "${source}")"
fi

after that archiving worked again.

@travis-mark
Copy link
Author

@travis-mark Do we anything need to change in xcode to use the workaround

Because, I get this after pod install in ios directory

Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5

[!] Invalid Podfile file: undefined local variable or method `min_ios_version_supported' for #Pod::Podfile:0x00007fd75bcfdc00.

No, you should not need xcode changes. min_ios_version_supported is defined in react-native. Can you post your complete Podfile?

@SulthanYS
Copy link

SulthanYS commented Apr 3, 2023

@travis-mark Do we anything need to change in xcode to use the workaround
Because, I get this after pod install in ios directory
Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
[!] Invalid Podfile file: undefined local variable or method `min_ios_version_supported' for #Pod::Podfile:0x00007fd75bcfdc00.

No, you should not need xcode changes. min_ios_version_supported is defined in react-native. Can you post your complete Podfile?

`
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '12.4'
install! 'cocoapods', :deterministic_uuids => false

target 'app_name' do

use_frameworks!

config = use_native_modules!

Flags change depending on the env values.

flags = get_default_flags()

pod 'Firebase', :modular_headers => true
pod 'FirebaseCore', :modular_headers => true
pod 'FirebaseCoreInternal', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
$RNFirebaseAnalyticsWithoutAdIdSupport=true

$RNFirebaseAsStaticFramework = true

permissions_path = '../node_modules/react-native-permissions/ios'

pod 'Permission-Contacts', :path => "#{permissions_path}/Contacts"
pod 'Permission-LocationAccuracy', :path => "#{permissions_path}/LocationAccuracy"
pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways"
pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse"

use_react_native!(
:path => config[:reactNativePath],
# Hermes is now enabled by default. Disable by setting this flag to false.
# Upcoming versions of React Native may rely on get_default_flags(), but
# we make it explicit here to aid in the React Native upgrade process.
:hermes_enabled => true,
:fabric_enabled => flags[:fabric_enabled],
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
:flipper_configuration => FlipperConfiguration.enabled,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)

target 'app_name' do
inherit! :complete
# Pods for testing
end

post_install do |installer|
react_native_post_install(
installer,
# Set mac_catalyst_enabled to true in order to apply patches
# necessary for Mac Catalyst builds
:mac_catalyst_enabled => false
)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end
end
`

@travis-mark
Copy link
Author

@SulthanYS You don't have the workaround added to the file.

@SulthanYS
Copy link

@SulthanYS You don't have the workaround added to the file.

Sorry, I thought you asking without the workaround to glance at the file. wait I'll share it

@SulthanYS
Copy link

@travis-mark , here it is

`
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, min_ios_version_supported
install! 'cocoapods', :deterministic_uuids => false

Force pods to match minimum iOS version for React Native

Fixes build issue on Xcode Cloud where some pods

Use iOS 12 calls despite being set as iOS 11

def __apply_Xcode_14_3_RC_post_install_workaround(installer)
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
current_target = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET']
minimum_target = min_ios_version_supported
if current_target.to_f < minimum_target.to_f
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = minimum_target
end
end
end
end

target 'app_name' do

use_frameworks!

config = use_native_modules!

Flags change depending on the env values.

flags = get_default_flags()

pod 'Firebase', :modular_headers => true
pod 'FirebaseCore', :modular_headers => true
pod 'FirebaseCoreInternal', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
$RNFirebaseAnalyticsWithoutAdIdSupport=true

$RNFirebaseAsStaticFramework = true

permissions_path = '../node_modules/react-native-permissions/ios'

pod 'Permission-Contacts', :path => "#{permissions_path}/Contacts"
pod 'Permission-LocationAccuracy', :path => "#{permissions_path}/LocationAccuracy"
pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways"
pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse"

use_react_native!(
:path => config[:reactNativePath],
# Hermes is now enabled by default. Disable by setting this flag to false.
# Upcoming versions of React Native may rely on get_default_flags(), but
# we make it explicit here to aid in the React Native upgrade process.
:hermes_enabled => true,
:fabric_enabled => flags[:fabric_enabled],
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
:flipper_configuration => FlipperConfiguration.enabled,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)

target 'app_nameTests' do
inherit! :complete
# Pods for testing
end

post_install do |installer|
react_native_post_install(
installer,
# Set mac_catalyst_enabled to true in order to apply patches
# necessary for Mac Catalyst builds
:mac_catalyst_enabled => false
)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
__apply_Xcode_14_3_RC_post_install_workaround(installer)
end
end

`

@travis-mark
Copy link
Author

It looks like min_ios_version_supported was defined in a relatively recent version of react-native. You might try updating react-native or adding

def min_ios_version_supported
return '12.4'
end

near the top of your Podfile.

@itmsroohim
Copy link

It looks like min_ios_version_supported was defined in a relatively recent version of react-native. You might try updating react-native or adding

def min_ios_version_supported
return '12.4'
end

near the top of your Podfile.

I did all the above changes,did pod install and yes it worked for me too.
Thanks @travis-mark

@guilepaul
Copy link

Just change min_ios_version_supported in Xcode for 12.4
Captura de Tela 2023-04-03 às 15 24 23

@SulthanYS
Copy link

After changing all those workarounds, I got an issue in the 'react-native-skia' npm package

image

@thisisgit
Copy link
Contributor

After changing all those workarounds, I got an issue in the 'react-native-skia' npm package

image

It's resolved here: Shopify/react-native-skia#1466

Update your package to the latest version

@perdidao
Copy link

perdidao commented Apr 4, 2023

Ok, this is how I "solved" it for now:

The easier and fastest way to avoid this until the fix is not there is to downgrade the version of your XCode back to 14.2.

Ya'll can do this downloading it from here and moving to the applications folder.
You might need to run the project from XCode before going back to cli

@alroniks
Copy link

alroniks commented Apr 4, 2023

I've done as described here and it solved my issue

@denisoliveira
Copy link

There is an easy fix with CocoaPod. Inside your Podfile change the iOS Deployment Target for the specific package

post_install do |installer|
  react_native_post_install(
    installer,
    # Set `mac_catalyst_enabled` to `true` in order to apply patches
    # necessary for Mac Catalyst builds
    :mac_catalyst_enabled => false
  )
  __apply_Xcode_12_5_M1_post_install_workaround(installer)
  installer.pods_project.targets.each do |target|
    if target.name == "React-Codegen"
      target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.4'
      end
    end
  end
end

@humayunkabir
Copy link

There is an easy fix with CocoaPod. Inside your Podfile change the iOS Deployment Target for the specific package

post_install do |installer|
  react_native_post_install(
    installer,
    # Set `mac_catalyst_enabled` to `true` in order to apply patches
    # necessary for Mac Catalyst builds
    :mac_catalyst_enabled => false
  )
  __apply_Xcode_12_5_M1_post_install_workaround(installer)
  installer.pods_project.targets.each do |target|
    if target.name == "React-Codegen"
      target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.4'
      end
    end
  end
end

This is working for me.

@Tanmay000009
Copy link

There is an easy fix with CocoaPod. Inside your Podfile change the iOS Deployment Target for the specific package

post_install do |installer|
  react_native_post_install(
    installer,
    # Set `mac_catalyst_enabled` to `true` in order to apply patches
    # necessary for Mac Catalyst builds
    :mac_catalyst_enabled => false
  )
  __apply_Xcode_12_5_M1_post_install_workaround(installer)
  installer.pods_project.targets.each do |target|
    if target.name == "React-Codegen"
      target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.4'
      end
    end
  end
end

Just a quick note, if you're new. Make sure to reinstall pods.

In your project root

cd ios && pod install

@alexvazquez
Copy link

Im having the same issue but Im not in a Mac. Im using Expo, so whenever I run Expo Start and run the react native app I get:

`
None of these files exist:

  • node_modules\react-native\Libraries\Components\DatePicker\DatePickerIOS(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json)
  • node_modules\react-native\Libraries\Components\DatePicker\DatePickerIOS\index(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json)
    15 | import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
    16 | import typeof Button from './Libraries/Components/Button';

17 | import typeof DatePickerIOS from './Libraries/Components/DatePicker/DatePickerIOS';
| ^
18 | import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
19 | import typeof FlatList from './Libraries/Lists/FlatList';
20 | import typeof Image from './Libraries/Image/Image';`

Any clue?

@mMarcos208
Copy link

Add in PodFile.

    __apply_Xcode_12_5_M1_post_install_workaround(installer)
    installer.pods_project.targets.each do |target|
      if target.name == "React-Codegen"
        target.build_configurations.each do |config|
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.4'
        end
      end
    end

run pod install

@SulthanYS
Copy link

Does this workaround is suitable for future Xcode updates?

RichardKruemmel added a commit to FaceTheFacts/face-the-facts-app that referenced this issue Apr 25, 2023
@alexander01202
Copy link

@alexvazquez Were you able to solve this?

@dontcry2013
Copy link

Fox expo user, just delete the iOS folder, and do a new build.
It will automatically change the react-native version to the patched version, eg. 0.70.8.

@ZainabShakeel
Copy link

after upgrading xcode to latest version 14.3 and sdk 16.4 this problem start appearing
i fix it by changing IOS development for pods (react-codegen) from 11.0 to latest 12.4
run the app using command and it get fixed.

Screenshot 2023-05-03 at 7 19 56 PM

@ingnitedem237
Copy link

ERROR VirtualizedLists should never be nested inside plain ScrollViews with the same orientation because it can break windowing and other functionality - use another VirtualizedList-backed container instead.
VirtualizedList@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:60566:36
FlatList@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:60028:36
RCTView
View
Rows@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:160294:36
RCTView
View
TableWrapper@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:160711:36
RCTView
View
Table@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:160666:36
RCTView
View
KeyboardAvoidingView@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:65337:36
RCTView
View
ImageBackground@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:65181:36
Background1@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:159928:24
RCTScrollContentView
RCTScrollView
ScrollView@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:62507:36
ScrollView
RCTView
View
RCTSafeAreaView
SafeAreaView
Hmmv@
StaticContainer@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:127531:17
EnsureSingleNavigator@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:124405:24
SceneView@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:127421:22
RCTView
View
RCTView
View
RCTView
View
CardSheet@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:158526:23
RCTView
View
AnimatedComponent@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:59331:38
AnimatedComponentWrapper
PanGestureHandler@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:132872:38
PanGestureHandler@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:131957:34
RCTView
View
AnimatedComponent@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:59331:38
AnimatedComponentWrapper
RCTView
View
Card@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:157966:36
CardContainer@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:158583:34
RNSScreen
AnimatedComponent@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:59331:38
AnimatedComponentWrapper
MaybeFreeze@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:157476:23
Screen@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:157532:36
MaybeScreen@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:157335:24
RNSScreenContainer
ScreenContainer@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:157656:31
MaybeScreenContainer@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:157310:23
RCTView
View
Background@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:130365:21
CardStack@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:156519:36
RNCSafeAreaProvider
SafeAreaProvider@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:130809:24
SafeAreaProviderCompat@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:131740:24
RCTView
View
GestureHandlerRootView
StackView@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:129830:36
PreventRemoveProvider@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:126211:25
NavigationContent@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:127214:22
@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:127226:27
StackNavigator@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:129705:18
StackNavigator
EnsureSingleNavigator@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:124405:24
BaseNavigationContainer@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:122978:28
ThemeProvider@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:128413:21
NavigationContainerInner@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:128289:26
ThemeProvider@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:100078:38
RCTView
View
Portal.Host@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:110496:36
Provider@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:102325:75
App
ExpoRoot@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:98759:22
RCTView
View
DevAppContainer@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:98530:36
RCTView
View
AppContainer@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:65835:36
main(RootComponent)@http://192.168.1.130:19000/node_modules/expo/AppEntry.bundle:71748:28
Error: Unable to resolve module ./Libraries/Components/DatePicker/DatePickerIOS from /Users/ingenieurngnitedem/Desktop/91B/node_modules/react-native/index.js:

None of these files exist:

  • node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json)
  • node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS/index(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json)
    15 | import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
    16 | import typeof Button from './Libraries/Components/Button';

17 | import typeof DatePickerIOS from './Libraries/Components/DatePicker/DatePickerIOS';
| ^
18 | import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
19 | import typeof FlatList from './Libraries/Lists/FlatList';
20 | import typeof Image from './Libraries/Image/Image';
at ModuleResolver.resolveDependency (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:136:15)
at DependencyGraph.resolveDependency (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/node-haste/DependencyGraph.js:231:43)
at Object.resolve (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/lib/transformHelpers.js:129:24)
at resolve (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:33)
at /Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/DeltaBundler/traverseDependencies.js:412:26
at Array.reduce ()
at resolveDependencies (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/DeltaBundler/traverseDependencies.js:411:33)
at processModule (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/DeltaBundler/traverseDependencies.js:140:31)
at async addDependency (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
at async Promise.all (index 2)
at async processModule (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/DeltaBundler/traverseDependencies.js:198:5)
at async addDependency (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
at async Promise.all (index 1)
at async processModule (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/DeltaBundler/traverseDependencies.js:198:5)
at async traverseDependenciesForSingleFile (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/DeltaBundler/traverseDependencies.js:131:3)
at async Promise.all (index 0)
Error: Unable to resolve module ./Libraries/Components/DatePicker/DatePickerIOS from /Users/ingenieurngnitedem/Desktop/91B/node_modules/react-native/index.js:

None of these files exist:

  • node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json)
  • node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS/index(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json)
    15 | import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
    16 | import typeof Button from './Libraries/Components/Button';

17 | import typeof DatePickerIOS from './Libraries/Components/DatePicker/DatePickerIOS';
| ^
18 | import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
19 | import typeof FlatList from './Libraries/Lists/FlatList';
20 | import typeof Image from './Libraries/Image/Image';
at ModuleResolver.resolveDependency (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:136:15)
at DependencyGraph.resolveDependency (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/node-haste/DependencyGraph.js:231:43)
at Object.resolve (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/lib/transformHelpers.js:129:24)
at resolve (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:33)
at /Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/DeltaBundler/traverseDependencies.js:412:26
at Array.reduce ()
at resolveDependencies (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/DeltaBundler/traverseDependencies.js:411:33)
at processModule (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/DeltaBundler/traverseDependencies.js:140:31)
at async addDependency (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
at async Promise.all (index 2)
at async processModule (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/DeltaBundler/traverseDependencies.js:198:5)
at async addDependency (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
at async Promise.all (index 1)
at async processModule (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/DeltaBundler/traverseDependencies.js:198:5)
at async traverseDependenciesForSingleFile (/Users/ingenieurngnitedem/Desktop/91B/node_modules/metro/src/DeltaBundler/traverseDependencies.js:131:3)
at async Promise.all (index 0)

@ingnitedem237
Copy link

I need help please I alway have this warning when I open one page of my app how can I fix it please even if the app works I don't understand this warning

@imraann0
Copy link

imraann0 commented May 8, 2023

Is there a workaround for this using expo

@imraann0
Copy link

imraann0 commented May 8, 2023

Fox expo user, just delete the iOS folder, and do a new build.
It will automatically change the react-native version to the patched version, eg. 0.70.8.

I am using expo but do not see iOS folder I currently build with eas, pleas help.

@Kudo
Copy link
Contributor

Kudo commented May 8, 2023

@imraann0 what's your expo version?

@imraann0
Copy link

imraann0 commented May 8, 2023

@Kudo I am using 47.0

@Kudo
Copy link
Contributor

Kudo commented May 8, 2023

@imraann0 please try to upgrade expo@47.0.14 and run prebuild --clean if necessary. that should work for you.

@hmh84
Copy link

hmh84 commented May 10, 2023

I have updated expo to 47.0.14, react-native to 0.70.8, deleted node_modules/, ran npm install, ran npx expo prebuild --clean and npx expo start -c as suggested in the previous comments.

I run the expo cli on a Windows machine and connect to it with the Expo Go app v2.28.9 on my iPhone 14 Pro running iOS 16.4.1 (a)

I'm still getting the error..

My package.json dependencies
  "dependencies": {
      "@expo-google-fonts/open-sans": "^0.2.2",
      "@expo/config-plugins": "^5.0.4",
      "@expo/metro-config": "^0.5.2",
      "@expo/vector-icons": "^13.0.0",
      "@gorhom/bottom-sheet": "^4.4.5",
      "@react-native-async-storage/async-storage": "~1.17.11",
      "@react-native-community/datetimepicker": "6.5.2",
      "@react-navigation/bottom-tabs": "^6.4.0",
      "@react-navigation/core": "^6.4.0",
      "@react-navigation/drawer": "^6.5.0",
      "@react-navigation/material-top-tabs": "^6.3.0",
      "@react-navigation/native": "^6.0.13",
      "@react-navigation/stack": "^6.3.4",
      "@sentry/react-native": "4.9.0",
      "@tanstack/react-query": "^4.16.1",
      "axios": "^0.21.1",
      "axios-auth-refresh": "^3.3.4",
      "buffer": "^6.0.3",
      "color": "^4.2.3",
      "csstype": "^3.1.1",
      "date-fns": "^2.29.3",
      "expo": "^47.0.14",
      "expo-application": "~5.0.1",
      "expo-auth-session": "~3.8.0",
      "expo-build-properties": "^0.4.1",
      "expo-camera": "~13.1.0",
      "expo-cli": "^6.0.8",
      "expo-constants": "~14.0.2",
      "expo-dev-client": "~2.0.1",
      "expo-device": "~5.0.0",
      "expo-document-picker": "~11.0.1",
      "expo-file-system": "~15.1.1",
      "expo-firebase-analytics": "~8.0.0",
      "expo-font": "~11.0.1",
      "expo-google-app-auth": "~8.3.0",
      "expo-image-manipulator": "~11.0.0",
      "expo-image-picker": "~14.0.2",
      "expo-linear-gradient": "~12.0.1",
      "expo-linking": "~3.3.0",
      "expo-local-authentication": "~13.0.2",
      "expo-network": "~5.0.0",
      "expo-notifications": "~0.17.0",
      "expo-print": "~12.0.0",
      "expo-random": "~13.0.0",
      "expo-secure-store": "~12.0.0",
      "expo-sharing": "~11.0.1",
      "expo-splash-screen": "~0.17.5",
      "expo-status-bar": "~1.4.2",
      "expo-updates": "~0.15.6",
      "expo-web-browser": "~12.0.0",
      "js-base64": "^3.7.3",
      "lottie-react-native": "5.1.4",
      "mime": "^3.0.0",
      "react": "18.1.0",
      "react-dom": "18.1.0",
      "react-hook-form": "^7.39.4",
      "react-native": "0.70.8",
      "react-native-alert-async": "^1.0.5",
      "react-native-app-link": "^1.0.1",
      "react-native-calendars": "^1.1264.0",
      "react-native-dynamic-vector-icons": "^1.2.0",
      "react-native-expo-image-cache": "^4.1.0",
      "react-native-gesture-handler": "~2.8.0",
      "react-native-google-drive-api-wrapper": "github:jaybuangan/react-native-google-drive-api-wrapper",
      "react-native-in-app-notification": "^3.2.0",
      "react-native-keyboard-aware-scroll-view": "^0.9.5",
      "react-native-pager-view": "6.0.1",
      "react-native-paper": "^4.12.5",
      "react-native-reanimated": "~2.12.0",
      "react-native-redash": "^16.1.1",
      "react-native-render-html": "^6.3.4",
      "react-native-safe-area-context": "4.4.1",
      "react-native-screens": "~3.18.0",
      "react-native-svg": "13.4.0",
      "react-native-svg-transformer": "^1.0.0",
      "react-native-tab-view": "^3.3.0",
      "react-native-use-persist-storage": "^1.0.2",
      "react-native-view-shot": "3.4.0",
      "react-native-webview": "11.23.1",
      "react-navigation-collapsible": "^5.10.2",
      "rrule": "^2.7.1",
      "sentry-expo": "~6.0.0"
  },
  "devDependencies": {
      "@babel/core": "^7.20.2",
      "@babel/plugin-proposal-numeric-separator": "^7.18.6",
      "@react-native-community/eslint-config": "3.2.0",
      "@types/accounting": "^0.4.2",
      "@types/color": "^3.0.2",
      "@types/lodash": "^4.14.171",
      "@types/mime": "^3.0.1",
      "@types/react": "~18.0.24",
      "@types/react-native": "~0.70.6",
      "@types/react-native-app-link": "^1.0.0",
      "@types/react-native-calendars": "^1.505.4",
      "@types/react-native-vector-icons": "^6.4.13",
      "babel-eslint": "^10.1.0",
      "babel-plugin-inline-dotenv": "^1.7.0",
      "babel-plugin-module-resolver": "^4.1.0",
      "babel-preset-expo": "~9.2.2",
      "eslint": "^8.28.0",
      "eslint-config-prettier": "^8.5.0",
      "eslint-config-universe": "^11.1.1",
      "eslint-plugin-import": "^2.26.0",
      "eslint-plugin-import-helpers": "^1.3.1",
      "eslint-plugin-jsx-a11y": "^6.6.1",
      "eslint-plugin-prettier": "^4.2.1",
      "eslint-plugin-react": "^7.31.11",
      "jest-expo": "^47.0.1",
      "prettier": "^2.7.1",
      "typescript": "^4.9.3"
  },

I'd appreciate any advice, thanks.

@Shail-Patel-1
Copy link

after upgrading xcode to latest version 14.3 and sdk 16.4 this problem start appearing i fix it by changing IOS development for pods (react-codegen) from 11.0 to latest 12.4 run the app using command and it get fixed.

Screenshot 2023-05-03 at 7 19 56 PM

Thank you so much this works like charm

@Santosl2
Copy link

Santosl2 commented Jun 6, 2023

I have updated expo to 47.0.14, react-native to 0.70.8, deleted node_modules/, ran npm install, ran npx expo prebuild --clean and npx expo start -c as suggested in the previous comments.

I run the expo cli on a Windows machine and connect to it with the Expo Go app v2.28.9 on my iPhone 14 Pro running iOS 16.4.1 (a)

I'm still getting the error..

My package.json dependencies
I'd appreciate any advice, thanks.

Me too... Do you it achieved the fix?

@hmh84
Copy link

hmh84 commented Jun 6, 2023

I have updated expo to 47.0.14, react-native to 0.70.8, deleted node_modules/, ran npm install, ran npx expo prebuild --clean and npx expo start -c as suggested in the previous comments.
I run the expo cli on a Windows machine and connect to it with the Expo Go app v2.28.9 on my iPhone 14 Pro running iOS 16.4.1 (a)
I'm still getting the error..
My package.json dependencies
I'd appreciate any advice, thanks.

Me too... Do you it achieved the fix?

@Santosl2 I ended up just updating to Expo v48. I guess there's a fix in one of the versions in between but not sure which. If you're unable to move to 48, perhaps you could try the last version of Expo 47.

@Santosl2
Copy link

Santosl2 commented Jun 6, 2023

I have updated expo to 47.0.14, react-native to 0.70.8, deleted node_modules/, ran npm install, ran npx expo prebuild --clean and npx expo start -c as suggested in the previous comments.
I run the expo cli on a Windows machine and connect to it with the Expo Go app v2.28.9 on my iPhone 14 Pro running iOS 16.4.1 (a)
I'm still getting the error..
My package.json dependencies
I'd appreciate any advice, thanks.

Me too... Do you it achieved the fix?

@Santosl2 I ended up just updating to Expo v48. I guess there's a fix in one of the versions in between but not sure which. If you're unable to move to 48, perhaps you could try the last version of Expo 47.

Thx dude! Works fine now

@pavelmuratev
Copy link

We were using react-native@69.* and only updating to 69.9 did not fix the issue. The only fix that helped was adding
-no-verify-emitted-module-interface flag in Podfile:

  installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
          config.build_settings['OTHER_SWIFT_FLAGS'] ||= ['$(inherited)', '-no-verify-emitted-module-interface']
      end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📮Known Issues This indicates an issue that refers to a bug or limitation of RN that is not currently being handled Resolution: Duplicate
Projects
None yet
Development

No branches or pull requests