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

Unable to build iOS app in release mode. #33051

Closed
sumanbhattarai opened this issue Feb 5, 2022 · 4 comments
Closed

Unable to build iOS app in release mode. #33051

sumanbhattarai opened this issue Feb 5, 2022 · 4 comments
Labels
Needs: Triage 🔍 Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@sumanbhattarai
Copy link

Description

My app works fine for android in both debug and release mode. For iOS as well, it works perfectly fine in debug mode. When I opened the app in XCode and tried to build the app in release mode. I am getting the following error.

echo 'error: File /Users/mypc/Library/Developer/Xcode/DerivedData/myapp-ewjafyqwkgvybabvuzpfqtubujvv/Build/Products/Release-iphonesimulator/ios.app/main.jsbundle does not exist. This must be a bug with'
error: File /Users/mypc/Library/Developer/Xcode/DerivedData/myapp-ewjafyqwkgvybabvuzpfqtubujvv/Build/Products/Release-iphonesimulator/ios.app/main.jsbundle does not exist. This must be a bug with
+ echo 'React Native, please report it here: https://github.com/facebook/react-native/issues'
React Native, please report it here: https://github.com/facebook/react-native/issues
+ exit 2
                 Welcome to React Native!
                Learn once, write anywhere


Command PhaseScriptExecution emitted errors but did not return a nonzero exit code to indicate failure

Dependencies used in my project are:

"dependencies": {
    "@apollo/react-hooks": "^4.0.0",
    "@expo/vector-icons": "^12.0.5",
    "@homielab/react-native-auto-scroll": "^0.0.8",
    "@react-native-async-storage/async-storage": "^1.15.15",
    "@react-native-clipboard/clipboard": "^1.8.4",
    "@react-navigation/native": "^5.9.4",
    "@walletconnect/react-native-dapp": "^1.6.6",
    "apollo-client": "^2.6.10",
    "axios": "^0.21.1",
    "base-64": "1.0.0",
    "bignumber.js": "^9.0.2",
    "buffer": "6.0.3",
    "currency-formatter": "^1.5.8",
    "ethereumjs-abi": "^0.6.8",
    "expo": "~42.0.0",
    "expo-app-loading": "^1.1.2",
    "expo-font": "~9.2.1",
    "expo-linear-gradient": "~9.1.0",
    "expo-linking": "^2.2.3",
    "expo-splash-screen": "~0.11.2",
    "expo-status-bar": "~1.0.4",
    "expo-updates": "~0.8.1",
    "graphql": "^15.5.1",
    "humanize-duration": "^3.27.0",
    "kilomega": "^1.0.4",
    "moment": "^2.29.1",
    "nanoid": "^3.1.12",
    "node-libs-browser": "2.2.1",
    "path-browserify": "0.0.0",
    "query-string": "^7.0.1",
    "react": "16.13.1",
    "react-dom": "16.13.1",
    "react-native": "~0.63.4",
    "react-native-auto-scrolling": "^3.0.2",
    "react-native-awesome-marquee": "^1.1.3",
    "react-native-crypto": "2.2.0",
    "react-native-dotenv": "^3.2.0",
    "react-native-fast-image": "^8.5.11",
    "react-native-gesture-handler": "~1.10.2",
    "react-native-get-random-values": "1.5.0",
    "react-native-localhost": "1.0.0",
    "react-native-marquee": "^0.3.2",
    "react-native-modal": "^13.0.0",
    "react-native-picker-select": "^8.0.4",
    "react-native-reanimated": "~2.2.0",
    "react-native-responsive-screen": "^1.4.2",
    "react-native-safe-area-context": "3.2.0",
    "react-native-screens": "~3.4.0",
    "react-native-side-menu": "^1.1.3",
    "react-native-side-menu-updated": "^1.3.2",
    "react-native-stream": "0.1.9",
    "react-native-svg": "12.1.1",
    "react-native-text-ticker": "^1.14.0",
    "react-native-textinput-effects": "^0.6.2",
    "react-native-unimodules": "~0.14.5",
    "react-native-web": "~0.13.12",
    "react-native-webview": "^11.6.5",
    "react-native-youtube-iframe": "^2.1.2",
    "react-redux": "^7.2.4",
    "react-router-native": "^5.2.0",
    "react-router-native-animate-stack": "^1.3.2",
    "redux": "^4.1.0",
    "redux-logger": "^3.0.6",
    "redux-persist": "^6.0.0",
    "redux-thunk": "^2.3.0",
    "rn-nodeify": "^10.3.0",
    "vendor-copy": "^3.0.1",
    "walletconnect": "^1.6.5",
    "web3": "^1.5.2"
  }

Version

~0.63.4

Output of npx react-native info

System:
OS: macOS 12.0.1
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Memory: 196.67 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.5.0 - /usr/local/bin/node
Yarn: 1.22.11 - /usr/local/bin/yarn
npm: 7.19.1 - /usr/local/bin/npm
Watchman: 2021.06.07.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.2 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0
Android SDK:
API Levels: 29, 30, 31
Build Tools: 29.0.2, 30.0.2, 31.0.0
System Images: android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 2020.3 AI-203.7717.56.2031.7784292
Xcode: 13.1/13A1030d - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_292 - /usr/bin/javac
Python: 2.7.18 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: ~0.63.4 => 0.63.4
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

  1. Open the MyApp/ios/myapp.xcworkspace in XCode.
  2. Go to Products > Scheme > Edit Scheme and select Release mode.
  3. Build the app.

Snack, code example, screenshot, or link to a repository

No response

@ddikodroid
Copy link
Contributor

try this
#29351 (comment)

@sumanbhattarai
Copy link
Author

@ddikodroid, Already tried that. Still the error exists.

@github-actions
Copy link

github-actions bot commented Aug 7, 2022

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Aug 7, 2022
@github-actions
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

@facebook facebook locked as resolved and limited conversation to collaborators Aug 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs: Triage 🔍 Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

3 participants