TheCocoaProject / cordova-plugin-nativestorage

Cordova plugin: Native storage of variables in Android, iOS and Windows
http://thecocoaproject.github.io/
Apache License 2.0
292 stars 106 forks source link

IOS build issue #153

Closed rr-phillips closed 4 years ago

rr-phillips commented 4 years ago

This plugin works perfectly with android, but I'm having trouble getting it to build to my iphone 7 with software 13.6.

When I try to build to the phone in xcode I get these errors, and nothing I do has been able to help. I've reinstalled it, and re-did my pods (I know that it's not a pod), and it runs fine when the project doesn't have this plugin with it, but when I add it I can't get through these errors.

Undefined symbols for architecture arm64: "_OBJC_CLASS_$_CDVPlugin", referenced from: _OBJC_CLASS_$_NativeStorage in NativeStorage.o "_OBJC_METACLASS_$_CDVPlugin", referenced from: _OBJC_METACLASS_$_NativeStorage in NativeStorage.o "_OBJC_CLASS_$_CDVPluginResult", referenced from: objc-class-ref in NativeStorage.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have these packages as well cordova-plugin-badge 0.8.8 "Badge" cordova-plugin-contacts 3.0.1 "Contacts" cordova-plugin-device 2.0.2 "Device" cordova-plugin-geolocation 4.0.2 "Geolocation" cordova-plugin-inappbrowser 4.0.0 "InAppBrowser" cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard" cordova-plugin-ionic-webview 4.2.0 "cordova-plugin-ionic-webview" cordova-plugin-nativeaudio 3.0.9 "Cordova Native Audio" cordova-plugin-nativestorage 2.3.2 "NativeStorage" cordova-plugin-splashscreen 5.0.2 "Splashscreen" cordova-plugin-statusbar 2.4.2 "StatusBar" cordova-plugin-whitelist 1.3.3 "Whitelist" onesignal-cordova-plugin 2.11.1 "OneSignal Push Notifications"

and my ionic info is: Ionic:

Ionic CLI : 5.4.9 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 5.0.7 @angular-devkit/build-angular : 0.803.24 @angular-devkit/schematics : 8.3.26 @angular/cli : 8.3.26 @ionic/angular-toolkit : 2.3.3

Cordova:

Cordova CLI : 9.0.0 Cordova Platforms : android 8.1.0, ios 5.1.1 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.0, (and 10 other plugins)

Utility:

cordova-res : 0.9.0 (update available: 0.15.1) native-run : 0.2.9 (update available: 1.2.1)

System:

ios-deploy : 1.9.2 ios-sim : 8.0.2 NodeJS : v12.13.0 (/usr/local/bin/node) npm : 6.12.0 OS : macOS Catalina Xcode : Xcode 12.0.1 Build version 12A7300`

Thanks so much for the help, this is a real thorn in my side!

rr-phillips commented 4 years ago

this was my own blunder. I had to remove the onesignal notification first, and then add the native-storage, and then re-add the onesignal plugin.