fix(watch): rename watch target to SwimBuddy Watch for Xcode compatibility
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
"appExtensions": [
|
||||
{
|
||||
"bundleIdentifier": "nl.guido-it.swimbuddy.watch",
|
||||
"targetName": "SwimBuddy",
|
||||
"targetName": "SwimBuddy Watch",
|
||||
"entitlements": {
|
||||
"com.apple.security.application-groups": [
|
||||
"group.nl.guido-it.swimbuddy"
|
||||
|
||||
@@ -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")) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @type {import('@bacons/apple-targets/app.plugin').ConfigFunction} */
|
||||
module.exports = (config) => ({
|
||||
name: config.name,
|
||||
name: `${config.name} Watch`,
|
||||
type: "watch",
|
||||
icon: "../../assets/icon.png",
|
||||
deploymentTarget: "10.0",
|
||||
|
||||
Reference in New Issue
Block a user