diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2018-09-13 00:26:09 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2018-09-13 12:52:26 -0700 |
commit | c63e628acc584aa02bb067f5714d5bcd7889f675 (patch) | |
tree | ba55fb688771582b4d87d0443c3238fc0a9164fe /platform/darwin | |
parent | c470bd26dfb627adbe4b2c7a7b4b7892c1a215f3 (diff) | |
download | qtlocation-mapboxgl-c63e628acc584aa02bb067f5714d5bcd7889f675.tar.gz |
[ios, macos] Look even more widely for IB designables agent
The IBDesignablesAgent helper process has been renamed to IBAgent as of the Xcode 10 GM seed, so cast an even wider net when trying to detect it.
Diffstat (limited to 'platform/darwin')
-rw-r--r-- | platform/darwin/src/NSProcessInfo+MGLAdditions.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/darwin/src/NSProcessInfo+MGLAdditions.m b/platform/darwin/src/NSProcessInfo+MGLAdditions.m index 1b4fcecf55..0c287c030b 100644 --- a/platform/darwin/src/NSProcessInfo+MGLAdditions.m +++ b/platform/darwin/src/NSProcessInfo+MGLAdditions.m @@ -3,7 +3,8 @@ @implementation NSProcessInfo (MGLAdditions) - (BOOL)mgl_isInterfaceBuilderDesignablesAgent { - return [self.processName hasPrefix:@"IBDesignablesAgent"]; + NSString *processName = self.processName; + return [processName hasPrefix:@"IBAgent"] || [processName hasPrefix:@"IBDesignablesAgent"]; } @end |