-
Notifications
You must be signed in to change notification settings - Fork 8
Refactor iOS project structure and update dependencies #314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
damiant
commented
Nov 15, 2025
- Removed unnecessary Pods and related configurations from Xcode project.
- Deleted Podfile and Podfile.lock to clean up CocoaPods integration.
- Updated Capacitor and related community plugins to their latest versions.
- Introduced Swift Package Manager (SPM) support with a new Package.swift file.
- Added a new CapApp-SPM directory to manage SPM dependencies.
- Updated Info.plist to include a new CAPACITOR_DEBUG key.
- Created a debug.xcconfig file to define CAPACITOR_DEBUG variable.
- Cleaned up Xcode workspace files to streamline project management.
- Removed unnecessary Pods and related configurations from Xcode project. - Deleted Podfile and Podfile.lock to clean up CocoaPods integration. - Updated Capacitor and related community plugins to their latest versions. - Introduced Swift Package Manager (SPM) support with a new Package.swift file. - Added a new CapApp-SPM directory to manage SPM dependencies. - Updated Info.plist to include a new CAPACITOR_DEBUG key. - Created a debug.xcconfig file to define CAPACITOR_DEBUG variable. - Cleaned up Xcode workspace files to streamline project management.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR migrates the iOS project from CocoaPods to Swift Package Manager (SPM), updating Capacitor and related plugin dependencies to their latest versions while adding debug configuration support.
- Updated Capacitor core packages from 7.4.2 to 7.4.4
- Migrated dependency management from CocoaPods to Swift Package Manager
- Added debug configuration with CAPACITOR_DEBUG flag
Reviewed Changes
Copilot reviewed 10 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| package.json | Updated Capacitor core (android, ios, core, cli) to 7.4.4 and community plugins (@capacitor-community/in-app-review to 7.1.0, @webnativellc plugins to 7.1.0) |
| ios/debug.xcconfig | New debug configuration file defining CAPACITOR_DEBUG variable |
| ios/App/Podfile.lock | Removed CocoaPods lock file as part of migration to SPM |
| ios/App/Podfile | Removed CocoaPods configuration file as part of migration to SPM |
| ios/App/CapApp-SPM/Sources/CapApp-SPM/CapApp-SPM.swift | New SPM module source file with Capacitor app flag |
| ios/App/CapApp-SPM/README.md | Documentation for the SPM dependency management directory |
| ios/App/CapApp-SPM/Package.swift | SPM package manifest defining all Capacitor plugin dependencies |
| ios/App/CapApp-SPM/.gitignore | Git ignore rules for SPM build artifacts and derived data |
| ios/App/App/Info.plist | Added CAPACITOR_DEBUG key referencing the xcconfig variable |
| ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist | Removed obsolete Xcode workspace check file |
| ios/App/App.xcworkspace/contents.xcworkspacedata | Removed workspace reference to Pods project |
| ios/App/App.xcodeproj/project.pbxproj | Removed CocoaPods integration (Pods framework references, build phases, and xcconfig references) |
| bun.lock | Updated lock file reflecting new dependency versions |
Files not reviewed (1)
- ios/App/App.xcworkspace/contents.xcworkspacedata: Language not supported
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 63 out of 69 changed files in this pull request and generated no new comments.
Files not reviewed (1)
- ios/App/App.xcworkspace/contents.xcworkspacedata: Language not supported
- Introduced the @capacitor/motion plugin to handle device orientation. - Refactored the compass setup to utilize the Motion plugin instead of the deprecated navigator.compass. - Removed the unused compass error handling code and updated related variables for clarity.