question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS release build Error loading local images and icon

See original GitHub issue

After upgrading my RN version from 0.61.0 to 0.61.2 when i made a release build then it shows error saying that No bundle url present. then i delete my main.jsBundle from xcode and create that file again using that command react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios after release build ‘No bundle Error’ gone but in my release build there is no local images or icon.

Note: ios simulator everything works fine.

image image

React Native version:

CPU: (4) x64 Intel(R) Core(TM) i5-3470S CPU @ 2.90GHz Memory: 4.19 GB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 12.15.0 - /usr/local/bin/node npm: 6.13.4 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 13.5, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2 IDEs: Xcode: 11.5/11E608c - /usr/bin/xcodebuild npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.2 => 0.61.2 npmGlobalPackages: react-native-cli: 2.0.1.

Steps To Reproduce

  1. In release build this issue happening
  2. After archiving, generate a .ipa file.

Expected Results

it must load all local images and icon image

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

my ios folder in my root project image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

1reaction
safaiyehcommented, Sep 2, 2020

Please check out my comment here: https://github.com/facebook/react-native/issues/29364#issuecomment-682276573

There are temporary work arounds to get images to load

1reaction
sameer-kumar-jaincommented, Sep 2, 2020

@saachitech this project is confidential, so sorry I can’t provide the repo. I can provide the code file. Also the codebase is huge and there is lot’s of dependency

That’s OK. A minimal code block or repo to reproduce the issue would be fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native iOS release build Error loading local images and ...
after release build 'No bundle Error' gone but in my release build there is no local images or icon. after giving release build....
Read more >
React-Native Ios Release Build Error Loading Local ... - ADocLib
Assets missing only in iOS release build after ejecting images are not showing when I run the app in release mode on iOS...
Read more >
Preparing your app for distribution - Apple Developer
Prepare your Xcode project for distribution before you upload a build to App ... In the App Icons and Launch Images section of...
Read more >
[Solved]-I am getting this error when build release in iOS Flutter
I was having similar issues, and for me the problem was caused by opening Runner.xcodeproj instead of Runner.xcodeworkspace in XCode. This might seem...
Read more >
Fix Images Not loading In iOS 14 — React Native | by jQN
1 which means the simulators were also upgraded to iOS version 14. The project I'm currently working on is on React Native version...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found