repack icon indicating copy to clipboard operation
repack copied to clipboard

release host app to store

Open HongQuang231 opened this issue 1 year ago • 9 comments

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?

HongQuang231 avatar Mar 19 '24 06:03 HongQuang231

Hi @HongQuang231,

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

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

jbroma avatar Mar 19 '24 09:03 jbroma

@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

HongQuang231 avatar Mar 19 '24 12:03 HongQuang231

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

jbroma avatar Mar 19 '24 12:03 jbroma

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

HongQuang231 avatar Mar 19 '24 13:03 HongQuang231

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?

jbroma avatar Mar 20 '24 11:03 jbroma

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?

HongQuang231 avatar Mar 20 '24 12:03 HongQuang231

@HongQuang231,

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

jbroma avatar Mar 22 '24 10:03 jbroma

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?

tkgithub03 avatar Apr 15 '24 11:04 tkgithub03

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

jbroma avatar Apr 15 '24 14:04 jbroma

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[bot] avatar May 17 '24 00:05 github-actions[bot]

This issue has been automatically closed because it has been inactive for more than 14 days. Please reopen if you want to add more context.

github-actions[bot] avatar Jun 01 '24 00:06 github-actions[bot]