summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2020-10-14 13:47:33 -0400
committerJoel Fischer <joeljfischer@gmail.com>2020-10-14 13:47:33 -0400
commitb4f2950ac64fb458c69a4e09426826519bc2aac2 (patch)
treeda33362e16a2d6f42e852fc962d1e5c966264870
parentdddb15b8602f0a966b68950886f5e706a2ac3f09 (diff)
downloadsdl_ios-b4f2950ac64fb458c69a4e09426826519bc2aac2.tar.gz
Attempt to fix SwiftPM loading lockscreen resources
-rw-r--r--SmartDeviceLink/private/NSBundle+SDLBundle.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/SmartDeviceLink/private/NSBundle+SDLBundle.m b/SmartDeviceLink/private/NSBundle+SDLBundle.m
index 5880a5927..426a6a8bd 100644
--- a/SmartDeviceLink/private/NSBundle+SDLBundle.m
+++ b/SmartDeviceLink/private/NSBundle+SDLBundle.m
@@ -16,6 +16,11 @@ NS_ASSUME_NONNULL_BEGIN
+ (nullable NSBundle *)sdlBundle {
NSURL *sdlBundleURL = [[NSBundle mainBundle] URLForResource:@"SmartDeviceLink" withExtension:@"bundle"];
+ if (sdlBundleURL == nil) {
+ // HAX: SwiftPM
+ sdlBundleURL = [[NSBundle mainBundle] URLForResource:@"SmartDeviceLink_SmartDeviceLink" withExtension:@"bundle"];
+ }
+
NSBundle *sdlBundle = nil;
if (sdlBundleURL != nil) {