Skip to content

Commit cb11b73

Browse files
committed
Fixed unit tests not working in Xcode 11.1
* This fixes the following error: - "Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'bundleProxyForCurrentProcess is nil: mainBundle.bundleURL"
1 parent 72cb08e commit cb11b73

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

iOS_SDK/OneSignalSDK/UnitTests/Shadows/NSBundleOverrider.m

+2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ - (NSString*)overrideBundleIdentifier {
6666
- (nullable id)overrideObjectForInfoDictionaryKey:(NSString*)key {
6767
if (privacyState && [key isEqualToString:ONESIGNAL_REQUIRE_PRIVACY_CONSENT])
6868
return @true;
69+
else if ([@"CFBundlePackageType" isEqualToString:key])
70+
return @"APPL";
6971
else
7072
return nsbundleDictionary[key];
7173
}

0 commit comments

Comments
 (0)