react-native-permissions icon indicating copy to clipboard operation
react-native-permissions copied to clipboard

iOS 26 Beta - Crash in RNPermissionHandlerMicrophone when requesting currentStatus

Open rastapasta opened this issue 6 months ago • 1 comments

Before submitting a new issue

  • [x] I tested using the latest version of the library, as the bug might be already fixed.
  • [x] I tested using a supported version of react native.
  • [x] I checked for possible duplicate issues, with possible answers.

Bug summary

In preparation to check my apps' compatibility with the upcoming iOS 26, rebuildig them was successful with Xcode 26 beta but resulting in a crash during runtime as soon as

checkMultiple([PERMISSIONS.IOS.MICROPHONE]) or check(PERMISSIONS.IOS.MICROPHONE)

is called.

Image

Library version

5.4.1

Environment info

System:
  OS: macOS 15.5
  CPU: (8) arm64 Apple M2
  Memory: 141.83 MB / 24.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 23.11.0
    path: /usr/local/bin/node
  Yarn:
    version: 1.22.22
    path: /usr/local/bin/yarn
  npm:
    version: 11.3.0
    path: /usr/local/bin/npm
  Watchman:
    version: 2025.05.26.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /Users/rastapasta/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 25.0
      - iOS 26.0
      - macOS 26.0
      - tvOS 26.0
      - visionOS 26.0
      - watchOS 26.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.23726.103.2422.13016713
  Xcode:
    version: 26.0/17A5241e
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.15
    path: /usr/bin/javac
  Ruby:
    version: 3.3.3
    path: /Users/rastapasta/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 18.0.0
    wanted: ^18.0.0
  react:
    installed: 19.0.0
    wanted: 19.0.0
  react-native:
    installed: 0.79.3
    wanted: 0.79.3
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Steps to reproduce

  1. Create vanilla RN project
  2. Integrate react-native-permissions, setup permissions in Podfile and set NSMicrophoneUsageDescription
  3. call check(PERMISSIONS.IOS.MICROPHONE)

Reproducible sample code

check(PERMISSIONS.IOS.MICROPHONE)
checkMultiple([PERMISSIONS.IOS.MICROPHONE])

rastapasta avatar Jun 12 '25 17:06 rastapasta

Probably a regression on their side. I heard the beta is super laggy / instable, we need to wait for next updates.

zoontek avatar Jun 13 '25 10:06 zoontek

@zoontek You were more than right - just retested on iOS 26 beta 3 and all works smooth now as expected. Closing ticket due to no action needed.

rastapasta avatar Jul 17 '25 12:07 rastapasta