You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1072ba3
Browse filesBrowse the repository at this point in the historyBrowse files
fix: support running from outside the project with --path (#6182)
* fix: don't pass the CLI's own options to package managers
ensureAllDependenciesAreInstalled passes path, frameworkPath, disableNpmInstall and ignoreScripts as install options, and getFlagsString turned them into flags. npm 12 fails on unknown flags, so ns commands that install with --path, like ns debug --path app --force, stopped with EUNKNOWNCONFIG.
* fix(ios): resolve NativeSource paths against the project
They were resolved against the working directory, so running from outside the project with --path found no files and left the group empty, and the build failed on the missing types.
* fix(ios): use the folders of a NativeSource glob's headers as search paths
The glob itself ended up in HEADER_SEARCH_PATHS, where it matches nothing, relative to the Xcode project rather than the app. Folder paths now use the path resolved against the project for the search path and for the module map check as well.
* test: remove the NativeSource tests' temp folders
* fix(ios): keep the configured NativeSource path as the pbxgroup key
nativescript-dev-xcode finds an existing group by the exact (name, path) stored in .ns-build-pbxgroup-data.json. A relative ios.NativeSource folder was stored as written, so passing the resolved absolute path added a second group on the first prepare after upgrading, with every source compiled twice. The configured path stays the key; the files and header search path still use the path resolved against the project.
* fix(ios): don't nest absolute NativeSource glob matches under the project
fast-glob returns absolute matches for an absolute pattern, and joining them onto the project folder produced paths like /proj/proj/src/File.swift. Resolving them against the project keeps absolute matches as they are.
* fix(ios): look for a NativeSource glob's module map next to its headers
For a glob, the module map check looked inside the pattern itself, which never exists, so headers without a module map went unreported. The check now looks in the header search paths, and the folder of any module.modulemap the glob matches is added to them.
* refactor(pnpm): drop option deletes covered by CLI_ONLY_OPTIONS
getFlagsString already skips ignoreScripts, path and frameworkPath for every package manager.
* test: cover --ignore-scripts installs for npm, yarn and bun
Also give the test package manager the base constructor's five arguments, so it is really npm rather than an object.
---------
Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
`warning: Directory ${sourceFolderPath} with native iOS source code doesn't contain a modulemap file. Metadata for it will not be generated and it will not be accessible from JavaScript. To learn more see https://docs.nativescript.org/guides/ios-source-code`,
1559
1584
);
@@ -1597,27 +1622,33 @@ export class IOSProjectService
0 commit comments