question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plugin not installed error by building and running iOS

See original GitHub issue

When I run an build my app with the background geolocation it gives a they errors:

I create my app with ionic build ios and run it with xcode on my iPhone 5.

I run the same code as in the documentation of the ionic website.

build error

  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/0h/gf8s5_tj7x7f953vj4yhyp5h0000gp/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -g -fvisibility=hidden -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/martijnbakker/projects/mobile/d/platforms/ios/build/d/Debug-iphonesimulator/cw.build/cw-generated-files.hmap -I/Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/cw.build/Debug-iphonesimulator/cw.build/cw-own-target-headers.hmap -I/Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/cw.build/Debug-iphonesimulator/cw.build/cw-all-target-headers.hmap -iquote /Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/cw.build/Debug-iphonesimulator/cw.build/cw-project-headers.hmap -I/Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/emulator/include -I/Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/emulator/usr/local/lib/include -I/Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/UninstalledProducts/include -I/Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/UninstalledProducts/iphonesimulator/include -I/Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/emulator -I/Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/cw.build/Debug-iphonesimulator/cw.build/DerivedSources/i386 -I/Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/cw.build/Debug-iphonesimulator/cw.build/DerivedSources -F/Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/emulator -include /Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/sharedpch/cw-Prefix-fhdprpluizospcbmacclysuxulgh/cw-Prefix.pch -MMD -MT dependencies -MF /Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/cw.build/Debug-iphonesimulator/cw.build/Objects-normal/i386/BackgroundGeolocationDelegate.d --serialize-diagnostics /Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/cw.build/Debug-iphonesimulator/cw.build/Objects-normal/i386/BackgroundGeolocationDelegate.dia -c /Users/martijnbakker/projects/mobile/Cw/platforms/ios/cw/Plugins/cordova-plugin-mauron85-background-geolocation/BackgroundGeolocationDelegate.m -o /Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/cw.build/Debug-iphonesimulator/cw.build/Objects-normal/i386/BackgroundGeolocationDelegate.o
/Users/martijnbakker/projects/mobile/Cw/platforms/ios/cw/Plugins/cordova-plugin-mauron85-background-geolocation/BackgroundGeolocationDelegate.m:268:37: warning: 'locationServicesEnabled' is deprecated: first deprecated in iOS 4.0 [-Wdeprecated-declarations]
        return [(id)locationManager locationServicesEnabled];
                                    ^
In module 'CoreLocation' imported from /Users/martijnbakker/projects/mobile/Cw/platforms/ios/cw/Plugins/cordova-plugin-mauron85-background-geolocation/BackgroundGeolocationDelegate.h:13:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h:177:37: note: property 'locationServicesEnabled' is declared deprecated here
@property(readonly, nonatomic) BOOL locationServicesEnabled __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_NA,__MAC_NA,__IPHONE_2_0,__IPHONE_4_0) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
                                    ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h:177:37: note: 'locationServicesEnabled' has been explicitly marked deprecated here
/Users/martijnbakker/projects/mobile/Cw/platforms/ios/cw/Plugins/cordova-plugin-mauron85-background-geolocation/BackgroundGeolocationDelegate.m:727:13: warning: unused variable 'response' [-Wunused-variable]
    NSData *response = [NSURLConnection sendSynchronousRequest:request returningResponse:&urlResponse error:&error];
            ^
2 warnings generated.

CompileC build/cw.build/Debug-iphonesimulator/cw.build/Objects-normal/i386/BackgroundLocation.o cw/Plugins/cordova-plugin-mauron85-background-geolocation/BackgroundLocation.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/martijnbakker/projects/mobile/Cw/platforms/ios
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/martijnbakker/.nvm/versions/node/v5.11.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/0h/gf8s5_tj7x7f953vj4yhyp5h0000gp/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -g -fvisibility=hidden -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/cw.build/Debug-iphonesimulator/cw.build/cw-generated-files.hmap -I/Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/cw.build/Debug-iphonesimulator/cw.build/cw-own-target-headers.hmap -I/Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/cw.build/Debug-iphonesimulator/cw.build/cw-all-target-headers.hmap -iquote /Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/cw.build/Debug-iphonesimulator/cw.build/cw-project-headers.hmap -I/Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/emulator/include -I/Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/emulator/usr/local/lib/include -I/Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/UninstalledProducts/include -I/Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/UninstalledProducts/iphonesimulator/include -I/Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/emulator -I/Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/cw.build/Debug-iphonesimulator/cw.build/DerivedSources/i386 -I/Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/cw.build/Debug-iphonesimulator/cw.build/DerivedSources -F/Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/emulator -include /Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/sharedpch/cw-Prefix-fhdprpluizospcbmacclysuxulgh/cw-Prefix.pch -MMD -MT dependencies -MF /Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/cw.build/Debug-iphonesimulator/cw.build/Objects-normal/i386/BackgroundLocation.d --serialize-diagnostics /Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/cw.build/Debug-iphonesimulator/cw.build/Objects-normal/i386/BackgroundLocation.dia -c /Users/martijnbakker/projects/mobile/Cw/platforms/ios/cw/Plugins/cordova-plugin-mauron85-background-geolocation/BackgroundLocation.m -o /Users/martijnbakker/projects/mobile/Cw/platforms/ios/build/cw.build/Debug-iphonesimulator/cw.build/Objects-normal/i386/BackgroundLocation.o

