Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building swift-log backend for watchOS fails on Xcode 15 #1375

Closed
allenlooplee opened this issue Sep 20, 2023 · 4 comments · Fixed by #1416
Closed

Building swift-log backend for watchOS fails on Xcode 15 #1375

allenlooplee opened this issue Sep 20, 2023 · 4 comments · Fixed by #1416

Comments

@allenlooplee
Copy link

Checklist

Describe the bug
I'm currently using CocoaLumberjack as a backend of SwiftLog. It worked fine previously until I updated Xcode to 15 and watchOS simulator to 10 last night. Below is the error message during build:

Build target CocoaLumberjackSwiftLogBackend with configuration Debug
error: The package product 'Logging' requires minimum platform version 5.0 for the watchOS platform, but this target supports 4.0 (in target 'CocoaLumberjackSwiftLogBackend' from project 'CocoaLumberjack')

The package product 'Logging' requires minimum platform version 5.0 for the watchOS platform, but this target supports 4.0

To Reproduce
Steps to reproduce the behavior:

  1. Add CocoaLumberjack and use it as a backend of SwiftLog
  2. Update Xcode to 15 and watchOS simulator to 10
  3. Build the project

Expected behavior
The project should build successfully.

Screenshots

Screenshot 2023-09-20 at 12 01 05

Environment info

Info Value
Platform Name watchos
Platform Version 10
CocoaLumberjack Version 3.8.1
Integration Method spm
Xcode Version Xcode 15.0
Repro rate all the time (100%)
Repro project link N/A

Additional context
SwiftLog was added automatically as a dependency of CocoaLumberjack by SPM. The version of SwiftLog is 1.5.3.

@ffried
Copy link
Member

ffried commented Sep 20, 2023

This is a weird one.
According to Xcode 15's Release Notes, the minimum supported watchOS version is 4.0:

image

The manifest for swift-log does not list any supported platforms. In my understanding, this should result in Xcode's / Swift's lowest supported platform version.

I'll have to investigate further, but this could be a bug on Apple's side.

@ffried ffried changed the title Build target CocoaLumberjackSwiftLogBackend failed on Xcode 15 Building swift-log backend for watchOS fails on Xcode 15 Sep 20, 2023
@ffried ffried pinned this issue Sep 20, 2023
@ffried
Copy link
Member

ffried commented Oct 5, 2023

For the record, I've opened an issue with the Swift package manager for this.

@wunderk1nd-e
Copy link

wunderk1nd-e commented Oct 23, 2023

Has anyone found a workaround for this by any chance?

Update: Ended up using CocoaLumberjack through Carthage for the timebeing and appears to be working fine.

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants