Skip to content

[BUG] iOS - Prebuild destroys all my Bare React Native CLI + Expo configurated projects codebase #197

Description

@saintyoseph

📋 Describe the bug
I'm using Bare React Native CLI, not Expo. But I'm configurated my RN project to use Expo packages because there are many helpful packages to solve my issues, just like this package. But when I run expo prebuild --no-install --clean command, all my codebase is changing and I lost all details of the project, such as; logo, splash screen, fonts, build/version number, and rest of all previous configurations. It resets and create almost a new project. But I just want to install Share Extension target and use it in my app. And when I just run "npx react-native run-ios" command, Share Extension is not installing. I can't see it in targets lists in Xcode.

🛠️ To Reproduce
Create a Bare React Native CLI project, configure it to use Expo modules just like told on Expo website.

💻 Expected Behavior
I just want Share Extension to be installed with a different command, without binded to Expo Prebuild commands.

📱 Screenshots or Videos
Image

As you can see, it deletes so many files, and adds new ones. All my previous configuration goes.

⚙️ Environment Details

Please complete the following information:

  • Expo SDK Version: 54.0.10
  • Package version: 5.1.0
  • Platform target: iOS
  • Routing: react-navigation
  • Using firebase: yes
  • Using static build: using react native's own build commands
  • Device: both simulator and real device
  • Type: local build

System:
OS: macOS 26.0.1
CPU: (12) arm64 Apple M3 Pro
Memory: 135.67 MB / 18.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 19.9.0
path: ~/.nvm/versions/node/v19.9.0/bin/node
Yarn:
version: 1.22.22
path: /opt/homebrew/bin/yarn
npm:
version: 9.6.3
path: ~/.nvm/versions/node/v19.9.0/bin/npm
Watchman:
version: 2024.12.02.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 25.0
- iOS 26.0
- macOS 26.0
- tvOS 26.0
- visionOS 26.0
- watchOS 26.0
Android SDK: Not Found
IDEs:
Android Studio: 2024.1 AI-241.18034.62.2412.12266719
Xcode:
version: 26.0/17A324
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.14
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 20.0.0
wanted: 20.0.0
react:
installed: 19.1.0
wanted: 19.1.0
react-native:
installed: 0.81.4
wanted: 0.81.4
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions