Native + Geofence + iOS Compile error


I have install platform iOS.
now geofence plugin return Compile error.

I have already tried the solution, remove iOS platform and plugin again install it,
still same error.


The following build commands failed:
	CompileSwift normal x86_64 /Volumes/TimeMachine/AtoZ_Projects/Mobile_Apps/InstaPlace/InstaPlace/platforms/ios/InstaPlace/Plugins/cordova-plugin-geofence/GeofencePlugin.swift
	CompileSwift normal x86_64 /Volumes/TimeMachine/AtoZ_Projects/Mobile_Apps/InstaPlace/InstaPlace/platforms/ios/InstaPlace/Plugins/cordova-plugin-geofence/SwiftData.swift
	CompileSwift normal x86_64 /Volumes/TimeMachine/AtoZ_Projects/Mobile_Apps/InstaPlace/InstaPlace/platforms/ios/InstaPlace/Plugins/cordova-plugin-geofence/SwiftyJson.swift
	CompileSwiftSources normal x86_64
(4 failures)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Volumes/TimeMachine/AtoZ_Projects/Mobile_Apps/InstaPlace/InstaPlace/platforms/ios/cordova/build-debug.xcconfig,-workspace,InstaPlace.xcworkspace,-scheme,InstaPlace,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone SE,build,CONFIGURATION_BUILD_DIR=/Volumes/TimeMachine/AtoZ_Projects/Mobile_Apps/InstaPlace/InstaPlace/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Volumes/TimeMachine/AtoZ_Projects/Mobile_Apps/InstaPlace/InstaPlace/platforms/ios/build/sharedpch

[ERROR] An error occurred while running cordova build ios (exit code 1).

please help me out form this error.


Try by replacing all 3 .swif files.


@ionic_brijeshp I have tried your suggestion but still same error. :frowning:


open project in xcode and try to run, might be you will get code updated.
or you can update all 3 files, under /platform/ios/plugins/geofence/


hello @ionic_brijeshp,
not working.



I got success after following this steps.

1- uninstall geofence plugin.
2- uninstall platform iOS
3- install geofence plugin.
4- replace these 3 file (
5- install the platform iOS.
6- build success.



Great! pls let me know if geofence working on IOS?