Skip to content

"pnpm run ios" reports an error #877

@yujingwyh

Description

@yujingwyh

I have searched open and closed issues for this issue.

  • I have searched open and closed issues.

I have read and understood the license (link below).

  • I have read and understood the license.

Minimal reproducible example

none

What platform(s) does this occur on?

iOS

Did you reproduce on a real device or emulator / simulator?

Select an option

Steps to reproduce

npm run ios
Users/yujingwyh/Documents/company/f2e-bdms-rn/node_modules/@react-native-documents/picker/ios/swift/PickerBase.swift:40:48: converting function value of type '@mainactor (URL) throws -> DocumentMetadataBuilder?' to '(URL) throws -> DocumentMetadataBuilder?' loses global actor 'MainActor'

If the issue is related to specific file(s), I have linked the files so that others can reproduce exactly what I see.

  • I have attached files necessary to reproduce the problem (if applicable).

Stacktrace of the crash (if applicable)

error Failed to build ios project. "xcodebuild" exited with error code '65'. To debug build logs further, consider building your app with Xcode.app, by opening 'f2eBdmsRn.xcworkspace'.
 ELIFECYCLE  Command failed with exit code 1.

❌  /Users/yujingwyh/Documents/company/f2e-bdms-rn/node_modules/@react-native-documents/picker/ios/swift/PickerBase.swift:40:48: converting function value of type '@MainActor (URL) throws -> DocumentMetadataBuilder?' to '(URL) throws -> DocumentMetadataBuilder?' loses global actor 'MainActor'

      let documentsInfo = urls.compactMap(self.createDocumentMetadata).compactMap { $0.build() }
                                               ^



❌  /Users/yujingwyh/Documents/company/f2e-bdms-rn/node_modules/@react-native-documents/picker/ios/swift/PickerBase.swift:41:12: main actor-isolated property 'promiseWrapper' can not be referenced from a Sendable closure

      self.promiseWrapper.resolve(documentsInfo)

Your computer environment

warn Package @ant-design/icons-react-native contains invalid configuration: "dependency.assets" is not allowed. Please verify it's properly linked using "npx react-native config" command and contact the package maintainers about this.
info Fetching system and libraries information...
System:
  OS: macOS 26.0.1
  CPU: (10) arm64 Apple M1 Pro
  Memory: 3.16 GB / 32.00 GB
  Shell:
    version: 4.0.2
    path: /opt/homebrew/bin/fish
Binaries:
  Node:
    version: 20.18.3
    path: ~/.nvm/versions/node/v20.18.3/bin/node
  Yarn: Not Found
  npm:
    version: 10.8.2
    path: ~/.nvm/versions/node/v20.18.3/bin/npm
  Watchman:
    version: 2025.04.28.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.5
      - iOS 18.5
      - macOS 15.5
      - tvOS 18.5
      - visionOS 2.5
      - watchOS 11.5
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.3 AI-243.24978.46.2431.13208083
  Xcode:
    version: 16.4/16F6
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.15
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 19.0.0
    wanted: 19.0.0
  react-native:
    installed: 0.78.2
    wanted: 0.78.2
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

info React Native v0.82.1 is now available (your project is running on v0.78.2).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.82.1
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.78.2&to=0.82.1
info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions