Open jlamim opened 8 years ago
Are you using the newest iOS code, if so then it relates back to #122
Hi @Tempus35, I'm facing the same issue as @jlamim. You mentioned a workaround(?) in #122 ... but where do you put your function "evaluateJs"? Edit: Found it in the plugin folder src/ios/GeofencePlugin.swift – sorry for not looking enough in the first place.
I assured myself that i'm running the newest versions of every dependency, including cordova, ionic, xcode.
I'm able to run my app without the geofence plugin before i install it and after i'm removing it.
Maybe posting my full failure message will help further debugging:
`CompileSwift normal i386 /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift
cd /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -primary-file /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftyJson.swift -target i386-apple-ios8.0 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -I /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/emulator -F /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/emulator -g -import-objc-header /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Bridging-Header.h -serialize-debugging-options -Xcc -I/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/TEST1-generated-files.hmap -Xcc -I/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/TEST1-own-target-headers.hmap -Xcc -I/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/TEST1-all-target-headers.hmap -Xcc -iquote -Xcc /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/TEST1-project-headers.hmap -Xcc -I/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/emulator/include -Xcc -I/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/emulator/usr/local/lib/include -Xcc -I/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/UninstalledProducts/include -Xcc -I/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/UninstalledProducts/iphonesimulator/include -Xcc -I/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/emulator -Xcc -I/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/DerivedSources/i386 -Xcc -I/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -working-directory/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios -emit-module-doc-path /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/Objects-normal/i386/GeofencePlugin~partial.swiftdoc -O -module-name TEST1 -emit-module-path /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/Objects-normal/i386/GeofencePlugin~partial.swiftmodule -serialize-diagnostics-path /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/Objects-normal/i386/GeofencePlugin.dia -emit-dependencies-path /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/Objects-normal/i386/GeofencePlugin.d -emit-reference-dependencies-path /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/Objects-normal/i386/GeofencePlugin.swiftdeps -o /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/Objects-normal/i386/GeofencePlugin.o
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:201:42: error: use of undeclared type 'CLLocationManagerDelegate'
class GeoNotificationManager : NSObject, CLLocationManagerDelegate {
^~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:202:27: error: use of unresolved identifier 'CLLocationManager'
let locationManager = CLLocationManager()
^~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:287:44: error: use of undeclared type 'CLRegion'
func getMonitoredRegion(id: String) -> CLRegion? {
^~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:316:35: error: use of undeclared type 'CLLocationManager'
func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
^~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:316:85: error: use of undeclared type 'CLLocation'
func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
^~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:320:35: error: use of undeclared type 'CLLocationManager'
func locationManager(manager: CLLocationManager, didFailWithError error: NSError) {
^~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:324:35: error: use of undeclared type 'CLLocationManager'
func locationManager(manager: CLLocationManager, didFinishDeferredUpdatesWithError error: NSError?) {
^~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:328:35: error: use of undeclared type 'CLLocationManager'
func locationManager(manager: CLLocationManager, didEnterRegion region: CLRegion) {
^~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:328:77: error: use of undeclared type 'CLRegion'
func locationManager(manager: CLLocationManager, didEnterRegion region: CLRegion) {
^~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:333:35: error: use of undeclared type 'CLLocationManager'
func locationManager(manager: CLLocationManager, didExitRegion region: CLRegion) {
^~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:333:76: error: use of undeclared type 'CLRegion'
func locationManager(manager: CLLocationManager, didExitRegion region: CLRegion) {
^~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:338:35: error: use of undeclared type 'CLLocationManager'
func locationManager(manager: CLLocationManager, didStartMonitoringForRegion region: CLRegion) {
^~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:338:90: error: use of undeclared type 'CLRegion'
func locationManager(manager: CLLocationManager, didStartMonitoringForRegion region: CLRegion) {
^~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:346:35: error: use of undeclared type 'CLLocationManager'
func locationManager(manager: CLLocationManager, didDetermineState state: CLRegionState, forRegion region: CLRegion) {
^~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:346:79: error: use of undeclared type 'CLRegionState'
func locationManager(manager: CLLocationManager, didDetermineState state: CLRegionState, forRegion region: CLRegion) {
^~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:346:112: error: use of undeclared type 'CLRegion'
func locationManager(manager: CLLocationManager, didDetermineState state: CLRegionState, forRegion region: CLRegion) {
^~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:350:35: error: use of undeclared type 'CLLocationManager'
func locationManager(manager: CLLocationManager, monitoringDidFailForRegion region: CLRegion?, withError error: NSError) {
^~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:350:89: error: use of undeclared type 'CLRegion'
func locationManager(manager: CLLocationManager, monitoringDidFailForRegion region: CLRegion?, withError error: NSError) {
^~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:354:35: error: use of undeclared type 'CLRegion'
func handleTransition(region: CLRegion!, transitionType: Int) {
^~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:149:20: error: value of type 'UIView' has no member 'stringByEvaluatingJavaScriptFromString'
webView!.stringByEvaluatingJavaScriptFromString(script)
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:209:43: error: use of unresolved identifier 'kCLLocationAccuracyBest'
locationManager.desiredAccuracy = kCLLocationAccuracyBest
^~~~~~~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:210:14: error: use of unresolved identifier 'CLLocationManager'
if (!CLLocationManager.locationServicesEnabled()) {
^~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:216:14: error: use of unresolved identifier 'CLLocationManager'
if (!CLLocationManager.isMonitoringAvailableForClass(CLRegion)) {
^~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:216:62: error: use of unresolved identifier 'CLRegion'
if (!CLLocationManager.isMonitoringAvailableForClass(CLRegion)) {
^~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:232:24: error: use of unresolved identifier 'CLLocationCoordinate2DMake'
let location = CLLocationCoordinate2DMake(
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:237:63: error: use of undeclared type 'CLLocationDistance'
let radius = geoNotification["radius"].doubleValue as CLLocationDistance
^~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:241:22: error: use of unresolved identifier 'CLCircularRegion'
let region = CLCircularRegion(center: location, radius: radius, identifier: id)
^~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:256:14: error: use of unresolved identifier 'CLLocationManager'
if (!CLLocationManager.locationServicesEnabled()) {
^~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:260:26: error: use of unresolved identifier 'CLLocationManager'
let authStatus = CLLocationManager.authorizationStatus()
^~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift:262:27: error: use of unresolved identifier 'CLAuthorizationStatus'
if (authStatus != CLAuthorizationStatus.AuthorizedAlways) {
^~~~~~~~~~~~~~~~~~~~~
CompileSwift normal i386 /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift
cd /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift -primary-file /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftyJson.swift -target i386-apple-ios8.0 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -I /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/emulator -F /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/emulator -g -import-objc-header /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Bridging-Header.h -serialize-debugging-options -Xcc -I/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/TEST1-generated-files.hmap -Xcc -I/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/TEST1-own-target-headers.hmap -Xcc -I/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/TEST1-all-target-headers.hmap -Xcc -iquote -Xcc /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/TEST1-project-headers.hmap -Xcc -I/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/emulator/include -Xcc -I/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/emulator/usr/local/lib/include -Xcc -I/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/UninstalledProducts/include -Xcc -I/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/UninstalledProducts/iphonesimulator/include -Xcc -I/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/emulator -Xcc -I/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/DerivedSources/i386 -Xcc -I/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -working-directory/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios -emit-module-doc-path /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/Objects-normal/i386/SwiftData~partial.swiftdoc -O -module-name TEST1 -emit-module-path /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/Objects-normal/i386/SwiftData~partial.swiftmodule -serialize-diagnostics-path /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/Objects-normal/i386/SwiftData.dia -emit-dependencies-path /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/Objects-normal/i386/SwiftData.d -emit-reference-dependencies-path /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/Objects-normal/i386/SwiftData.swiftdeps -o /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/TEST1.build/Debug-iphonesimulator/TEST1.build/Objects-normal/i386/SwiftData.o
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1072:26: error: use of unresolved identifier 'sqlite3_open'
let status = sqlite3_open(dbPath.cStringUsingEncoding(NSUTF8StringEncoding)!, &sqliteDB)
^~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1073:26: error: use of unresolved identifier 'SQLITE_OK'
if status != SQLITE_OK {
^~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1076:52: error: use of unresolved identifier 'sqlite3_errmsg'
if let errMsg = String.fromCString(sqlite3_errmsg(SQLiteDB.sharedInstance.sqliteDB)) {
^~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1119:26: error: use of unresolved identifier 'sqlite3_open_v2'
let status = sqlite3_open_v2(dbPath.cStringUsingEncoding(NSUTF8StringEncoding)!, &sqliteDB, flags, nil)
^~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1120:26: error: use of unresolved identifier 'SQLITE_OK'
if status != SQLITE_OK {
^~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1123:52: error: use of unresolved identifier 'sqlite3_errmsg'
if let errMsg = String.fromCString(sqlite3_errmsg(SQLiteDB.sharedInstance.sqliteDB)) {
^~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1149:26: error: use of unresolved identifier 'sqlite3_close'
let status = sqlite3_close(sqliteDB)
^~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1150:26: error: use of unresolved identifier 'SQLITE_OK'
if status != SQLITE_OK {
^~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1153:52: error: use of unresolved identifier 'sqlite3_errmsg'
if let errMsg = String.fromCString(sqlite3_errmsg(SQLiteDB.sharedInstance.sqliteDB)) {
^~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1187:26: error: use of unresolved identifier 'sqlite3_close'
let status = sqlite3_close(sqliteDB)
^~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1193:26: error: use of unresolved identifier 'SQLITE_OK'
if status != SQLITE_OK {
^~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1196:52: error: use of unresolved identifier 'sqlite3_errmsg'
if let errMsg = String.fromCString(sqlite3_errmsg(SQLiteDB.sharedInstance.sqliteDB)) {
^~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1295:22: error: use of unresolved identifier 'sqlite3_last_insert_rowid'
let id = sqlite3_last_insert_rowid(sqliteDB)
^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1302:24: error: use of unresolved identifier 'sqlite3_changes'
return Int(sqlite3_changes(sqliteDB))
^~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1310:20: error: use of unresolved identifier 'sqlite3_column_type'
if sqlite3_column_type(statement, index) == SQLITE_NULL {
^~~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1310:61: error: use of unresolved identifier 'SQLITE_NULL'
if sqlite3_column_type(statement, index) == SQLITE_NULL {
^~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1313:28: error: use of unresolved identifier 'sqlite3_column_int'
return Int(sqlite3_column_int(statement, index))
^~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1315:48: error: use of unresolved identifier 'sqlite3_column_text'
let text = UnsafePointer<Int8>(sqlite3_column_text(statement, index))
^~~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1318:28: error: use of unresolved identifier 'sqlite3_column_blob'
let blob = sqlite3_column_blob(statement, index)
^~~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1320:32: error: use of unresolved identifier 'sqlite3_column_bytes'
let size = sqlite3_column_bytes(statement, index)
^~~~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1325:20: error: use of unresolved identifier 'sqlite3_column_type'
if sqlite3_column_type(statement, index) == SQLITE_NULL {
^~~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1325:61: error: use of unresolved identifier 'SQLITE_NULL'
if sqlite3_column_type(statement, index) == SQLITE_NULL {
^~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1328:31: error: use of unresolved identifier 'sqlite3_column_double'
return Double(sqlite3_column_double(statement, index))
^~~~~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1330:20: error: use of unresolved identifier 'sqlite3_column_type'
if sqlite3_column_type(statement, index) == SQLITE_NULL {
^~~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1330:61: error: use of unresolved identifier 'SQLITE_NULL'
if sqlite3_column_type(statement, index) == SQLITE_NULL {
^~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1333:24: error: use of unresolved identifier 'sqlite3_column_int'
return sqlite3_column_int(statement, index) != 0
^~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1337:48: error: use of unresolved identifier 'sqlite3_column_text'
let text = UnsafePointer<Int8>(sqlite3_column_text(statement, index))
^~~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1367:26: error: use of unresolved identifier 'sqlite3_prepare_v2'
var status = sqlite3_prepare_v2(SQLiteDB.sharedInstance.sqliteDB, sql, -1, &pStmt, nil)
^~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1368:26: error: use of unresolved identifier 'SQLITE_OK'
if status != SQLITE_OK {
^~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1371:52: error: use of unresolved identifier 'sqlite3_errmsg'
if let errMsg = String.fromCString(sqlite3_errmsg(SQLiteDB.sharedInstance.sqliteDB)) {
^~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1374:17: error: use of unresolved identifier 'sqlite3_finalize'
sqlite3_finalize(pStmt)
^~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1378:22: error: use of unresolved identifier 'sqlite3_step'
status = sqlite3_step(pStmt)
^~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1379:26: error: use of unresolved identifier 'SQLITE_DONE'
if status != SQLITE_DONE && status != SQLITE_OK {
^~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1379:51: error: use of unresolved identifier 'SQLITE_OK'
if status != SQLITE_DONE && status != SQLITE_OK {
^~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1382:52: error: use of unresolved identifier 'sqlite3_errmsg'
if let errMsg = String.fromCString(sqlite3_errmsg(SQLiteDB.sharedInstance.sqliteDB)) {
^~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1385:17: error: use of unresolved identifier 'sqlite3_finalize'
sqlite3_finalize(pStmt)
^~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1389:13: error: use of unresolved identifier 'sqlite3_finalize'
sqlite3_finalize(pStmt)
^~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1410:26: error: use of unresolved identifier 'sqlite3_prepare_v2'
var status = sqlite3_prepare_v2(SQLiteDB.sharedInstance.sqliteDB, sql, -1, &pStmt, nil)
^~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1411:26: error: use of unresolved identifier 'SQLITE_OK'
if status != SQLITE_OK {
^~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1414:52: error: use of unresolved identifier 'sqlite3_errmsg'
if let errMsg = String.fromCString(sqlite3_errmsg(SQLiteDB.sharedInstance.sqliteDB)) {
^~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1417:17: error: use of unresolved identifier 'sqlite3_finalize'
sqlite3_finalize(pStmt)
^~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1424:26: error: use of unresolved identifier 'sqlite3_step'
status = sqlite3_step(pStmt)
^~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1425:30: error: use of unresolved identifier 'SQLITE_ROW'
if status == SQLITE_ROW {
^~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1426:35: error: use of unresolved identifier 'sqlite3_column_count'
columnCount = sqlite3_column_count(pStmt)
^~~~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1429:61: error: use of unresolved identifier 'sqlite3_column_name'
let columnName = String.fromCString(sqlite3_column_name(pStmt, i))!
^~~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1430:64: error: use of unresolved identifier 'sqlite3_column_decltype'
if let columnType = String.fromCString(sqlite3_column_decltype(pStmt, i))?.uppercaseString {
^~~~~~~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1436:36: error: use of unresolved identifier 'sqlite3_column_type'
switch sqlite3_column_type(pStmt, i) {
^~~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1456:37: error: use of unresolved identifier 'SQLITE_DONE'
} else if status == SQLITE_DONE {
^~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1461:56: error: use of unresolved identifier 'sqlite3_errmsg'
if let errMsg = String.fromCString(sqlite3_errmsg(SQLiteDB.sharedInstance.sqliteDB)) {
^~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1464:21: error: use of unresolved identifier 'sqlite3_finalize'
sqlite3_finalize(pStmt)
^~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1470:13: error: use of unresolved identifier 'sqlite3_finalize'
sqlite3_finalize(pStmt)
^~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1816:24: error: use of unresolved identifier 'SQLITE_OPEN_READONLY'
return SQLITE_OPEN_READONLY
^~~~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1818:24: error: use of unresolved identifier 'SQLITE_OPEN_READWRITE'
return SQLITE_OPEN_READWRITE
^~~~~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1820:24: error: use of unresolved identifier 'SQLITE_OPEN_READWRITE'
return SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE
^~~~~~~~~~~~~~~~~~~~~
/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift:1820:48: error: use of unresolved identifier 'SQLITE_OPEN_CREATE'
return SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE
^~~~~~~~~~~~~~~~~~
*\* BUILD FAILED **
The following build commands failed:
CompileSwift normal i386 /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/GeofencePlugin.swift
CompileSwift normal i386 /Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/TEST1/Plugins/cordova-plugin-geofence/SwiftData.swift
CompileSwiftSources normal i386 com.apple.xcode.tools.swift.compiler
(3 failures)
ERROR building one of the platforms: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/cordova/build-debug.xcconfig,-project,TEST1.xcodeproj,ARCHS=i386,-target,TEST1,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/sharedpch
You may not have the required environment or OS to build this project
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/cordova/build-debug.xcconfig,-project,TEST1.xcodeproj,ARCHS=i386,-target,TEST1,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/jonas/ZWW_Master_Ionic/TEST1/platforms/ios/build/sharedpch
muna-150-117:TEST1 jonas$ sudo cordova plugin remove cordova-plugin-geofence --save
Password:
Uninstalling 1 dependent plugins.
Uninstalling es6-promise-plugin from android
Uninstalling cordova-plugin-geofence from android
Uninstalling 1 dependent plugins.
Uninstalling es6-promise-plugin from ios
Uninstalling cordova-plugin-geofence from ios
Removing "cordova-plugin-geofence"
config.xml entry for cordova-plugin-geofence is removed
muna-150-117:TEST1 jonas$ sudo ionic build ios
`
@riegeljonez https://github.com/cowbell/cordova-plugin-geofence/blob/master/src/ios/GeofencePlugin.swift
Line 148 there. You can change it to what I put #122 or revert that function back a version.
@riegeljonez So I just updated the plugin on my side and I am now getting the undeclared errors as well. I am trying to fix now.
@riegeljonez, it looks like sqllite library is missing from your's ios project. Make sure it is added properly after plugin install. It should be done by this line if you are using current master or by hook in latest version available on npm registry. Which version of cordova are you using?
After execute "cordova build ios", I received this message:
The following build commands failed: CompileSwift normal i386 /Volumes/WebRepo/app-buzina/platforms/ios/Buzina Pra Mim/Plugins/cordova-plugin-geofence/GeofencePlugin.swift CompileSwift normal i386 /Volumes/WebRepo/app-buzina/platforms/ios/Buzina Pra Mim/Plugins/cordova-plugin-geofence/SwiftData.swift CompileSwiftSources normal i386 com.apple.xcode.tools.swift.compiler (3 failures) ERROR building one of the platforms: Error code 65 for command: xcodebuild with args: -xcconfig,/Volumes/WebRepo/app-buzina/platforms/ios/cordova/build-debug.xcconfig,-project,Buzina Pra Mim.xcodeproj,ARCHS=i386,-target,Buzina Pra Mim,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Volumes/WebRepo/app-buzina/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Volumes/WebRepo/app-buzina/platforms/ios/build/sharedpch You may not have the required environment or OS to build this project Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Volumes/WebRepo/app-buzina/platforms/ios/cordova/build-debug.xcconfig,-project,Buzina Pra Mim.xcodeproj,ARCHS=i386,-target,Buzina Pra Mim,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Volumes/WebRepo/app-buzina/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Volumes/WebRepo/app-buzina/platforms/ios/build/sharedpch
Because it gives this message?