Skip to content

Commit 042b6f7

Browse files
committed
fix: use repo-root-relative paths in Swift podspec
source_files and license file paths in a podspec are resolved relative to the repo root (defined by s.source), not relative to the podspec file location. The existing paths only worked for local pod references and broke on `pod trunk push`. - source_files: Sources/**/*.swift -> mParticle-Apple-SDK-Swift/Sources/**/*.swift - license file: ../LICENSE -> LICENSE
1 parent 442e506 commit 042b6f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mParticle-Apple-SDK-Swift/mParticle-Apple-SDK-Swift.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Pod::Spec.new do |s|
99
DESC
1010

1111
s.homepage = "https://www.mparticle.com"
12-
s.license = { :type => 'Apache 2.0', :file => '../LICENSE'}
12+
s.license = { :type => 'Apache 2.0', :file => 'LICENSE'}
1313
s.author = { "mParticle" => "support@mparticle.com" }
1414
s.source = { :git => "https://github.com/mParticle/mparticle-apple-sdk.git", :tag => "v" + s.version.to_s }
1515
s.documentation_url = "https://docs.mparticle.com/developers/sdk/ios/"
@@ -19,5 +19,5 @@ Pod::Spec.new do |s|
1919
s.tvos.deployment_target = "15.6"
2020
s.swift_versions = ["5.0"]
2121

22-
s.source_files = 'Sources/**/*.swift'
22+
s.source_files = 'mParticle-Apple-SDK-Swift/Sources/**/*.swift'
2323
end

0 commit comments

Comments
 (0)