You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@vjeux Most definitely. We plan on putting in some sort of build step that "compiles" the JS source directly into a resource file in the app bundle. Obviously in production you wouldn't have a server running nearby.
For App Store submission, perhaps you have no choice but to include the JS in the bundle if you wish to comply with 2.7 ("Apps that download code in any way or form will be rejected").
Yes, we're not looking to download code over the internet for exactly the reason you mention. The Facebook Groups app in the store bundles all of the JS locally.
"You'll have to add the downloaded file to the app binary":
Open Xcode -> Project (I will assume AwesomeProject)
Look in the folder Products, click "once" on 'AwesomeProject.app', look on the rightside and it should display "Full Path".
At this point, jump to the terminal, and navigate to the same directory.
Afterwards.
cd FULL_PATH
curl http://localhost:8081/index.ios.bundle -o main.jsbundle
Activity
a2 commentedon Jan 30, 2015
You have a few options here, all of which are documented in AppDelegate.m:
localhost
to<your computer's IP>
, and do it that way.cURL
the file and change it so it references the saved file. You'll have to add the downloaded file to the app binary.Hope that helps. If you have any trouble, just post here and hopefully we can get that sorted for you.
vjeux commentedon Jan 30, 2015
@a2 is there any plan to streamline the process?
a2 commentedon Jan 31, 2015
@vjeux Most definitely. We plan on putting in some sort of build step that "compiles" the JS source directly into a resource file in the app bundle. Obviously in production you wouldn't have a server running nearby.
mfikes commentedon Jan 31, 2015
For App Store submission, perhaps you have no choice but to include the JS in the bundle if you wish to comply with 2.7 ("Apps that download code in any way or form will be rejected").
sophiebits commentedon Jan 31, 2015
Yes, we're not looking to download code over the internet for exactly the reason you mention. The Facebook Groups app in the store bundles all of the JS locally.
roman01la commentedon Mar 26, 2015
+1 for better way
iliekdags commentedon Mar 26, 2015
This should at least be documented on the website -- I'm sure it's going to confuse a lot of people initally until updated. (react native rules!)
freshteapot commentedon Mar 27, 2015
Under option 2).
Where exactly is the 'main.jsbunle' meant to be saved.
Have tried.
"You'll have to add the downloaded file to the app binary":
Where is this? :)
brentvatne commentedon Mar 27, 2015
@freshteapot - check this issue out: #240
freshteapot commentedon Mar 27, 2015
To answer my own question:
"You'll have to add the downloaded file to the app binary":
Open Xcode -> Project (I will assume AwesomeProject)
Look in the folder Products, click "once" on 'AwesomeProject.app', look on the rightside and it should display "Full Path".
At this point, jump to the terminal, and navigate to the same directory.
Afterwards.
Now at this point. You could do
At this point, it works. At least on xcode 6.2.
freshteapot commentedon Mar 27, 2015
@brentvatne thank you!
gu-fan commentedon Mar 27, 2015
@freshteapot Thanks, It works~
vjeux commentedon Apr 1, 2015
Now possible
14 remaining items