Open JoeyHengst opened 7 years ago
Hi, did your installation solve the problem? If not it's likely I missed a file commit. I'll take care of this this weekend after vacation- thanks for the heads up
Hi @jlooper , yeah a fresh install solved it. But a fresh install through the nativescript cli. I haven't tried cloning this project though but probably got a point that maybe the Info.plist is not commited.
@StudderVOF, when you say a fresh install through the CLI, what exactly do you mean? Running a tns install
is not fixing this for me.. Neither is removing and then adding ios platform
@dicknaniel I meant doing the following:
tns create my-app-name --ng
And then just looked at the giftler code and added where I needed some functionality. You probably also can make a project with:
tns create my-app-name --ng
Clone the giftler repo and copy the Info.plist from the app created with the nativescript-cli.
@dicknaniel @StudderVOF I apologize for the ommitted Info.plist. I committed the file, and it should be runnable out of the box now. Please let me know if it doesn't! thanks!
@jlooper thanks for the response
I was able to get it running by basically doing what @StudderVOF listed - starting from a fresh project. So, that's sweet - and thanks for the great demonstration.
I just attempted to run it again, to test if you adding the Info.plist would lead to a smooth install. Are the following instructions correct?
git clone your-repo && cd giftler
cp myGoogleService-Info.plist app/App_Resources/iOS/GoogleService-Info.plist
# edit the two package.json nativescript.ids
tns run ios --emulator
I am receiving a Segmentation fault: 11
error:
[] __nw_connection_get_connected_socket_block_invoke 2 Connection has no connected handler
PAC stream failed with
[] nw_proxy_resolver_create_parsed_array PAC evaluation error: kCFErrorDomainCFNetwork: 2
Jan 17 18:27:05 --- last message repeated 1 time ---
Jan 17 18:27:05 9801a7a8db59 com.apple.CoreSimulator.SimDevice.5E883614-5DE5-4361-A11E-AD2FD29E7084.launchd_sim[10125] (UIKitApplication:com.thefanclan.chillsesh[0xeeb8][10672]): Service exited due to Segmentation fault: 11
I encountered this before during the previous setup, and I'm not sure if I'm just missing a simple step during the start up.
@dicknaniel hi, thanks for the feedback. I think that everything you suggest to do is right, but I'd just make sure that all the app ids are correct. Just do a sweep through your code to ensure there's no trace of 'giftler' as an id. Your Segmentation Fault 11
suggests to me that the ids are not aligned. Maybe try to run the project without changing any ids first, and ensure that it works ok, then go ahead and change.
I cloned your source and can build and run on simulator without issues. However, after I logged in, I cannot add an item to the list. in the console it said "Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates." I'm new to this and pardon me if I've done anything wrong.
@ramishi is this on iOS or Android? Can you give me more details? thanks!
@jlooper it's on IOS and following the guide, everything fine and login successful. however cannot see the list after login. I'm on xcode 8 does this make any different?
➜ giftler git:(master) ✗ tns info All NativeScript components versions information ┌──────────────────┬─────────────────┬────────────────┬──────────────────┐ │ Component │ Current version │ Latest version │ Information │ │ nativescript │ 2.4.2 │ 2.4.2 │ Up to date │ │ tns-core-modules │ 2.4.1 │ 2.4.4 │ Update available │ │ tns-android │ 2.4.1 │ 2.4.1 │ Up to date │ │ tns-ios │ 2.4.0 │ 2.4.0 │ Up to date │ └──────────────────┴─────────────────┴────────────────┴──────────────────┘
console log after login:
CONSOLE LOG file:///app/main.ts:14:16: {"loggedIn":true,"user":{"uid":"bxhnoxNGv2c9BhB8CKXeYpGmtEe2","anonymous":false,"providers":[{"id":"password"}],"profileImageURL":null,"email":"user@nativescript.org","emailVerified":false,"name":null,"refreshToken":"ADDl5SGtAZbPULrChqmjGtIB-ShsjAevOgKWxgNvCOzB4NHvGf86rXsEIYZXOx5Nmck1JJHg9HGxs-lzhhj4coQS2w3YJrLOt5RKEgHi4_Gzx9CxKWsuS4AfkqcCXtUKxW_lNXQL8nVLqDCd-Gt4i0yMWXUUVfC8x5C4_6NULV9gbeXy83sqaTCOJldWOdCLGFCRnxLCIjCvuoa7rlrnglt_nfC3U5BGwQ"}} [] nw_host_stats_add_src recv too small, received 24, expected 28 [] __nwlog_err_simulate_crash simulate crash already simulated "nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available" [] nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace: [x86_64] libnetcore-856.30.16 0 libsystem_network.dylib 0x000000010a6d0666 __nw_create_backtrace_string + 123 1 libnetwork.dylib 0x000000010b9cc006 nw_socket_add_input_handler + 3164 2 libnetwork.dylib 0x000000010b9a9555 nw_endpoint_flow_attach_protocols + 3768 3 libnetwork.dylib 0x000000010b9a8572 nw_endpoint_flow_setup_socket + 563 4 libnetwork.dylib 0x000000010b9a7298 -[NWConcrete_nw_endpoint_flow startWithHandler:] + 2612 5 libnetwork.dylib 0x000000010b9c2ae1 nw_endpoint_handler_path_change + 1261 6 libnetwork.dylib 0x000000010b9c2510 nw_endpoint_handler_start + 570 7 libnetwork.dylib 0x000000010b9da1f9 nw_endpoint_resolver_start_next_child + 2240 8 libdispatch.dylib 0x0000
CONSOLE LOG file:///app/services/firebase.service.ts:97:22: Fetched at Wed Feb 01 2017 09:15:15 GMT+1100 (AEDT) [] nw_host_stats_add_src recv too small, received 24, expected 28 [] __nwlog_err_simulate_crash simulate crash already simulated "nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available" [] nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace: [x86_64] libnetcore-856.30.16 0 libsystem_network.dylib 0x000000010a6d0666 __nw_create_backtrace_string + 123 1 libnetwork.dylib 0x000000010b9cc006 nw_socket_add_input_handler + 3164 2 libnetwork.dylib 0x000000010b9a9555 nw_endpoint_flow_attach_protocols + 3768 3 libnetwork.dylib 0x000000010b9a8572 nw_endpoint_flow_setup_socket + 563 4 libnetwork.dylib 0x000000010b9a7298 -[NWConcrete_nw_endpoint_flow startWithHandler:] + 2612 5 libnetwork.dylib 0x000000010b9c2ae1 nw_endpoint_handler_path_change + 1261 6 libnetwork.dylib 0x000000010b9c2510 nw_endpoint_handler_start + 570 7 libnetwork.dylib 0x000000010b9da1f9 nw_endpoint_resolver_start_next_child + 2240 8 libdispatch.dylib 0x0000
Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates.
Ugh that's a nasty one, let me research
Based on following : https://www.nativescript.org/blog/merry-and-bright-create-a-mobile-app-with-firebase-angular-2-and-nativescript
I tried running the Giftler app as is. (haven't uploaded own google-services.json and GoogleService-Info.plist yet)
cocoapods-1.1.1 node v6.2.2
I am getting the following error :
ENOENT: no such file or directory, open '/Users/apiXx/Google Drive/SWK/giftler/platforms/ios/giftler/giftler-Info.plist'
Uploading own google-services.json and plist file resulting in same kind of error. It's searching for a plist file in format: CFBundleIdentifier-Info.plist. Rather then using the GoogleServices-Info.plist??
**edit turns out a fresh install with nativescript cli solved this issue.