spencercarli / react-native-meteor-boilerplate

MIT License
628 stars 139 forks source link

iOS Device build successful however DDP fails to connect #70

Closed hamoodij closed 7 years ago

hamoodij commented 7 years ago

In xcode i get the following in the output section:

_BSMachError: port 6503; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
2017-02-22 15:27:13.589763 RNApp[6363:1992688] [] __nw_connection_get_connected_socket_block_invoke 2 Connection has no connected handler
2017-02-22 15:27:13.819502 RNApp[6363:1992487] [] __nw_connection_get_connected_socket_block_invoke 3 Connection has no connected handler
2017-02-22 15:27:13.829 [warn][tid:main][RCTEventEmitter.m:54] Sending `websocketFailed` with no listeners registered.
2017-02-22 15:27:13.829539 RNApp[6363:1992421] Sending `websocketFailed` with no listeners registered.
2017-02-22 15:27:14.158 [info][tid:main][RCTRootView.m:239] Running application RNApp ({
    initialProps =     {
    };
    rootTag = 1;
})
2017-02-22 15:27:14.157943 RNApp[6363:1992421] Running application RNApp ({
    initialProps =     {
    };
    rootTag = 1;
})
__nw_connection_get_connected_socket_block_invoke 48 Connection has no connected handler
2017-02-22 15:28:51.178855 RNApp[6363:1992487] [] __nw_connection_get_connected_socket_block_invoke 49 Connection has no connected handler

I ran the meteor app without any changes. ( meteor states App is running on localhost:3000) I ran the RNApp with the following change:

let METEOR_URL = 'ws://my_ip_address:3000/websocket'; To get my IP address i googled it, because ipconfig getifaddr en1 didnt return anything.

As a FYI i am running in VMware, if that changes anything.

Any help will be greatly appreciated!

UPDATE .1

I tried running the meteor app using ROOT_URL=http:ip_address:3000 meteor to see if that would help. Didn't work still the same issue with the DDP disconnection.

UPDATE .2

Because im running on VMware via nat network realised that ipconfig getifaddr en0 via terminal will get me the IP address, however that still didnt work.

@spencercarli

spencercarli commented 7 years ago

I haven't used VMWare so I've got no clue on what needs to be done. I did a quick google and found this article which I think is saying you need to expose the VM to the network and forward requests to it?

What OS is your host environment? I didn't know you could virtualize MacOS haha

hamoodij commented 7 years ago

@spencercarli thanks so much for the response, ive been going crazy alone. ill definitely have a look at that article and see if it resolves it!

Im running Windows 10 :) (via VB and VM) i run Linux and MacOS also run the 'bash on ubuntu on windows' lol which is pretty cool!