MCPcopy
hub / github.com/ionic-team/capacitor / getMajoriOSVersion

Function getMajoriOSVersion

cli/src/ios/common.ts:125–133  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

123}
124
125export function getMajoriOSVersion(config: Config): string {
126 const pbx = readFileSync(join(config.ios.nativeXcodeProjDirAbs, 'project.pbxproj'), 'utf-8');
127 const searchString = 'IPHONEOS_DEPLOYMENT_TARGET = ';
128 const iosVersion = pbx.substring(
129 pbx.indexOf(searchString) + searchString.length,
130 pbx.indexOf(searchString) + searchString.length + 2,
131 );
132 return iosVersion;
133}

Callers 3

migrateCommandFunction · 0.90
generatePackageTextFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected