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.

release build is not working

See original GitHub issue

Current Behavior

I’m currently facing some issue with the latest haul & react native in RELEASE BUILD. Please find the attached to understand the issue better.

I followed through the documentation and I managed to run the application in DEBUG BUILD. You can reproduce the issue here: https://github.com/lavaxun/haul-issue.

HOWEVER it’s not working well in the release build. I changed the ‘scheme’ in xcode to be using ‘Release’ and clicked the ‘Run’. Screenshot below shows the error. As you can see the build phase is using CLI_PATH. And it’s giving a long list of errors when executing the bundling script during the build phase. (but the app can still be started despite of the build errors) When I try to use ‘fetch’ to perform HTTP POST. it shows me ‘unsupported bodyinit type’ error.

not-working-with-cli_path

Another screenshot below shows the bundling script is working fine in the build phase. but without specifying CLI_PATH. And there is no problem in using ‘fetch’ to do HTTP POST.

working-without-cli_path

Expected Behavior

The RELEASE build should be executed without errors. It should work just like the second screenshot above but with CLI_PATH.

Haul Configuration (haul.config.js)

import { createWebpackConfig } from "haul";

export default {
  webpack: createWebpackConfig(({ platform }) => ({
    entry: `./index.js`
  }))
};

Your Environment

software version
Haul 1.0.0-rc.9
react-native 0.57.2
react-native-navigation 1.1.491
node 8.11.4
yarn 1.10.1

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:4
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
lavaxuncommented, Oct 31, 2018

@thymikee I have made a repo here https://github.com/lavaxun/haul-issue. would be great if someone can help to investigate it.

0reactions
lavaxuncommented, Nov 13, 2018

I have made a PR https://github.com/callstack/haul/pull/494 to fix the issue by using webpack banner in production environment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release build of application is not working - android
1 Answer 1 · make sure that your ViewHolder class is public · if your ViewHolder is an inner class of e.g. your...
Read more >
Common Problems When Creating a Release Build
This is the least likely cause of release build problems, but it does arise on occasion. For a solution, see Optimizing Your Code....
Read more >
Segger Release Build not working - Nordic Q&A
If I build the application using a Debug build it works fine. However, if I do a Release build the application does not...
Read more >
Known issues with Android Studio and Android Gradle Plugin
To fix this issue, upgrade your Android 11 emulator to version 9 or higher by navigating to Tools > SDK Manager. In the...
Read more >
Android release build not working with disabled signing #18232
Hi, We want to disable the signing of the APK because we sign it on the build server. Therefore we changed the build.gradle...
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