facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
116.49k stars 24.01k forks source link

Not able to proceed with TextInput || iOS release #41801

Open HarshitMadhav opened 6 months ago

HarshitMadhav commented 6 months ago

New Version

0.72.0

Old Version

0.68.5

Build Target(s)

iOS simulator release mode

Output of react-native info

System: OS: macOS 14.1.1 CPU: (8) arm64 Apple M1 Pro Memory: 77.88 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 18.18.2 - ~/.nvm/versions/node/v18.18.2/bin/node Yarn: 1.22.18 - /usr/local/bin/yarn npm: 9.8.1 - ~/.nvm/versions/node/v18.18.2/bin/npm Watchman: 2022.10.03.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0 Android SDK: Not Found IDEs: Android Studio: 2021.3 AI-213.7172.25.2113.9123335 Xcode: 15.0.1/15A507 - /usr/bin/xcodebuild Languages: Java: 17.0.7 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.2.0 => 18.2.0 react-native: 0.72.0 => 0.72.0 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Issue and Reproduction Steps

Hi! I have updated the react native version from 0.68.5 to 0.72.0 the flipper and other dependencies are updated successfully.

I am facing this issue

-[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID

while I am running the iOS app in release mode in Simulator (iPhone 15 - iOS 17.0), due to which I am not able to proceed further in the application.

The debug build works fine.

Attached screenshot is of the log that I am getting while clicking on a button after giving input to a TextInput

Screenshot 2023-12-05 at 5 05 23 PM
github-actions[bot] commented 6 months ago
:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.
hcac10 commented 5 months ago

also dealing with this issue. I believe the same issue has been addressed on Apple forum https://forums.developer.apple.com/forums/thread/731700 and on StackOverflow https://stackoverflow.com/questions/77165006/searchable-swiftui-on-ios-17-cause-an-error-invalid-numeric-value but no solution has been proposed yet. I get the same log when I click a TextInput on the simulator.

RN 72.5 Expo 49.0.13

squareborg commented 4 months ago

Getting this too, in release mode I can't input text, works fine in development

Expo 50 RN 0.73.2

dancosta-fed commented 4 months ago

Also getting this: [RemoteTextInput] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID

Expo 50.0.4 RN 0.73.2

SamiAljord commented 4 months ago

Also getting this: [RemoteTextInput] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID

Expo 50.0.4 RN 0.73.2

same

RichardSchleger commented 4 months ago

Also getting this: [RemoteTextInput] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID

Expo 50.0.4 RN 0.73.2

same

geekabhinavp commented 3 months ago

anyone looking into this issue?

justinflint commented 3 months ago

@geekabhinavp I'm facing the same issue in .NET MAUI. Got some folks looking into it - I'll try to post helpful content here once the solution is found.

coyksdev commented 3 months ago

Also getting this: [RemoteTextInput] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID

Expo 50.0.4 RN 0.73.2

same

webdiego commented 3 months ago

Same

UnknownUserdot commented 3 months ago

Bummer, I have this same issue in my app when I try to use my "sell" button in the simulator which should subtract from an array I made..hopefully we can solve it.

mphill commented 3 months ago

You are likely destroying/recreating the component on re-rendering. Hard to say for sure what the issue is without any reproduction code.

If you are doing something like this where you define an input inline, i.e.

App() {
 const InlineInput = () => <TextInput /> // Move this outside of the function definition.

  return (
   <InlineInput />
  )
}

You will see this error.

Previous versions of RN/iOS didn't seem to mind this, but now it's causing problems. My opinion is this is not a bug, but an implementation issue. Native devs see this too when they use LazyVStacks that recycle.

Hope that helps

boltlessengineer commented 3 months ago

Same thing happens to me even with HTML textarea/inputs. Tried with webview element in as root level (app/_layout.tsx) but it didn't help.

joshuagodwin commented 2 months ago

same issue, "react-native": "0.71.14", expo 0.7.3 even if nothing but textinput surrounded by view with no other code will still get error when press on text input in simulator: [RemoteTextInput] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID

update: worked with reset to metro.

CRIIPI11 commented 2 months ago

@joshuagodwin can you elaborate your solution please, currently having the same issue in development

lesimoes commented 1 month ago

Seems that issue only happens when you use physical keyboard on ios simulator, try to use "Software keyboard" from simulator. Menu bar > I/O > Keyboard > Toggle Software Keyboard.

hassanad94 commented 1 month ago

Seems that issue only happens when you use physical keyboard on ios simulator, try to use "Software keyboard" from simulator. Menu bar > I/O > Keyboard > Toggle Software Keyboard.

I tried it... It still remain... But if its just a development warning, then no problem. :)