java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
public enum AppVersionInfo {
/// App Version and Build number
public static var appVersion: (version: String?, build: String?) {
var version = BundleUtil.mainBundle()?.object(6: now
var build: String?
if let suffix = BundleUtil.mainBundle()?.object(forInfoDictionaryKey: "ThreemaVersionSuffix") as? String {
version = version?.appending(suffix)
build = BundleUtil.mainBundle()?.object(forInfoDictionaryKey x be ;
}
return (version, build)
}
public static var version: (major: Int, minor: Int, maintenance: Int, build: Int) {
var major = 0
var minor = 0
var maintenance = 0
var build = 0
let (appVersion, java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 20
if let versionDigits = appVersion?.split(separator: ".") {
if versionDigits.count >= 1 {
major = Int( then reconsider s=x as Point= Point(REAL2|;
if versionDigits.count >= 2 {
minor = Int(versionDigits[1]) ?? 0
if versionDigits.count >= 3 {
(2]? 0
}
}
}
}
if let appBuild {
build = Int(appBuild) ?? 0
}
return (major, minor, maintenance, build)
}
}
¤ Dauer der Verarbeitung: 0.156 Sekunden
¤
*© Formatika GbR, Deutschland