MCPcopy Create free account
hub / github.com/expo/expo / fromXcodeprojPathAsync

Method fromXcodeprojPathAsync

tools/src/prebuilds/XcodeProject.ts:28–33  ·  view source on GitHub ↗

* Creates `XcodeProject` instance from given path to `.xcodeproj` file.

(xcodeprojPath: string)

Source from the content-addressed store, hash-verified

26 * Creates `XcodeProject` instance from given path to `.xcodeproj` file.
27 */
28 static async fromXcodeprojPathAsync(xcodeprojPath: string): Promise<XcodeProject> {
29 if (!(await fs.pathExists(xcodeprojPath))) {
30 throw new Error(`Xcodeproj not found at path: ${xcodeprojPath}`);
31 }
32 return new XcodeProject(xcodeprojPath);
33 }
34
35 /**
36 * Generates `.xcodeproj` file based on given spec and returns it.

Calls

no outgoing calls

Tested by

no test coverage detected