Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

Commit 550a6dc

Browse files
committed
fix load bundle path
1 parent f526ee3 commit 550a6dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

StudyplusSDK/Studyplus.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ final public class Studyplus {
4242
StudyplusSDKのバージョン情報を返します
4343
*/
4444
public static let SDKVersion: String = {
45-
guard let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String else {
45+
guard let version = Bundle(for: Studyplus.self).object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String else {
4646
assert(false, "StudyplusSDK: *** bundle cannot be loaded, Please check installation in README.md. ***")
4747
print("StudyplusSDK: *** Please check installation in README.md. ***")
4848
return ""

0 commit comments

Comments
 (0)