-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Description
Capacitor Version
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 8.0.2
@capacitor/core: 8.0.2
@capacitor/android: 8.0.2
@capacitor/ios: 8.0.2
Installed Dependencies:
@capacitor/cli: 8.0.0
@capacitor/core: 8.0.0
@capacitor/android: 8.0.0
@capacitor/ios: 8.0.0
[success] iOS looking great! 👌
Other API Details
npm --version output:
10.x
node --version output:
v20.x
pod --version output (iOS Cocoapods issues only):
Not applicable (this project explicitly uses Swift Package Manager, not CocoaPods)
Capacitor CLI:
@capacitor/cli 8.x
Capacitor iOS:
@capacitor/ios 8.x
Xcode:
Xcode 15.x
macOS:
macOS Sonoma
Additional details:
- iOS platform added using: npx cap add ios --packagemanager SPM
- CocoaPods is NOT installed or used
- CapApp-SPM/Package.swift is generated successfully
- Capacitor reports plugins found for iOS
- However, Xcode does not expose any plugin products from CapApp-SPM
- This blocks linking plugins to the App target entirelyPlatforms Affected
- iOS
- Android
- Web
Current Behavior
After running npx cap add ios --packagemanager SPM:
- CapApp-SPM should appear in Xcode's Package Dependencies ✓ (works)
- CapApp-SPM products (CapacitorApp, plugin libraries) should be available in "Frameworks, Libraries, and Embedded Content" ✗ (broken)
- These products should be auto-linked to the App target, or at minimum be selectable manually
The SPM workflow should match the CocoaPods experience where plugins are automatically available after cap sync.
Expected Behavior
https://github.com/user/capacitor-spm-bug-repro
Steps:
- Create new Capacitor 8 project
- Install plugins: npm install @capacitor/camera @capacitor/haptics
- Run: npx cap add ios --packagemanager SPM
- Open ios/App/App.xcodeproj in Xcode 15+
- Navigate to App target → General → Frameworks
- Click "+" and observe no CapApp-SPM products available
Project Reproduction
Additional Information

Reactions are currently unavailable