opened
groue
username_0
Hello,

I experience difficulties pushing the latest version of [GRDB.swift](https://github.com/username_0/GRDB.swift/tree/v0.54.0), with the following output of `pod trunk push`:

```
$ pod --version
1.0.0.beta.6
$ pod trunk push
[!] Found podspec `GRDB.swift.podspec`
Updating spec repo `master`
Validating podspec
 -> GRDB.swift (0.54.0)
    - ERROR | xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
    - ERROR | xcodebuild:  GRDB.swift/GRDB/Core/Database.swift:639:23: error: 'localizedCapitalizedString' is only available on iOS 9.0 or newer
    - NOTE  | xcodebuild:  GRDB.swift/GRDB/Core/Database.swift:639:23: note: add 'if #available' version check
    - NOTE  | xcodebuild:  GRDB.swift/GRDB/Core/Database.swift:639:23: note: add @available attribute to enclosing class let
    - NOTE  | xcodebuild:  GRDB.swift/GRDB/Core/Database.swift:639:23: note: add @available attribute to enclosing extension
    - ERROR | xcodebuild:  GRDB.swift/GRDB/Core/Database.swift:658:23: error: 'localizedLowercaseString' is only available on iOS 9.0 or newer
    - NOTE  | xcodebuild:  GRDB.swift/GRDB/Core/Database.swift:658:23: note: add 'if #available' version check
    - NOTE  | xcodebuild:  GRDB.swift/GRDB/Core/Database.swift:658:23: note: add @available attribute to enclosing class let
    - NOTE  | xcodebuild:  GRDB.swift/GRDB/Core/Database.swift:658:23: note: add @available attribute to enclosing extension
    - ERROR | xcodebuild:  GRDB.swift/GRDB/Core/Database.swift:677:23: error: 'localizedUppercaseString' is only available on iOS 9.0 or newer
    - NOTE  | xcodebuild:  GRDB.swift/GRDB/Core/Database.swift:677:23: note: add 'if #available' version check
    - NOTE  | xcodebuild:  GRDB.swift/GRDB/Core/Database.swift:677:23: note: add @available attribute to enclosing class let
    - NOTE  | xcodebuild:  GRDB.swift/GRDB/Core/Database.swift:677:23: note: add @available attribute to enclosing extension
    - ERROR | xcodebuild:  GRDB.swift/GRDB/Core/Database.swift:639:23: error: 'localizedCapitalizedString' is only available on OS X 10.11 or newer
    - ERROR | xcodebuild:  GRDB.swift/GRDB/Core/Database.swift:658:23: error: 'localizedLowercaseString' is only available on OS X 10.11 or newer
    - ERROR | xcodebuild:  GRDB.swift/GRDB/Core/Database.swift:677:23: error: 'localizedUppercaseString' is only available on OS X 10.11 or newer

[!] The podspec does not validate.
```

The errors come form lines that are guarded with an `@available` clause: https://github.com/username_0/GRDB.swift/blob/v0.54.0/GRDB/Core/Database.swift#L621-L679

```swift
@available(iOSApplicationExtension 9.0, OSXApplicationExtension 10.11, *)
...
```

The [podspec](https://github.com/username_0/GRDB.swift/blob/v0.54.0/GRDB.swift.podspec) requires iOS8, because I expect iOS9-only features to be guarded by the `@available` clause seen above:

```ruby
s.ios.deployment_target = '8.0'
```

I don't quite know how to avoid those errors, and update my pod. Do you have any hint?

Thanks in advance,
`pod trunk push` error in relation with Swift availability checking and `@available`
issue
created
groue
username_0
FYI, I could push [v0.54.1](https://github.com/username_0/GRDB.swift/blob/v0.54.1/GRDB.swift.podspec) with an artificial restriction on iOS 9+ and OS X 10.11+ that only applies to CocoaPods.
comment
created
segiddins
username_1
What version of CocoaPods are you using? This ought to be fixed in CocoaPods 1.0.
comment
created
groue
username_0
I was using 1.0.0.beta.6.
comment
created
segiddins
username_1
Ok, please open this up on the main CocoaPods repo so someone can have a look? Thanks!
comment
closed
segiddins
username_1
issue