Skip to content

Container folder is not a project file 0.75.4 #46881

@BogdanRad

Description

@BogdanRad

Description

I updated my project from 0.74.1 to 0.75.4. In ios folder I have the container folder with GTM file. When I run from terminal I have this error xcodebuild: error: '/Users/bogdan/apps/react-native-mobile-app/ios/container' is not a project file.
If I run from xcode the build is successful. Can you help me to fix this problem from terminal?

Steps to reproduce

  1. after update to 0.75.4
  2. when I run yarn ios

React Native Version

0.75.4

Affected Platforms

Runtime - iOS

Output of npx react-native info

`System:
  OS: macOS 14.4.1
  CPU: (16) x64 Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz
  Memory: 172.63 MB / 52.00 GB
  Shell:
    version: 3.2.57
    path: /bin/bash
Binaries:
  Node:
    version: 18.19.0
    path: /usr/local/bin/node
  Yarn:
    version: 1.22.19
    path: /usr/local/bin/yarn
  npm:
    version: 10.2.3
    path: /usr/local/bin/npm
  Watchman:
    version: 4.9.0
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /Users/bogdan/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.5
      - iOS 17.5
      - macOS 14.5
      - tvOS 17.5
      - visionOS 1.2
      - watchOS 10.5
  Android SDK: Not Found
IDEs:
  Android Studio: 2021.3 AI-213.7172.25.2113.9123335
  Xcode:
    version: 15.4/15F31d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.10
    path: /usr/bin/javac
  Ruby:
    version: 2.7.5
    path: /Users/bogdan/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.75.4
    wanted: 0.75.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false`

Stacktrace or Logs

`error Command failed with exit code 66: xcodebuild -list -json -project /Users/bogdan/apps/react-native-mobile-app/ios/container
2024-10-08 09:56:50.644 xcodebuild[86734:4199341] Writing error result bundle to /var/folders/r5/wpsjwhg9245cgqcjs95l5kjc0000gn/T/ResultBundle_2024-08-10_09-56-0050.xcresult
xcodebuild: error: '/Users/bogdan/apps/react-native-mobile-app/ios/container' is not a project file.
Error: Command failed with exit code 66: xcodebuild -list -json -project /Users/bogdan/apps/react-native-mobile-app/ios/container
2024-10-08 09:56:50.644 xcodebuild[86734:4199341] Writing error result bundle to /var/folders/r5/wpsjwhg9245cgqcjs95l5kjc0000gn/T/ResultBundle_2024-08-10_09-56-0050.xcresult
xcodebuild: error: '/Users/bogdan/apps/react-native-mobile-app/ios/container' is not a project file.
    at makeError (/Users/bogdan/apps/react-native-mobile-app/node_modules/execa/lib/error.js:60:11)
    at module.exports.sync (/Users/bogdan/apps/react-native-mobile-app/node_modules/execa/index.js:194:17)
    at /Users/bogdan/apps/react-native-mobile-app/node_modules/@react-native-community/cli-platform-apple/build/tools/getInfo.js:81:41
    at Array.reduce (<anonymous>)
    at getInfo (/Users/bogdan/apps/react-native-mobile-app/node_modules/@react-native-community/cli-platform-apple/build/tools/getInfo.js:74:15)
    at getConfiguration (/Users/bogdan/apps/react-native-mobile-app/node_modules/@react-native-community/cli-platform-apple/build/commands/buildCommand/getConfiguration.js:36:37)
    at Object.func (/Users/bogdan/apps/react-native-mobile-app/node_modules/@react-native-community/cli-platform-apple/build/commands/runCommand/createRun.js:113:52)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Command.handleAction (/Users/bogdan/apps/react-native-mobile-app/node_modules/@react-native-community/cli/build/index.js:118:9)
error Command failed with exit code 1.`

Reproducer

is private

Screenshots and Videos

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions