Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn start:macos / Xcode build error too #2142

Open
jhay06 opened this issue Jun 25, 2024 · 1 comment
Open

yarn start:macos / Xcode build error too #2142

jhay06 opened this issue Jun 25, 2024 · 1 comment
Labels
bug Something isn't working Needs: Triage 🔍

Comments

@jhay06
Copy link

jhay06 commented Jun 25, 2024

Environment

react-native -v = can't query by command , but in package.json its 
    "react-native": "0.71", but in npm ls react-native the complete version is 0.71.19
npm ls react-native-macos =  react-native-macos@0.71.36
node -v: - v22.3.0
npm -v: - v10.8.1
yarn --version: - v1.22.22
xcodebuild -version: Xcode 15.2
Build version 15C500b

Steps to reproduce the bug

  1. i just npx react-native-macos-init on my existing react-native package
  2. the command tells how to run it after init
    """
    Run instructions for macOS:
    • npx react-native run-macos
    • or -
      • Open macos/cdms-app.xcworkspace in Xcode or run "xed -b macos"
      • yarn start:macos
      • Hit the Run button
      """

then i run npx react-native run-macos , it fails with the error bellow
"""
CompileC /Users/xxx/Library/Developer/Xcode/DerivedData/xxxxx-apslssjfyuyzkdffepeastytryrj/Build/Intermediates.noindex/Pods.build/Debug/Expo.build/Objects-normal/x86_64/EXAppDefinesLoader.o /Users/xxx/project/xxxxx/build/metro/node_modules/expo/ios/EXAppDefinesLoader.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Expo' from project 'Pods')
(1 failure)

"""
then i tried to open the xcode project and hit run and the got the error below

/Users/xxx/project/xxxxxx/build/metro/node_modules/expo/ios/EXAppDefinesLoader.m:5:9 'ExpoModulesCore/ExpoModulesCore.h' file not found

then i tried the yarn start:macos as per the run instruction . but yarn start:macos was not found
warning ../../../package.json: No license field
error Command "start:macos" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Expected Behavior

it will start the desktop app

Actual Behavior

error nothing happens

Reproducible Demo

No response

Additional context

No response

@jhay06 jhay06 added the bug Something isn't working label Jun 25, 2024
@Saadnajmi
Copy link
Collaborator

It looks like you're using Expo. Expo doesn't officially support React Native macOS out of the box, so there' likely additional work to get it running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Needs: Triage 🔍
Projects
None yet
Development

No branches or pull requests

2 participants