Skip to content

Cant initialize mac app. Complains about something called "visionos" #2506

Open
@shayneoneill

Description

@shayneoneill

Environment

react-native -v:
Doesnt seem to be such a command? (Forgive me, I'm a beginner here....)

npm ls react-native-macos:

[email protected] /(location redacted/
└── [email protected]

node -v:

v18.18.2

npm -v:

9.8.1

yarn --version:

1.22.19

xcodebuild -version:

Xcode 16.2

Steps to reproduce the bug

As per website .

In a fresh dir

npx @react-native-community/cli init --version 0.78

then

cd directory

then

npx react-native-macos-init

then as per on screen instructions

pod install --project-directory=macos

Expected Behavior

I presume it would install the macos dependencies?

Actual Behavior

The whole thing catches on fire with the following error

[Codegen] Done.
Analyzing dependencies
Fetching podspec for DoubleConversion from ../node_modules/react-native-macos/third-party-podspecs/DoubleConversion.podspec
Fetching podspec for RCT-Folly from ../node_modules/react-native-macos/third-party-podspecs/RCT-Folly.podspec
[!] Failed to load 'React-CoreModules' podspec:
[!] Invalid React-CoreModules.podspec file: undefined method `visionos' for #<Pod::Specification name="React-CoreModules">.

from /t/node_modules/react-native-macos/React/CoreModules/React-CoreModules.podspec:52

-------------------------------------------

s.macos.exclude_files = exclude_files

s.visionos.exclude_files = exclude_files

s.tvos.exclude_files = exclude_files

I've tried a few different iterations of this, same result. I have no idea what visionos is. I think its apples vr headset? Not sure how its relevant to the task at hand :(

Reproducible Demo

Just follow the instructions on your website here: https://microsoft.github.io/react-native-windows/docs/rnm-getting-started

Additional context

Bit of a show stopper. I found some references online to fixes. None work and all seem to involve monkeying around patching things in node_modules... which doesnt seem very amenable to CI.

Tried it on the work computer too. Same result. Perhaps the documentation is out of date?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions