From 8f33df5c3d2371b01de5ef085db6a714907fdb4c Mon Sep 17 00:00:00 2001 From: sravan Date: Mon, 20 Jul 2026 21:15:56 +0530 Subject: [PATCH] fix(ios): rename podspec to AudioRoute.podspec so cap sync/pod install resolves it Capacitor derives the pod name from the npm package name (audio-route -> AudioRoute) and writes 'pod AudioRoute, :path => ../../plugins/audio-route' into the generated Podfile. CocoaPods then requires a file literally named AudioRoute.podspec whose s.name is 'AudioRoute'. The old AudioRoutePlugin.podspec (s.name AudioRoutePlugin) caused the Codemagic build to fail with 'No podspec found for AudioRoute'. Co-Authored-By: Claude Opus 4.8 --- .../{AudioRoutePlugin.podspec => AudioRoute.podspec} | 6 +++++- mobile/plugins/audio-route/package.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) rename mobile/plugins/audio-route/{AudioRoutePlugin.podspec => AudioRoute.podspec} (53%) diff --git a/mobile/plugins/audio-route/AudioRoutePlugin.podspec b/mobile/plugins/audio-route/AudioRoute.podspec similarity index 53% rename from mobile/plugins/audio-route/AudioRoutePlugin.podspec rename to mobile/plugins/audio-route/AudioRoute.podspec index 33586ab..90a0f6c 100644 --- a/mobile/plugins/audio-route/AudioRoutePlugin.podspec +++ b/mobile/plugins/audio-route/AudioRoute.podspec @@ -3,7 +3,11 @@ require 'json' package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) Pod::Spec.new do |s| - s.name = 'AudioRoutePlugin' + # NOTE: the pod name MUST be 'AudioRoute' (PascalCase of the npm package name 'audio-route'). + # Capacitor's `cap sync` writes `pod 'AudioRoute', :path => '../../plugins/audio-route'` into the + # generated Podfile, and CocoaPods then looks for a file literally named AudioRoute.podspec whose + # s.name is 'AudioRoute'. Any other name → "No podspec found for `AudioRoute`" and pod install fails. + s.name = 'AudioRoute' s.version = package['version'] s.summary = package['description'] s.license = package['license'] diff --git a/mobile/plugins/audio-route/package.json b/mobile/plugins/audio-route/package.json index 602014d..2699743 100644 --- a/mobile/plugins/audio-route/package.json +++ b/mobile/plugins/audio-route/package.json @@ -10,7 +10,7 @@ "files": [ "dist/", "ios/", - "AudioRoutePlugin.podspec" + "AudioRoute.podspec" ], "capacitor": { "ios": {