nativescript 9.0.4-dev.3 → 9.0.4-next.2026-02-01-21556136235

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.
@@ -8,12 +8,11 @@ const _ = require("lodash");
8
8
  const yok_1 = require("../../common/yok");
9
9
  const constants = require("../../constants");
10
10
  class IOSSigningService {
11
- constructor($errors, $fs, $iOSProvisionService, $logger, $options, $pbxprojDomXcode, $prompter, $xcconfigService, $xcprojService) {
11
+ constructor($errors, $fs, $iOSProvisionService, $logger, $pbxprojDomXcode, $prompter, $xcconfigService, $xcprojService) {
12
12
  this.$errors = $errors;
13
13
  this.$fs = $fs;
14
14
  this.$iOSProvisionService = $iOSProvisionService;
15
15
  this.$logger = $logger;
16
- this.$options = $options;
17
16
  this.$pbxprojDomXcode = $pbxprojDomXcode;
18
17
  this.$prompter = $prompter;
19
18
  this.$xcconfigService = $xcconfigService;
@@ -151,7 +150,6 @@ class IOSSigningService {
151
150
  return [];
152
151
  }
153
152
  async getManualSigningConfiguration(projectData, provision, mobileProvisionData) {
154
- var _a;
155
153
  const pickStart = Date.now();
156
154
  const mobileprovision = mobileProvisionData ||
157
155
  (await this.$iOSProvisionService.pick(provision, projectData.projectIdentifiers.ios));
@@ -164,7 +162,6 @@ class IOSSigningService {
164
162
  if (!mobileprovision) {
165
163
  this.$errors.fail("Failed to find mobile provision with UUID or Name: " + provision);
166
164
  }
167
- const isVisionOS = ((_a = this.$options.platformOverride) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === "visionos";
168
165
  const configuration = {
169
166
  team: mobileprovision.TeamIdentifier &&
170
167
  mobileprovision.TeamIdentifier.length > 0
@@ -173,12 +170,8 @@ class IOSSigningService {
173
170
  uuid: mobileprovision.UUID,
174
171
  name: mobileprovision.Name,
175
172
  identity: mobileprovision.Type === "Development"
176
- ? isVisionOS
177
- ? "Apple Development"
178
- : "iPhone Developer"
179
- : isVisionOS
180
- ? "Apple Distribution"
181
- : "iPhone Distribution",
173
+ ? "iPhone Developer"
174
+ : "iPhone Distribution",
182
175
  };
183
176
  return configuration;
184
177
  }
@@ -72,11 +72,6 @@ class XcodebuildArgsService {
72
72
  .concat(architectures)
73
73
  .concat(this.getBuildCommonArgs(platformData, projectData, isvisionOS ? ios_project_service_1.VisionDevicePlatformSdkName : ios_project_service_1.DevicePlatformSdkName))
74
74
  .concat(this.getBuildLoggingArgs());
75
- // pbxproj-dom sets CODE_SIGN_IDENTITY[sdk=iphoneos*] which doesn't match
76
- // the xros SDK used by visionOS builds — pass it explicitly as an override
77
- if (isvisionOS) {
78
- args.push(`CODE_SIGN_IDENTITY=${buildConfig.release ? "Apple Distribution" : "Apple Development"}`);
79
- }
80
75
  return args;
81
76
  }
82
77
  async getArchitecturesArgs(buildConfig) {
@@ -21,9 +21,7 @@ class IOSEntitlementsService {
21
21
  }
22
22
  getPlatformsEntitlementsPath(projectData) {
23
23
  var _a;
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");
24
+ return path.join(projectData.platformsDir, (_a = this.$options.platformOverride) !== null && _a !== void 0 ? _a : this.$devicePlatformsConstants.iOS.toLowerCase(), projectData.projectName, projectData.projectName + ".entitlements");
27
25
  }
28
26
  getPlatformsEntitlementsRelativePath(projectData) {
29
27
  return path.join(projectData.projectName, projectData.projectName + ".entitlements");
@@ -72,7 +72,6 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
72
72
  this.$mobileHelper = $mobileHelper;
73
73
  this.$projectConfigService = $projectConfigService;
74
74
  this._platformsDirCache = null;
75
- this._platformOverrideCache = null;
76
75
  this._platformData = null;
77
76
  // Track added frameworks by name to prevent duplicates in monorepo/workspace setups
78
77
  // where the same plugin may exist in multiple node_modules paths
@@ -81,16 +80,14 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
81
80
  this._addedStaticLibs = new Set();
82
81
  }
83
82
  getPlatformData(projectData) {
84
- var _a, _b;
83
+ var _a;
85
84
  if (!projectData && !this._platformData) {
86
85
  throw new Error("First call of getPlatformData without providing projectData.");
87
86
  }
88
- const currentOverride = (_a = this.$options.platformOverride) !== null && _a !== void 0 ? _a : null;
89
87
  if (projectData &&
90
88
  projectData.platformsDir &&
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);
89
+ this._platformsDirCache !== projectData.platformsDir) {
90
+ const platform = this.$mobileHelper.normalizePlatformName((_a = this.$options.platformOverride) !== null && _a !== void 0 ? _a : this.$devicePlatformsConstants.iOS);
94
91
  const projectRoot = this.$options.hostProjectPath
95
92
  ? this.$options.hostProjectPath
96
93
  : path.join(projectData.platformsDir, platform.toLowerCase());
@@ -148,8 +145,6 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
148
145
  ".xbm",
149
146
  ], // https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImage_Class/
150
147
  };
151
- this._platformsDirCache = projectData.platformsDir;
152
- this._platformOverrideCache = currentOverride;
153
148
  }
154
149
  return this._platformData;
155
150
  }
@@ -357,10 +352,10 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
357
352
  this.savePbxProj(project, projectData);
358
353
  }
359
354
  async prepareProject(projectData, prepareData) {
360
- const platformData = this.getPlatformData(projectData);
361
355
  const projectRoot = this.$options.hostProjectPath
362
356
  ? this.$options.hostProjectPath
363
- : platformData.projectRoot;
357
+ : path.join(projectData.platformsDir, this.$devicePlatformsConstants.iOS.toLowerCase());
358
+ const platformData = this.getPlatformData(projectData);
364
359
  const pluginsData = this.getAllProductionPlugins(projectData);
365
360
  const pbxProjPath = this.getPbxProjPath(projectData);
366
361
  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.4-dev.3",
4
+ "version": "9.0.4-next.2026-02-01-21556136235",
5
5
  "author": "NativeScript <oss@nativescript.org>",
6
6
  "description": "Command-line interface for building NativeScript projects",
7
7
  "bin": {