TypeScript compiler failed with exit code 1


In the project of testing nativescript, nativescript-loading-indicator has been used for android and ios, in android everything run smoothly, but got this error in running as ios app,

app/pages/add_account/add_account.component.ts(12,13): error TS2304: Cannot find name ‘UIView’.

app/pages/add_account/add_account.component.ts(78,19): error TS2304: Cannot find name ‘UIView’.

app/pages/add_account/add_account.component.ts(79,19): error TS2304: Cannot find name ‘MBProgressHUDModeDeterminate’.

no solution found yet, I think I will be nativescript try to access ios component: UIView, MBProgressHUD. Podfile is changed to get ios component ‘MBProgressHUD’ as below:


platform :ios, '4.0’
target “myTondo” do

Begin Podfile - /Users/mytondo/Desktop/Nativescript/myTondo/node_modules/nativescript-loading-indicator/platforms/ios/Podfile

pod ‘MBProgressHUD’

End Podfile


I think I need suggestion, any suggestion’s appreciated.