diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2018-06-13 10:50:46 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2018-06-18 12:39:49 -0700 |
commit | fba8fd7d649e7384b926ec19e9887eaa5f9a093a (patch) | |
tree | 71021bba22b6b917a15c260af4c46f26a1499674 | |
parent | e110cac5f1d09a41bf2c9f827012fd05bfab2320 (diff) | |
download | qtlocation-mapboxgl-fba8fd7d649e7384b926ec19e9887eaa5f9a093a.tar.gz |
[ios, macos] Look more widely for IBDesignablesAgent
The IBDesignablesAgent helper process has been renamed for each platform as of Xcode 10, so cast a wider net when trying to detect it.
Cherry-picked from ee790818d804c4dda7bc30fe99ffe464bded2435.
-rw-r--r-- | platform/darwin/src/NSProcessInfo+MGLAdditions.m | 8 | ||||
-rw-r--r-- | platform/macos/CHANGELOG.md | 1 |
2 files changed, 2 insertions, 7 deletions
diff --git a/platform/darwin/src/NSProcessInfo+MGLAdditions.m b/platform/darwin/src/NSProcessInfo+MGLAdditions.m index 293f49538b..1b4fcecf55 100644 --- a/platform/darwin/src/NSProcessInfo+MGLAdditions.m +++ b/platform/darwin/src/NSProcessInfo+MGLAdditions.m @@ -1,15 +1,9 @@ #import "NSProcessInfo+MGLAdditions.h" -#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR - static NSString * const MGLIBDesignablesAgentProcessName = @"IBDesignablesAgentCocoaTouch"; -#elif TARGET_OS_MAC - static NSString * const MGLIBDesignablesAgentProcessName = @"IBDesignablesAgent"; -#endif - @implementation NSProcessInfo (MGLAdditions) - (BOOL)mgl_isInterfaceBuilderDesignablesAgent { - return [self.processName isEqualToString:MGLIBDesignablesAgentProcessName]; + return [self.processName hasPrefix:@"IBDesignablesAgent"]; } @end diff --git a/platform/macos/CHANGELOG.md b/platform/macos/CHANGELOG.md index 9ef7c39f1e..a9b09cc02e 100644 --- a/platform/macos/CHANGELOG.md +++ b/platform/macos/CHANGELOG.md @@ -5,6 +5,7 @@ ### Packaging * The minimum deployment target for this SDK is now macOS 10.11.0. ([#11776](https://github.com/mapbox/mapbox-gl-native/pull/11776)) +* Fixed an issue where `MGLMapView` produced a designable error in Interface Builder storyboards. ([#12140](https://github.com/mapbox/mapbox-gl-native/pull/12140)) ### Style layers |