* Creates `XcodeProject` instance from given path to `.xcodeproj` file.
(xcodeprojPath: string)
| 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. |
no outgoing calls
no test coverage detected