nativescript-loading-indicator: Does not run on simulator using LiveSync
Hello,
I 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:
file:///app/tns_modules/nativescript-loading-indicator/loading-indicator.js:4:23: JS ERROR ReferenceError: Can't find variable: MBProgressHUD
Mar 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
It works fine on a device (tns run ios --release
) and on the simulator without livesync ($ tns run ios --emulator
)
FYI
$ gem which cocoapods
/Users/raef/.rvm/gems/ruby-2.2.1@global/gems/cocoapods-0.39.0/lib/cocoapods.rb
$ tns --version
1.6.1
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (7 by maintainers)
Yep this error is indicative of the pod not installing.
rm -rf platforms/ios
Then re run using this first:tns emulate ios
@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. To resolve, run your project with this instead:Then after that, you will be able to run
livesync
with no issue 👍