melvitax / DateHelper

A Swift Date extension helper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use pod_target_xcconfig instead of xcconfig in the podspec or remove it

weakfl opened this issue · comments

Could you please remove s.xcconfig from your podspec or replace it with pod_target_xcconfig?

Using xcconfig in your podspec will lead cocoapods to set SWIFT_VERSION to 3.1 for the project target on pod install, which is wrong if using Xcode 9 / Swift 4. The only workaround is to overwrite the SWIFT_VERSION in the project traget, which in turn will cause cocoapods to complain about the target overriding the SWIFT_VERSION setting.

See CocoaPods/issues/5952 for reference.

Sorry, duplicate of #68