fix(watch): rename watch target to SwimBuddy Watch for Xcode compatibility
This commit is contained in:
@@ -43,7 +43,7 @@ if (content.includes(SENTRY_REPO_URL)) {
|
||||
|
||||
// ── Find watch target UUID ──
|
||||
const watchTargetMatch = content.match(
|
||||
/(\w{24})\s*\/\* SwimBuddy \*\/\s*=\s*\{\s*\n\s*isa = PBXNativeTarget;\s*\n\s*buildConfigurationList = XX792EB48D81CD7C6C71DCXX/
|
||||
/(\w{24})\s*\/\* SwimBuddy Watch \*\/\s*=\s*\{\s*\n\s*isa = PBXNativeTarget;\s*\n\s*buildConfigurationList = \w+ /
|
||||
);
|
||||
if (!watchTargetMatch) {
|
||||
console.error("Watch target not found");
|
||||
@@ -55,7 +55,7 @@ console.log(`Watch target: ${watchTargetUuid}`);
|
||||
// ── Find watch target's Frameworks build phase UUID ──
|
||||
const watchTargetBlock = content.match(
|
||||
new RegExp(
|
||||
`${watchTargetUuid}\\s*\\/\\* SwimBuddy \\*\\/\\s*=\\s*\\{[\\s\\S]*?buildPhases\\s*=\\s*\\(([\\s\\S]*?)\\);`
|
||||
`${watchTargetUuid}\\s*\\/\\* SwimBuddy Watch \\*\\/\\s*=\\s*\\{[\\s\\S]*?buildPhases\\s*=\\s*\\(([\\s\\S]*?)\\);`
|
||||
)
|
||||
);
|
||||
if (!watchTargetBlock) {
|
||||
@@ -143,7 +143,7 @@ if (!content.includes("packageReferences = (")) {
|
||||
const prodDepComment = `${prodDepId} /* ${SENTRY_PRODUCT} */`;
|
||||
// Find the watch target block and check if packageProductDependencies exists
|
||||
const wtPattern = new RegExp(
|
||||
`(${watchTargetUuid}\\s*\\/\\* SwimBuddy \\*\\/ = \\{[\\s\\S]*?fileSystemSynchronizedGroups = \\([\\s\\S]*?\\);[\\s\\S]*?)(name = )`
|
||||
`(${watchTargetUuid}\\s*\\/\\* SwimBuddy Watch \\*\\/ = \\{[\\s\\S]*?fileSystemSynchronizedGroups = \\([\\s\\S]*?\\);[\\s\\S]*?)(name = )`
|
||||
);
|
||||
const wtMatch = content.match(wtPattern);
|
||||
if (wtMatch && !content.includes("packageProductDependencies")) {
|
||||
|
||||
Reference in New Issue
Block a user