Fix multiple issues preventing iOS builds and TypeScript compilation:
- Fix postinstall script to handle missing directories gracefully
- Create assets directory if it doesn't exist before writing capacitor.plugins.json
- Don't exit on error if Capacitor hasn't synced yet (allows npm install to succeed)
- Fix TypeScript compilation errors
- Add optional fields to PermissionStatus interface (exactAlarmEnabled, wakeLockEnabled, allPermissionsGranted)
- Fix type assertion in HomeView.vue to use 'as any' for dynamic plugin methods
- Fix Podfile configuration issues
- Update fix script to detect correct pod path (node_modules vs file dependency)
- Fix pod name from TimesafariDailyNotificationPlugin to DailyNotificationPlugin
- Handle both node_modules and relative paths for file dependencies
- Update iOS sync workflow
- Add fix script to cap:sync:ios (runs before and after sync)
- Automatically run pod install after fixing Podfile
- Handle cap sync failures gracefully with || true
- Update documentation
- Reflect that iOS sync now includes fix script
- Note that pod install is handled automatically
- Update troubleshooting section for Podfile errors
Fixes:
- npm install failing due to missing assets directory
- TypeScript build errors in typed-plugin.ts and HomeView.vue
- iOS pod install failing with "No podspec found for TimesafariDailyNotificationPlugin"
- Capacitor sync overwriting Podfile with incorrect pod name