Skip to content

Xcode 14.3 has pod lib lint fail #11839

@groue

Description

@groue

Report

What did you do?

Hello,

I ran pod lib lint GRDB.swift.podspec --allow-warnings --verbose from a fresh clone of https://github.com/groue/GRDB.swift/tree/v6.10.1, with Xcode 14.3 (14E222b)

What did you expect to happen?

A success, as with Xcode 14.2. And if pod lib lint succeeds, I can expect pod trunk push to succeed as well.

What happened instead?

An error, unlike Xcode 14.2. And since pod lib lint fails, I'm pretty sure pod trunk push will fail as well: I can't publish new GRDB podspecs with Xcode 14.3.

Relevant lines from the output of the command:

...
    ld: file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_macosx.a
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    
    /var/folders/dp/2xq7_lgj7k5fdnl5xm0s126r0000gn/T/CocoaPods-Lint-20230401-1982-y8jwp9-GRDB.swift/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.9, but the range of supported deployment target versions is 10.13 to 13.3.99. (in target 'SQLCipher' from project 'Pods')
    ** BUILD FAILED **
...
   Testing with `xcodebuild`. 
 -> GRDB.swift (6.10.1)
    - NOTE  | [GRDB.swift/standard,GRDB.swift/SQLCipher] xcodebuild:  note: Using codesigning identity override: -
    - NOTE  | [GRDB.swift/standard,GRDB.swift/SQLCipher] xcodebuild:  note: Building targets in dependency order
    - NOTE  | [GRDB.swift/standard,GRDB.swift/SQLCipher] xcodebuild:  note: Metadata extraction skipped. No AppIntents.framework dependency found. (in target 'GRDB.swift' from project 'Pods')
    - NOTE  | [GRDB.swift/standard,GRDB.swift/SQLCipher] xcodebuild:  note: Metadata extraction skipped. No AppIntents.framework dependency found. (in target 'App' from project 'App')
    - NOTE  | [GRDB.swift/standard,GRDB.swift/SQLCipher] xcodebuild:  note: Using codesigning identity override: 
    - ERROR | [GRDB.swift/SQLCipher] xcodebuild: Returned an unsuccessful exit code.
    - NOTE  | [GRDB.swift/SQLCipher] xcodebuild:  clang: error: linker command failed with exit code 1 (use -v to see invocation)
    - NOTE  | [iOS] [GRDB.swift/SQLCipher] xcodebuild:  Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'SQLCipher' from project 'Pods')
    - NOTE  | [OSX] [GRDB.swift/SQLCipher] xcodebuild:  Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.9, but the range of supported deployment target versions is 10.13 to 13.3.99. (in target 'SQLCipher' from project 'Pods')
    - NOTE  | [watchOS] [GRDB.swift/SQLCipher] xcodebuild:  Pods.xcodeproj: warning: The watchOS Simulator deployment target 'WATCHOS_DEPLOYMENT_TARGET' is set to 2.0, but the range of supported deployment target versions is 4.0 to 9.4.99. (in target 'SQLCipher' from project 'Pods')
    - NOTE  | [tvOS] [GRDB.swift/SQLCipher] xcodebuild:  Pods.xcodeproj: warning: The tvOS Simulator deployment target 'TVOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'SQLCipher' from project 'Pods')

[!] GRDB.swift did not pass validation, due to 1 error.
You can use the `--no-clean` option to inspect any issue.

A Google search for linker error with Xcode 14.3 and libarclite_macosx.a found this page. It looks like the problem is a wrong deployment target.

The log indeed warns:

The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.9, but the range of supported deployment target versions is 10.13 to 13.3.99. (in target 'SQLCipher' from project 'Pods')

But the podspec mentions '10.13' as the macOS deployment target:

  s.ios.deployment_target = '11.0'
  s.osx.deployment_target = '10.13'
  s.watchos.deployment_target = '4.0'
  s.tvos.deployment_target = '11.0'

I don't know how to fix this error.

CocoaPods Environment

Stack

   CocoaPods : 1.12.0
        Ruby : ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]
    RubyGems : 3.4.5
        Host : macOS 13.3 (22E252)
       Xcode : 14.3 (14E222b)
         Git : git version 2.39.2 (Apple Git-143)
Ruby lib dir : /opt/homebrew/Cellar/ruby/3.2.2/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/

Installation Source

Executable Path: /opt/homebrew/lib/ruby/gems/3.2.0/bin/pod

Plugins

cocoapods-deintegrate : 1.0.5
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.1
cocoapods-trunk       : 1.6.0
cocoapods-try         : 1.2.0

Project that demonstrates the issue

https://github.com/groue/GRDB.swift/tree/v6.10.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    d1:easyAn easy ticket that is a good start for first-time contributorshelp wantedHelp from new or existing contributors would be greatly appreciated!s2:confirmedIssues that have been confirmed by a CocoaPods contributort1:enhancementEnhancements that have not been picked up yet. Please comment if you plan to work on it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions