Skip to content

Setup async-storage for macOS #587

Closed
@nikgraf

Description

@nikgraf

Current behavior

I followed the steps here https://react-native-async-storage.github.io/async-storage/docs/link/#macos

Everything until the 4th step is clear. Then I added the libRNCAsyncStorage-macOS.a in the Build Phases
of the target desktop-macOS.

When I run npx react-native run-macos I get this error. What's odd is is that this is referencing the ios directory.

/node_modules/@react-native-async-storage/async-storage/ios/RNCAsyncStorage.h:10:9: fatal error: 'React/RCTBridgeModule.h' file not found
#import <React/RCTBridgeModule.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Expected behavior

Get

Repro steps

Can provide an example repo in case the above description doesn't help.

Environment

  • Platforms tested:
    • Android
    • iOS
    • macOS
    • Windows
  • AsyncStorage version: 1.15.2
  • Expo version:
  • Environment:
System:
    OS: macOS 11.1
    CPU: (8) x64 Apple M1
    Memory: 294.54 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.15.1 - ~/.nvm/versions/node/v14.15.1/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 6.14.8 - ~/.nvm/versions/node/v14.15.1/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.10.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
    Android SDK: Not Found
  IDEs:
    Android Studio: Not Found
    Xcode: 12.4/12D4e - /usr/bin/xcodebuild
  Languages:
    Java: Not Found
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1 
    react-native: 0.63.4 => 0.63.4 
    react-native-macos: ^0.63.0-0 => 0.63.23 
  npmGlobalPackages:
    *react-native*: Not Found
  • Logs/Errors that may be relevant:

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