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

release host app to store #527

Open
HongQuang231 opened this issue Mar 19, 2024 · 10 comments
Open

release host app to store #527

HongQuang231 opened this issue Mar 19, 2024 · 10 comments
Labels
area:configuration The issue is about Webpack's configuration. question Stale status:waiting-for-response Waiting for a response or clarification from the issue creator

Comments

@HongQuang231
Copy link

when i archive project host_app using xcode, it throw error

File /Users/hongquang/Library/Developer/Xcode/DerivedData/host_app-glaovyogzxtvffgswwzgfvsxngqf/Build/Intermediates.noindex/ArchiveIntermediates/host_app/BuildProductsPath/Release-iphoneos/host_app.app/main.jsbundle does not exist. Your environment is misconfigured as Metro was not able to produce the bundle so your release application won't work!

can you help me?

@jbroma
Copy link
Member

jbroma commented Mar 19, 2024

Hi @HongQuang231,

is your Xcode configured properly, as stated in the docs?

https://re-pack.netlify.app/docs/getting-started#4-configure-xcode

@jbroma jbroma added area:configuration The issue is about Webpack's configuration. question status:waiting-for-response Waiting for a response or clarification from the issue creator labels Mar 19, 2024
@HongQuang231
Copy link
Author

@jbroma yeah, i config xcode same guilde but when I build it thow err look like this
Screenshot 2024-03-19 at 19 43 23

@jbroma
Copy link
Member

jbroma commented Mar 19, 2024

perhaps bundling fails underneath, please verify that this completes successfully:

[pm] run react-native webpack-bundle --platform ios --entry-file index.js --dev=false --bundle-output build/test/ios/main.jsbundle

substitute [pm] with package manager you use

@HongQuang231
Copy link
Author

thank, maybe it working with me, so if I build apk or aab file for android, what do I need to do? I don't need to do the same for iOS

@jbroma
Copy link
Member

jbroma commented Mar 20, 2024

thank, maybe it working with me, so if I build apk or aab file for android, what do I need to do? I don't need to do the same for iOS

could you please clarify what you mean?

@HongQuang231
Copy link
Author

sorry, it means, I build apk or aab file for android by android studio, what do I need to do ? Is same when I build ios by xcode? can you give me a guideline?

@jbroma
Copy link
Member

jbroma commented Mar 22, 2024

@HongQuang231,

All you have to do is configure Android as in the docs: https://re-pack.netlify.app/docs/getting-started/#5-configure-android

@tkgithub03
Copy link

có lẽ việc gói bên dưới không thành công, vui lòng xác minh rằng việc này hoàn tất thành công:

[pm] run react-native webpack-bundle --platform ios --entry-file index.js --dev=false --bundle-output build/test/ios/main.jsbundle

thay thế [pm]bằng trình quản lý gói bạn sử dụng

Hi @jbroma ,
I followed the instructions, ran the above command successfully but when building the ipa file it still has an error: main.jsbundle : invalid expression encountered , can you help me?

@jbroma
Copy link
Member

jbroma commented Apr 15, 2024

@tkgithub03 I'm afraid I won't be able to assist you without providing some kind of reproduction repository.

Copy link

This issue has been marked as stale because it has been inactive for 30 days. Please update this issue or it will be automatically closed in 14 days.

@github-actions github-actions bot added the Stale label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:configuration The issue is about Webpack's configuration. question Stale status:waiting-for-response Waiting for a response or clarification from the issue creator
Projects
None yet
Development

No branches or pull requests

3 participants