fix(cli): use relative iOS SPM plugin symlinks
Description
Create iOS SPM plugin symlinks with paths relative to the symlink directory so they work across machines and checkout locations. Raise the CLI’s fs-extra minimum to ^11.3.4 to support repeated syncs with relative symlink targets.
Change Type
- Fix
- Feature
- Refactor
- Breaking Change
- Documentation
- Other (CI, chores, etc.)
Rationale / Problems Fixed
Fixes #8704. Absolute symlink targets point to a machine-specific node_modules path and make the iOS project non-portable.
Tests or Reproductions
Built the CLI and tested it in a new iOS SPM app with @capacitor-firebase/messaging configured with symlink: true. Ran npx cap sync ios twice. Both runs completed successfully, and readlink returned:
../../../../node_modules/@capacitor-firebase/messaging
Screenshots / Media
Terminal screenshot available showing a successful sync and the relative symlink target.
Platforms Affected
- Android
- iOS
- Web
Notes / Comments
The CLI was built, and the fix was verified with a manual iOS SPM app reproduction. The CLI Jest suite passed: 13 suites and 141 tests.