Skip to content

Commit c4aa17a

Browse files
author
Kunihiko Ohnaka
committed
- Make DCBundle() macro possible to search the Framework's bundle when DConnextSDK was built as Framework.
1 parent 51f95f7 commit c4aa17a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dConnectSDK/dConnectSDKForIOS/DConnectSDK/Classes/DConnectConst.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#define DC_SYNC_END }
1212

1313
#define DCBundle() \
14-
[NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"DConnectSDK_resources" ofType:@"bundle"]]
14+
[NSBundle bundleWithPath:[[NSBundle bundleForClass:NSClassFromString(@"DConnectManager")] pathForResource:@"DConnectSDK_resources" ofType:@"bundle"]]
1515

1616
#define DCLocalizedString(bundle, key) \
1717
[bundle localizedStringForKey:key value:@"" table:nil]

0 commit comments

Comments
 (0)