Skip to content

Commit 7390535

Browse files
committed
fix(capacitor-ios): add root-level podspec for CocoaPods discovery
Capacitor CLI generates Podfile entries pointing to the plugin package root, but the podspec was only in ios/. This caused pod install to fail with "No podspec found" when using the plugin as a local dependency.
1 parent 9510ed2 commit 7390535

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
require 'json'
2+
3+
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4+
5+
Pod::Spec.new do |s|
6+
s.name = 'CapacitorPluginPurchase'
7+
s.version = package['version']
8+
s.summary = package['description']
9+
s.license = package['license']
10+
s.homepage = package['repository']['url']
11+
s.author = 'Jean-Christophe Hoelt'
12+
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13+
s.source_files = 'ios/Sources/PurchasePlugin/**/*.{swift,h,m}'
14+
s.ios.deployment_target = '15.0'
15+
s.swift_version = '5.9'
16+
s.dependency 'Capacitor'
17+
s.frameworks = 'StoreKit'
18+
end

0 commit comments

Comments
 (0)