We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f526ee3 commit 550a6dcCopy full SHA for 550a6dc
StudyplusSDK/Studyplus.swift
@@ -42,7 +42,7 @@ final public class Studyplus {
42
StudyplusSDKのバージョン情報を返します
43
*/
44
public static let SDKVersion: String = {
45
- guard let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String else {
+ guard let version = Bundle(for: Studyplus.self).object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String else {
46
assert(false, "StudyplusSDK: *** bundle cannot be loaded, Please check installation in README.md. ***")
47
print("StudyplusSDK: *** Please check installation in README.md. ***")
48
return ""
0 commit comments