nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.75k stars 2.37k forks source link

Expo iOS build failure: Failed to build iOS project. "xcodebuild" exited with error code 65. #20052

Open kamaldeepj opened 1 year ago

kamaldeepj commented 1 year ago

Current Behavior

the run-ios command fails for my Expo app with the following error :

› Compiling react-native Pods/React-cxxreact » JSBigString.cpp
› Compiling react-native Pods/React-cxxreact » Instance.cpp

❌  (../../node_modules/react-native/ReactCommon/cxxreact/Instance.cpp:24:10)

  22 | #include <folly/MoveWrapper.h>
  23 | #include <folly/json.h>
> 24 | #include <react/debug/react_native_assert.h>
     |          ^ 'react/debug/react_native_assert.h' file not found
  25 | 
  26 | #include <glog/logging.h>
  27 | 

› Signing   react-native Pods/RCT-Folly » folly.framework
› Preparing @react-native-firebase/firestore Pods/gRPC-C++ » gRPC-C++-Info.plist
› Preparing react-native Pods/React-utils » React-utils-Info.plist
› Compiling react-native Pods/React-utils » ManagedObjectWrapper.mm
› Preparing react-native Pods/React-jsi » React-jsi-Info.plist
› Compiling react-native Pods/React-utils » RunLoopObserver.cpp

❌  (../../node_modules/react-native/ReactCommon/react/utils/RunLoopObserver.cpp:10:10)

   8 | #include "RunLoopObserver.h"
   9 | 
> 10 | #include <react/debug/react_native_assert.h>
     |          ^ 'react/debug/react_native_assert.h' file not found
  11 | 
  12 | namespace facebook {
  13 | namespace react {

› Signing   react-native Pods/React-jsi » jsi.framework
› Preparing react-native Pods/React-runtimescheduler » React-runtimescheduler-Info.plist
› Compiling react-native Pods/React-runtimescheduler » React_runtimescheduler_vers.c
› Compiling react-native Pods/React-runtimescheduler » Task.cpp
› Compiling react-native Pods/React-runtimescheduler » RuntimeSchedulerCallInvoker.cpp

› 2 error(s), and 19 warning(s)

CommandError: Failed to build iOS project. "xcodebuild" exited with error code 65.

 >  NX   1

 —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 >  NX   Ran target run-ios for project fleek-customer and 2 task(s) they depend on (1m)

    ✖    1/3 failed
    ✔    2/3 succeeded [0 read from cache]

I started facing this issue after upgrading to React Native version 0.72.6 The same Expo app runs without any issues outside of Nx monorepo.

Expected Behavior

Build successfully.

GitHub Repo

No response

Steps to Reproduce

  1. Execute task for latest version of Expo app yarn nx run my-app:run-ios

Nx Report

yarn run v1.22.19
$ /Users/kamaldeepjayaprakash/Documents/fleek/code/fleek-monorepo/node_modules/.bin/nx report

 >  NX   Report complete - copy this into the issue template

   Node   : 20.5.1
   OS     : darwin-arm64
   yarn   : 1.22.19

   nx                 : 16.8.1
   @nx/js             : 16.8.1
   @nx/jest           : 16.8.1
   @nx/linter         : 16.8.1
   @nx/workspace      : 16.8.1
   @nx/cypress        : 16.8.1
   @nx/detox          : 16.8.1
   @nx/devkit         : 16.8.1
   @nx/eslint-plugin  : 16.8.1
   @nx/expo           : 16.8.1
   @nx/next           : 16.8.1
   @nx/react          : 16.8.1
   @nrwl/tao          : 16.8.1
   @nx/web            : 16.8.1
   @nx/webpack        : 16.8.1
   nx-cloud           : 16.4.0
   typescript         : 5.1.6

Done in 0.50s.

Failure Logs

No response

Package Manager Version

No response

Operating System

Additional Information

No response

github-actions[bot] commented 6 months ago

This issue has been automatically marked as stale because it hasn't had any activity for 6 months. Many things may have changed within this time. The issue may have already been fixed or it may not be relevant anymore. If at this point, this is still an issue, please respond with updated information. It will be closed in 21 days if no further activity occurs. Thanks for being a part of the Nx community! 🙏

github-actions[bot] commented 1 week ago

This issue has been automatically marked as stale because it hasn't had any activity for 6 months. Many things may have changed within this time. The issue may have already been fixed or it may not be relevant anymore. If at this point, this is still an issue, please respond with updated information. It will be closed in 21 days if no further activity occurs. Thanks for being a part of the Nx community! 🙏