diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2020-10-14 13:47:33 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2020-10-14 13:47:33 -0400 |
commit | b4f2950ac64fb458c69a4e09426826519bc2aac2 (patch) | |
tree | da33362e16a2d6f42e852fc962d1e5c966264870 | |
parent | dddb15b8602f0a966b68950886f5e706a2ac3f09 (diff) | |
download | sdl_ios-b4f2950ac64fb458c69a4e09426826519bc2aac2.tar.gz |
Attempt to fix SwiftPM loading lockscreen resources
-rw-r--r-- | SmartDeviceLink/private/NSBundle+SDLBundle.m | 5 |
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) { |