Skip to content

Commit d9f7c39

Browse files
Merge pull request #160 from kunichiko/feature/swift-framework
DeviceConnect SDKを CocoaPodsの Framework形態で利用した場合に、DCBundle() が nilを返してしまう問題を修正
2 parents a64ad46 + c4aa17a commit d9f7c39

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)