Jintin / Swimat

An Xcode formatter plug-in to format your swift code.
https://jintin.github.io/Swimat/
MIT License
1.65k stars 89 forks source link

Swimat 1.7.0 fails to build on macOS Ventura #244

Open iMichka opened 1 year ago

iMichka commented 1 year ago

What is the issue

Building (with homebrew) on macOS Ventura fails:

==> xcodebuild -arch x86_64 -target CLI -configuration Release SYMROOT=build
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -arch x86_64 -target CLI -configuration Release SYMROOT=build

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
2023-03-06 20:10:02.205 xcodebuild[27821:4532898]  DVTErrorPresenter: Unable to load simulator devices.
Domain: DVTCoreSimulatorAdditionsErrorDomain
Code: 3
Failure Reason: The version of the CoreSimulator framework installed on this Mac is out-of-date and not supported by this version of Xcode.
Recovery Suggestion: Please ensure that you have installed all available updates to your Mac's software, and that you are running the most recent version of Xcode supported by macOS.
--
CoreSimulator is out of date. Current version (857.7.0) is older than build version (857.14.0).
Domain: DVTCoreSimulatorAdditionsErrorDomain
Code: 3
--
    ARCHS = x86_64
    SYMROOT = build

2023-03-06 20:10:02.205 xcodebuild[27821:4532898]  iOSSimulator: [SimServiceContext sharedServiceContextForDeveloperDir:error:] returned nil (Error Domain=DVTCoreSimulatorAdditionsErrorDomain Code=3 "CoreSimulator is out of date. Current version (857.7.0) is older than build version (857.14.0)." UserInfo={NSLocalizedDescription=CoreSimulator is out of date. Current version (857.7.0) is older than build version (857.14.0).}). Simulator device support disabled.
Computing target dependency graph and provisioning inputs

Create build description
Build description signature: 4f25eb92fec9855b9b5ab50930989c71
Build description path: /tmp/swimat-20230306-27792-sjf1eg/Swimat-1.7.0/build/XCBuildData/4f25eb92fec9855b9b5ab50930989c71-desc.xcbuild

warning: Building targets in manual order is deprecated - check "Parallelize build for command-line builds" in the project editor, or set DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING in any of the targets in the current build to suppress this warning
/tmp/swimat-20230306-27792-sjf1eg/Swimat-1.7.0/Swimat.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.12, but the range of supported deployment target versions is 10.13 to 13.1.99. (in target 'CLI' from project 'Swimat')
/tmp/swimat-20230306-27792-sjf1eg/Swimat-1.7.0/Swimat.xcodeproj: error: No signing certificate "Mac Development" found: No "Mac Development" signing certificate matching team ID "2HR4N2E675" with a private key was found. (in target 'CLI' from project 'Swimat')
** BUILD FAILED **

Expected behavior A working build.

Desktop (please complete the following information):

Additional context Looks like there is an issue with code signing::

error: No signing certificate "Mac Development" found: No "Mac Development" signing certificate matching team ID "2HR4N2E675" with a private key was found.