nativescript 9.0.3-next.2026-01-31-21540878951 → 9.0.4-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,9 @@ class IOSEntitlementsService {
21
21
  }
22
22
  getPlatformsEntitlementsPath(projectData) {
23
23
  var _a;
24
- return path.join(projectData.platformsDir, (_a = this.$options.platformOverride) !== null && _a !== void 0 ? _a : this.$devicePlatformsConstants.iOS.toLowerCase(), projectData.projectName, projectData.projectName + ".entitlements");
24
+ return path.join(projectData.platformsDir, this.$mobileHelper
25
+ .normalizePlatformName((_a = this.$options.platformOverride) !== null && _a !== void 0 ? _a : this.$devicePlatformsConstants.iOS)
26
+ .toLowerCase(), projectData.projectName, projectData.projectName + ".entitlements");
25
27
  }
26
28
  getPlatformsEntitlementsRelativePath(projectData) {
27
29
  return path.join(projectData.projectName, projectData.projectName + ".entitlements");
@@ -72,6 +72,7 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
72
72
  this.$mobileHelper = $mobileHelper;
73
73
  this.$projectConfigService = $projectConfigService;
74
74
  this._platformsDirCache = null;
75
+ this._platformOverrideCache = null;
75
76
  this._platformData = null;
76
77
  // Track added frameworks by name to prevent duplicates in monorepo/workspace setups
77
78
  // where the same plugin may exist in multiple node_modules paths
@@ -80,14 +81,16 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
80
81
  this._addedStaticLibs = new Set();
81
82
  }
82
83
  getPlatformData(projectData) {
83
- var _a;
84
+ var _a, _b;
84
85
  if (!projectData && !this._platformData) {
85
86
  throw new Error("First call of getPlatformData without providing projectData.");
86
87
  }
88
+ const currentOverride = (_a = this.$options.platformOverride) !== null && _a !== void 0 ? _a : null;
87
89
  if (projectData &&
88
90
  projectData.platformsDir &&
89
- this._platformsDirCache !== projectData.platformsDir) {
90
- const platform = this.$mobileHelper.normalizePlatformName((_a = this.$options.platformOverride) !== null && _a !== void 0 ? _a : this.$devicePlatformsConstants.iOS);
91
+ (this._platformsDirCache !== projectData.platformsDir ||
92
+ this._platformOverrideCache !== currentOverride)) {
93
+ const platform = this.$mobileHelper.normalizePlatformName((_b = this.$options.platformOverride) !== null && _b !== void 0 ? _b : this.$devicePlatformsConstants.iOS);
91
94
  const projectRoot = this.$options.hostProjectPath
92
95
  ? this.$options.hostProjectPath
93
96
  : path.join(projectData.platformsDir, platform.toLowerCase());
@@ -145,6 +148,8 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
145
148
  ".xbm",
146
149
  ], // https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImage_Class/
147
150
  };
151
+ this._platformsDirCache = projectData.platformsDir;
152
+ this._platformOverrideCache = currentOverride;
148
153
  }
149
154
  return this._platformData;
150
155
  }
@@ -352,10 +357,10 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
352
357
  this.savePbxProj(project, projectData);
353
358
  }
354
359
  async prepareProject(projectData, prepareData) {
360
+ const platformData = this.getPlatformData(projectData);
355
361
  const projectRoot = this.$options.hostProjectPath
356
362
  ? this.$options.hostProjectPath
357
- : path.join(projectData.platformsDir, this.$devicePlatformsConstants.iOS.toLowerCase());
358
- const platformData = this.getPlatformData(projectData);
363
+ : platformData.projectRoot;
359
364
  const pluginsData = this.getAllProductionPlugins(projectData);
360
365
  const pbxProjPath = this.getPbxProjPath(projectData);
361
366
  this.$iOSExtensionsService.removeExtensions({ pbxProjPath });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nativescript",
3
3
  "main": "./lib/nativescript-cli-lib.js",
4
- "version": "9.0.3-next.2026-01-31-21540878951",
4
+ "version": "9.0.4-dev.0",
5
5
  "author": "NativeScript <oss@nativescript.org>",
6
6
  "description": "Command-line interface for building NativeScript projects",
7
7
  "bin": {