Comments (4)
I think for ios testing, you need to add the geofence plugin. However, when I do, I get compile errors with Swift using SDKROOT = iphonesimulator8.3. I am not familiar with Swift at all, so can't really tell what's wrong.
Sample error message:
.../.../ionic-geofence/platforms/ios/ionic-geofence/Plugins/com.cowbell.cordova.geofence/SwiftData.swift:1018:149: error: 'AnyObject' is not convertible to 'String'; did you mean to use 'as!' to force downcast?
let docsPath = NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.DocumentDirectory, NSSearchPathDomainMask.UserDomainMask, true)[0] as String
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
from ionic-geofence.
In my case, the compile error was due to the fact that I have the latest Xcode 6.3 beta 2 with Swift 1.2. I had to convert swift codes to Swift1.2 and everything worked.
from ionic-geofence.
bob1th, can you pls explain how you fixed this issue ?
when i do
$ ionic build ios
** BUILD FAILED **
The following build commands failed:
CompileSwift normal i386 /Users/bx/ionic/geoFenTry/platforms/ios/geoFenTry/Plugins/com.cowbell.cordova.geofence/GeofencePlugin.swift
CompileSwift normal i386 /Users/bx/ionic/geoFenTry/platforms/ios/geoFenTry/Plugins/com.cowbell.cordova.geofence/SwiftData.swift
CompileSwiftSources normal i386 com.apple.xcode.tools.swift.compiler
(3 failures)
Error code 65 for command: xcodebuild with args: -xcconfig,/Users/bx/ionic/geoFenTry/platforms/ios/cordova/build-debug.xcconfig,-project,geoFenTry.xcodeproj,ARCHS=i386,-target,geoFenTry,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/bx/ionic/geoFenTry/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/bx/ionic/geoFenTry/platforms/ios/build/sharedpch
ERROR building one of the platforms: Error: /Users/bx/ionic/geoFenTry/platforms/ios/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: /Users/bx/ionic/geoFenTry/platforms/ios/cordova/build: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
from ionic-geofence.
I believe that should be fixed by now.
from ionic-geofence.
Related Issues (20)
- Lib folder is missing HOT 1
- black page. Folder lib not found HOT 1
- Android build fails HOT 4
- Wont work on device HOT 4
- getbound() HOT 1
- ios not working HOT 4
- geofence circle not show HOT 1
- Angular Not Defined Error HOT 1
- Xcode 8, iOS 10 compatbility issue HOT 3
- Publish the example app in the app store? HOT 1
- Doesn't compile with latest tool chain HOT 2
- ionic run android fails HOT 3
- window.geofence is always undefined HOT 1
- Phonegap build error
- ionic-geofence notification is not working on iOS device/xcode simulator HOT 1
- Code not working HOT 2
- ENOENT error HOT 2
- upgrade to ionic3 HOT 1
- iOS notification issue
- G
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ionic-geofence.