run error


2016-06-16 16:15:12.521 cw[819:384319] WARN: Native: tried calling BackgroundGeolocation.configure, but the BackgroundGeolocation plugin is not installed.
2016-06-16 16:15:12.522 cw[819:384319] WARN: Install the BackgroundGeolocation plugin: 'ionic plugin add cordova-plugin-mauron85-background-geolocation'
2016-06-16 16:15:12.522 cw[819:384319] EXCEPTION: Error: Uncaught (in promise): plugin_not_installed
2016-06-16 16:15:12.522 cw[819:384319] ERROR: EXCEPTION: Error: Uncaught (in promise): plugin_not_installed
2016-06-16 16:15:12.523 cw[819:384319] ERROR: STACKTRACE:
2016-06-16 16:15:12.523 cw[819:384319] ERROR: resolvePromise@file:///var/containers/Bundle/Application/A7B32712-99A0-406B-BAE8-FB2B7F634E29/cw.app/www/build/js/zone.js:538:41
resolvePromise@file:///var/containers/Bundle/Application/A7B32712-99A0-406B-BAE8-FB2B7F634E29/cw.app/www/build/js/zone.js:523:32
file:///var/containers/Bundle/Application/A7B32712-99A0-406B-BAE8-FB2B7F634E29/cw.app/www/build/js/zone.js:571:32
invokeTask@file:///var/containers/Bundle/Application/A7B32712-99A0-406B-BAE8-FB2B7F634E29/cw.app/www/build/js/zone.js:356:43
onInvokeTask@file:///var/containers/Bundle/Application/A7B32712-99A0-406B-BAE8-FB2B7F634E29/cw.app/www/build/js/app.bundle.js:37479:51
invokeTask@file:///var/containers/Bundle/Application/A7B32712-99A0-406B-BAE8-FB2B7F634E29/cw.app/www/build/js/zone.js:355:55
runTask@file:///var/containers/Bundle/Application/A7B32712-99A0-406B-BAE8-FB2B7F634E29/cw.app/www/build/js/zone.js:256:58
drainMicroTaskQueue@file:///var/containers/Bundle/Application/A7B32712-99A0-406B-BAE8-FB2B7F634E29/cw.app/www/build/js/zone.js:474:43
g@file:///var/containers/Bundle/Application/A7B32712-99A0-406B-BAE8-FB2B7F634E29/cw.app/www/build/js/es6-shim.min.js:11:1440
file:///var/containers/Bundle/Application/A7B32712-99A0-406B-BAE8-FB2B7F634E29/cw.app/www/build/js/es6-shim.min.js:11:1370
promiseReactionJob@[native code]
2016-06-16 16:15:12.523 cw[819:384319] ERROR: Unhandled Promise rejection: plugin_not_installed ; Zone: angular ; Task: Promise.then ; Value: plugin_not_installed
2016-06-16 16:15:12.524 cw[819:384319] ERROR: error JSON.stringify()ing argument: TypeError: JSON.stringify cannot serialize cyclic structures.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
siddiqcommented, Jun 19, 2016

The documentation might be outdated on http://ionicframework.com/docs/v2/native/backgroundgeolocation/ The example given for angular2 doesn’t work.

But in fact the plugin is installed. You could varify this by using the code snippet from https://github.com/mauron85/cordova-plugin-background-geolocation It works without a problem.

0reactions
siddiqcommented, Jul 5, 2016

Welcome @mauron85

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xcode fails to start Loading a plu… | Apple Developer Forums
Problem: Xcode fails to launch with following alert: "Loading a plug-in failed. -- The plug-in or one of its prerequisite plug-ins may be...
Read more >
Why am I getting the error plugin_not_installed with the Ionic ...
Try to build your app with xcode and install it on your iPhone. I think the problem is cordova for some plugins (like...
Read more >
"Plugin not installed" ... but it is. Install again, same error. - iOS
So i install the firebase plugin as instruction by running ionic cordova plugin add cordova-plugin-firebase in the terminal. Then after I ...
Read more >
Ionic native 3 media plugin error("plugin not installed")
I am calling all the Cordova plugins inside the platform ready method only. For me the issue is with related to media capture...
Read more >
Ionic 4 - IOS build fails - Meeting SDK - Zoom Developer Forum
But when we try to build it to a device in Xcode, It fails to build with following errors. Please guide us through...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found