MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / findBuiltAppPath

Function findBuiltAppPath

scripts/experimental/swiftui-preview.mjs:750–770  ·  view source on GitHub ↗
(settings)

Source from the content-addressed store, hash-verified

748}
749
750function findBuiltAppPath(settings) {
751 const wrapperName = settings.WRAPPER_NAME;
752 const candidates = [
753 settings.TARGET_BUILD_DIR && wrapperName
754 ? path.join(settings.TARGET_BUILD_DIR, wrapperName)
755 : "",
756 settings.CODESIGNING_FOLDER_PATH,
757 settings.BUILT_PRODUCTS_DIR && wrapperName
758 ? path.join(settings.BUILT_PRODUCTS_DIR, wrapperName)
759 : "",
760 ].filter(Boolean);
761 const appPath = candidates.find(
762 (candidate) => candidate.endsWith(".app") && fs.existsSync(candidate),
763 );
764 if (!appPath) {
765 throw new Error(
766 `Unable to locate built .app for Xcode target. Tried: ${candidates.join(", ")}`,
767 );
768 }
769 return appPath;
770}
771
772function findXcodeDebugDylib(appPath, settings) {
773 const moduleName = settings.PRODUCT_MODULE_NAME || settings.SWIFT_MODULE_NAME;

Callers 1

resolveXcodeContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected