In my XCTest case, I'm calling StartMonitoringForRegion on a CLBeaconRegion with my CLLocationManager instance and it doesn't appear in my monitoredRegion property. It only happens in the simulator. Is the a bug or I'm doing something wrong?
CLBeaconRegion not monitored with StartMonitoringForRegion in simulator with XCTest
120 Views Asked by iamarnold At
1
There are 1 best solutions below
Related Questions in IOS
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Is the transactionReceipt data present in dataWithContentsOfURL?
- UIWebView Screen Fitting Issue
- ZXingObjC encoding issues
- iOS: None of the valid provisioning profiles allowed the specific entitlements
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Slow performance on ipad erasing image
- Swift code with multiple NSDateFormatter - optimization
- iOS 8.3 Safari crashes on input type=file
- TTTTimeIntervalFormatter always returns strings in English
- How do I add multiple in app purchases in Swift Spritekit?
- Setup code for xibs in iOS. -awakFromNb:
- iOS Voice Over only reads out the title of any alert views
Related Questions in OBJECTIVE-C
- How do I customize NSOutlineView to have border color?
- UIWebView Screen Fitting Issue
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Image and Text locations in UIButton
- setting OpenGL version in objective-C
- Setup code for xibs in iOS. -awakFromNb:
- realm db, get parent link of object
- CFBundleDocumentType is not working in myproject-Info.plist file
- UIPopoverPresentationController not rendering properly
- Using Storyboard Reference
- Pass Data between two view controllers using 'Delegation' : Objective-C
- Unexpected CALayer Vertical Flipping on 3D Rotation 'Bounce'
- Setting View orientation to portrait is ignored
- UITextField append / between dates while enforcing character limit
Related Questions in CLLOCATIONMANAGER
- CoreLocation Swift
- LocationManager.startUpdatingLocation finishes too late , can't get current location
- iOS 8 CLLocationManager enterRegion: not getting called if use requestWhenInUseAuthorization
- CLLocationManager didVisit not working
- allowsBackgroundLocationUpdates in CLLocationManager in iOS9
- CLLocationManager: Unexpectedly Found Nil While Unwrapping an Optional Value
- Why does didUpdateLocations: only have one location after locationManagerDidResumeLocationUpdates:
- How to get an unabbreviated version of a CLPlacemark administrative area
- Mapbox iOS8 Swift mapView.showUsersLocation
- Beacon / IOS CLLocationManager get current region
- Delay in Corelocation
- didChangeAuthorizationStatus is run when authorization is not changed
- iOS Location Services Alert - What is the delay between showing it?
- iOS with Parse: users tracking each other
- how to call CLLocation delegate only after moving 100m
Related Questions in XCTEST
- Can we set performance test case baseline programmatically in xcode?
- XCTest UI Record and Play - Simulator not updating UI
- Can't import main swift classes into test target?
- Using Xcode7's UI tests to create app screenshots for the App Store
- Running tests after an asynchronous setUp method is finished
- XCTest exception when using keyValueObservingExpectationForObject:keyPath:handler:
- XCTestAssertNil crash due to "nil" parameter
- How to use XCTest framework to test REST based native iOS appliction?
- MKAnnotation via XCTest UI Testing
- How to test Xcode Source Editor Extension?
- Button in UITableView hierarchy UITest
- How can I extend Array so equality check of arrays of optionals are possible?
- Swift blank Xcode Test doesn't compile but app does
- How do I unit test NSFetchedResultsControllerDelegate (controllerWillChangeContent and controllerDidChangeContent) using Swift
- Including Asset Catalogue in Test Targets
Related Questions in CLBEACONREGION
- Setting the major and minor value of iBeacon
- Connecting to multiple iBeacons at once
- plist stored value is different while accessing in Objective-c
- iOS Bluetooth CBPeripheralManager Dictionary Key Support
- iBeacon monitoring mode proximity for beacon region
- Region Monitoring not working in iOS if region don't have major
- What happens in iOS stop monitoring for beacon region? How can we get iOS create more subsequent didEnterRegion events?
- DidEnterRegion only called if requestAlwaysAuthorization is called. Beacons
- Does stopMonitoringForRegion stops only the duplicated region or also the original region as well?
- App crashes when trying to range beacons after working fine for 3-4 days
- CLBeaconRegion not monitored with StartMonitoringForRegion in simulator with XCTest
- How to log the time when the user is in range ibeacon
- Can you apply time restrictions for ibeacon notifications when exiting a region?
- difference between didEnterRegion and didRangeBeacons
- CLBeaconRegion, how to turn off warning: Turn On Bluetooth to Allow * to Connect to Accessories
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The simulator can't monitor for beacons, so this will always fail. If you want to test region monitoring with beacons you need to use a device. This doesn't have anything to do with XCText, its just that the simulator cant monitor for beacons. I believe you can still monitor for regions though because the simulator and simulate a location, it just can't simulate detecting a beacon.