ptmt / react-native-macos

[deprecated in favor of https://microsoft.github.io/react-native-windows/] React Native for macOS is an experimental fork for writing desktop apps using Cocoa
MIT License
11.25k stars 429 forks source link

Unable to start macOS app created from the template (without manual pod installation) #253

Closed Simek closed 4 years ago

Simek commented 4 years ago

🐛 Bug Report

I was unable to start macOS app from the Terminal or XCode. The app was created from the template and I have follow the Getting Started guide steps.

To Reproduce

Steps to reproduce the behavior:

  1. npx react-native init macOSWorkbench --version 0.61
  2. cd macOSWorkbench
  3. npx react-native-macos-init
  4. npx react-native run-macos

Expected Behavior

macOS app started successfully.

To fix this I have to run pod install manually in the macos directory before the build. I don't know if some code changes are require or just the Getting Started guide should be updated.

Environment

Error log

simek@MacBookPro macOSWorkbench % npx react-native run-macos --verbose 
info Found Xcode project "macOSWorkbench.xcodeproj"
info Building (using "xcodebuild -project macOSWorkbench.xcodeproj -configuration Debug -scheme macOSWorkbench-macOS")
debug Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project macOSWorkbench.xcodeproj -configuration Debug -scheme macOSWorkbench-macOS

debug note: Using new build system

debug note: Building targets in parallel

debug note: Planning build

debug note: Using build description from disk

debug error: /Users/simek/projects/macOSWorkbench/macos/Pods/Target Support Files/Pods-Shared-macOSWorkbench-macOS/Pods-Shared-macOSWorkbench-macOS.debug.xcconfig: unable to open file (in target "macOSWorkbench-macOS" in project "macOSWorkbench") (in target 'macOSWorkbench-macOS' from project 'macOSWorkbench')

debug error: /Users/simek/projects/macOSWorkbench/macos/Pods/Target Support Files/Pods-Shared-macOSWorkbench-macOS/Pods-Shared-macOSWorkbench-macOS.debug.xcconfig: unable to open file (in target "macOSWorkbench-macOS" in project "macOSWorkbench") (in target 'macOSWorkbench-macOS' from project 'macOSWorkbench')

debug error: /Users/simek/projects/macOSWorkbench/macos/Pods/Target Support Files/Pods-Shared-macOSWorkbench-macOS/Pods-Shared-macOSWorkbench-macOS.debug.xcconfig: unable to open file (in target "macOSWorkbench-macOS" in project "macOSWorkbench") (in target 'macOSWorkbench-macOS' from project 'macOSWorkbench')

debug 

error Failed to build macOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening macOSWorkbench.xcodeproj.
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project macOSWorkbench.xcodeproj -configuration Debug -scheme macOSWorkbench-macOS

note: Using new build system
note: Building targets in parallel
note: Planning build
note: Using build description from disk
error: /Users/simek/projects/macOSWorkbench/macos/Pods/Target Support Files/Pods-Shared-macOSWorkbench-macOS/Pods-Shared-macOSWorkbench-macOS.debug.xcconfig: unable to open file (in target "macOSWorkbench-macOS" in project "macOSWorkbench") (in target 'macOSWorkbench-macOS' from project 'macOSWorkbench')
error: /Users/simek/projects/macOSWorkbench/macos/Pods/Target Support Files/Pods-Shared-macOSWorkbench-macOS/Pods-Shared-macOSWorkbench-macOS.debug.xcconfig: unable to open file (in target "macOSWorkbench-macOS" in project "macOSWorkbench") (in target 'macOSWorkbench-macOS' from project 'macOSWorkbench')
error: /Users/simek/projects/macOSWorkbench/macos/Pods/Target Support Files/Pods-Shared-macOSWorkbench-macOS/Pods-Shared-macOSWorkbench-macOS.debug.xcconfig: unable to open file (in target "macOSWorkbench-macOS" in project "macOSWorkbench") (in target 'macOSWorkbench-macOS' from project 'macOSWorkbench')

** BUILD FAILED **