diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d99ebf83..014437e17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,10 @@ [John Fairhurst](https://github.com/johnfairh) [#972](https://github.com/realm/jazzy/issues/972) +* Fix error compiling a Swift podspec in Xcode 10. + [Minh Nguyễn](https://github.com/1ec5) + [#970](https://github.com/realm/jazzy/issues/970) + ## 0.9.3 ##### Breaking diff --git a/lib/jazzy/podspec_documenter.rb b/lib/jazzy/podspec_documenter.rb index 419c746c5..fbd2b2094 100644 --- a/lib/jazzy/podspec_documenter.rb +++ b/lib/jazzy/podspec_documenter.rb @@ -28,7 +28,7 @@ def sourcekitten_output(config) targets.map do |t| args = %W[doc --module-name #{podspec.module_name} -- -target #{t}] swift_version = (config.swift_version || '4')[0] + '.0' - args << "SWIFT_VERSION=\"#{swift_version}\"" + args << "SWIFT_VERSION=#{swift_version}" SourceKitten.run_sourcekitten(args) end end