{"action":"created","issue":{"url":"https://api.github.com/repos/NathanWalker/nativescript-loading-indicator/issues/5","repository_url":"https://api.github.com/repos/NathanWalker/nativescript-loading-indicator","labels_url":"https://api.github.com/repos/NathanWalker/nativescript-loading-indicator/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/NathanWalker/nativescript-loading-indicator/issues/5/comments","events_url":"https://api.github.com/repos/NathanWalker/nativescript-loading-indicator/issues/5/events","html_url":"https://github.com/NathanWalker/nativescript-loading-indicator/issues/5","id":140346157,"number":5,"title":"Does not run on simulator using LiveSync","user":{"login":"raefa","id":665520,"avatar_url":"https://avatars.githubusercontent.com/u/665520?v=3","gravatar_id":"","url":"https://api.github.com/users/raefa","html_url":"https://github.com/raefa","followers_url":"https://api.github.com/users/raefa/followers","following_url":"https://api.github.com/users/raefa/following{/other_user}","gists_url":"https://api.github.com/users/raefa/gists{/gist_id}","starred_url":"https://api.github.com/users/raefa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raefa/subscriptions","organizations_url":"https://api.github.com/users/raefa/orgs","repos_url":"https://api.github.com/users/raefa/repos","events_url":"https://api.github.com/users/raefa/events{/privacy}","received_events_url":"https://api.github.com/users/raefa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-03-12T04:30:30Z","updated_at":"2016-08-24T18:54:22Z","closed_at":"2016-08-24T18:54:22Z","body":"Hello,\r\n\r\nI was wondering if anyone else was experiencing this ... and has a solution. When I run this on the simulator (`$ tns livesync ios --device --watch`) and my controller calls `loader.show();` the app crashes. This is in the log:\r\n```\r\nfile:///app/tns_modules/nativescript-loading-indicator/loading-indicator.js:4:23: JS ERROR ReferenceError: Can't find variable: MBProgressHUD\r\nMar 12 15:00:15 192-168-1-101 com.apple.CoreSimulator.SimDevice.85E6BA3D-FD7F-4E98-B3D4-A40B4DDC6816.launchd_sim[98734] (UIKitApplication:*****************[0x6aba][5358]): Service exited due to signal: Segmentation fault: 11\r\n```\r\n\r\nIt works fine on a device (`tns run ios --release`) and on the simulator without livesync (`$ tns run ios --emulator`)\r\n\r\nFYI \r\n```\r\n$ gem which cocoapods\r\n/Users/raef/.rvm/gems/ruby-2.2.1@global/gems/cocoapods-0.39.0/lib/cocoapods.rb\r\n$ tns --version\r\n1.6.1\r\n```"},"comment":{"url":"https://api.github.com/repos/NathanWalker/nativescript-loading-indicator/issues/comments/242171354","html_url":"https://github.com/NathanWalker/nativescript-loading-indicator/issues/5#issuecomment-242171354","issue_url":"https://api.github.com/repos/NathanWalker/nativescript-loading-indicator/issues/5","id":242171354,"user":{"login":"NathanWalker","id":457187,"avatar_url":"https://avatars.githubusercontent.com/u/457187?v=3","gravatar_id":"","url":"https://api.github.com/users/NathanWalker","html_url":"https://github.com/NathanWalker","followers_url":"https://api.github.com/users/NathanWalker/followers","following_url":"https://api.github.com/users/NathanWalker/following{/other_user}","gists_url":"https://api.github.com/users/NathanWalker/gists{/gist_id}","starred_url":"https://api.github.com/users/NathanWalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NathanWalker/subscriptions","organizations_url":"https://api.github.com/users/NathanWalker/orgs","repos_url":"https://api.github.com/users/NathanWalker/repos","events_url":"https://api.github.com/users/NathanWalker/events{/privacy}","received_events_url":"https://api.github.com/users/NathanWalker/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T18:54:22Z","updated_at":"2016-08-24T18:54:22Z","body":"@Daxito @raefa The original issue reported here is related to an issue when starting a project for the first time using `livesync`. When doing so, no CocoaPods will be setup properly.\r\nTo resolve, run your project with this instead:\r\n```\r\ntns emulate ios\r\n\r\n// or...\r\n\r\ntns run android\r\n```\r\n\r\nThen after that, you will be able to run `livesync` with no issue 👍 "}}
{"actor":{"display_login":"NathanWalker"}}