diff options
author | Fabian Guerra Soto <fabian.guerra@mapbox.com> | 2019-04-10 13:01:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-10 13:01:59 -0700 |
commit | 2f0af0e8f4e1f0fc0dbc4a6b13ab2f098adad0af (patch) | |
tree | 69c01c248136ba2c9a80cc8900e2a697acffb3d7 /platform/darwin/src/MGLAccountManager.m | |
parent | 7bfb9c9658f00b5745fb8aea44b1224278b3190e (diff) | |
download | qtlocation-mapboxgl-2f0af0e8f4e1f0fc0dbc4a6b13ab2f098adad0af.tar.gz |
[ios] Deactivate MGLMapView IBDesignable (#14379)
Removed MGLMapView's IBDesignable attribute. The map's view render attributes
uses GL, making changes through the inspectables were not reflected in the storyboard
and were causing IB crashes.
* [ios] Deactivate MGLMapView IBDesignable.
* [ios] Remove IBDesignable agent code.
* [ios, macos] Remove NSProcessInfo category from iOS.
Diffstat (limited to 'platform/darwin/src/MGLAccountManager.m')
-rw-r--r-- | platform/darwin/src/MGLAccountManager.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLAccountManager.m b/platform/darwin/src/MGLAccountManager.m index d914867628..63fa634884 100644 --- a/platform/darwin/src/MGLAccountManager.m +++ b/platform/darwin/src/MGLAccountManager.m @@ -1,6 +1,8 @@ #import "MGLAccountManager_Private.h" #import "NSBundle+MGLAdditions.h" +#if TARGET_OS_OSX #import "NSProcessInfo+MGLAdditions.h" +#endif #if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR #import "MGLMapboxEvents.h" @@ -40,9 +42,12 @@ } + (instancetype)sharedManager { +#if TARGET_OS_OSX if (NSProcessInfo.processInfo.mgl_isInterfaceBuilderDesignablesAgent) { return nil; } +#endif + static dispatch_once_t onceToken; static MGLAccountManager *_sharedManager; void (^setupBlock)(void) = ^{ |