stephencelis / SQLite.swift

A type-safe, Swift-language layer over SQLite3.
MIT License
9.57k stars 1.54k forks source link

Run CI on macOS 12 (do not merge) #1164

Closed jberkel closed 1 year ago

jberkel commented 1 year ago

@NathanFallet do you have time to help with the release? i'd like to get the project building with the latest xcode

nathanfallet commented 1 year ago

I need to run it with verbose to check what is not working

nathanfallet commented 1 year ago

Getting this with --verbose:

-> Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
   Building with `xcodebuild`. 
    $ /usr/bin/xcodebuild clean build -workspace /var/folders/jp/3gdnk47j5257nr1r7c8_5q800000gn/T/CocoaPods-Lint-20221019-76978-wm373h-SQLite.swift/App.xcworkspace -scheme App -configuration Release
    CODE_SIGN_IDENTITY=- -sdk watchsimulator -destination id=8709E81B-85AA-4ED2-A96F-0DF3613AFA9C
    Command line invocation:
        /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild clean build -workspace /var/folders/jp/3gdnk47j5257nr1r7c8_5q800000gn/T/CocoaPods-Lint-20221019-76978-wm373h-SQLite.swift/App.xcworkspace -scheme App -configuration Release CODE_SIGN_IDENTITY=- -sdk watchsimulator -destination id=8709E81B-85AA-4ED2-A96F-0DF3613AFA9C

    User defaults from command line:
        IDEPackageSupportUseBuiltinSCM = YES

    Build settings from command line:
        CODE_SIGN_IDENTITY = -
        SDKROOT = watchsimulator9.0

    2022-10-19 15:07:52.604 xcodebuild[77329:908866] Writing error result bundle to /var/folders/jp/3gdnk47j5257nr1r7c8_5q800000gn/T/ResultBundle_2022-19-10_3-07-0052 PM.xcresult
    xcodebuild: error: Unable to find a destination matching the provided destination specifier:
            { id:8709E81B-85AA-4ED2-A96F-0DF3613AFA9C }

        The requested device could not be found because no available devices matched the request.

        Available destinations for the "App" scheme:
            { platform:watchOS, id:dvtdevice-DVTiOSDevicePlaceholder-watchos:placeholder, name:Any watchOS Device }
            { platform:watchOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-watchsimulator:placeholder, name:Any watchOS Simulator Device }
            { platform:watchOS Simulator, id:8709E81B-85AA-4ED2-A96F-0DF3613AFA9C, OS:9.0, name:Apple Watch SE (40mm) (2nd generation) }
            { platform:watchOS Simulator, id:165971A6-DDB5-44D3-A2DA-8CF82851AAF6, OS:9.0, name:Apple Watch Series 5 (40mm) }
            { platform:watchOS Simulator, id:5B31C131-5A4E-4BC2-AF3A-F4073046C323, OS:9.0, name:Apple Watch Series 5 (44mm) }
            { platform:watchOS Simulator, id:0F17F9FD-382C-4F19-AB92-618A2AD97245, OS:9.0, name:Apple Watch Series 6 (40mm) }
            { platform:watchOS Simulator, id:A7EDB5AE-88BA-475B-85E9-33231AB7D90B, OS:9.0, name:Apple Watch Series 6 (44mm) }
            { platform:watchOS Simulator, id:8794E844-8180-4928-8789-85CA93785854, OS:9.0, name:Apple Watch Series 7 (41mm) }
            { platform:watchOS Simulator, id:C34C5D9E-B9A0-4A12-B36C-1F206676D33A, OS:9.0, name:Apple Watch Series 7 (45mm) }
            { platform:watchOS Simulator, id:892FD226-A343-47E3-BF8D-7E855711AB0F, OS:9.0, name:Apple Watch Series 8 (41mm) }
            { platform:watchOS Simulator, id:8228569D-FD33-4154-9B8C-5A2C1D24FE8B, OS:9.0, name:Apple Watch Series 8 (45mm) }
            { platform:watchOS Simulator, id:1ADEA41A-6A09-40CE-B195-64593981809F, OS:9.0, name:Apple Watch Ultra (49mm) }
            { platform:iOS Simulator, id:D2AD7E3E-31DB-43BF-971C-636F430C7C9E, OS:16.0, name:iPhone 14 }
            { platform:iOS Simulator, id:62782A15-3E5E-450C-AC74-C9946E65D67B, OS:16.0, name:iPhone 14 Plus }
            { platform:iOS Simulator, id:8E33A828-05C0-455A-818D-E645E25FBD5D, OS:16.0, name:iPhone 14 Pro }
            { platform:iOS Simulator, id:501B9E14-5070-44C7-B87E-98F29FC0B16F, OS:16.0, name:iPhone 14 Pro Max }

Any idea why 8709E81B-85AA-4ED2-A96F-0DF3613AFA9C is not found in the list of available devices (while it is)?

jberkel commented 1 year ago

No idea, looks like it should work. Have you tried it manually with one of the other ids?

jberkel commented 1 year ago

according to man xcodebuild you can't specify ids for watch simulators:

A watchOS app is always built and deployed nested inside of an iOS app. To use a watchOS device as your destination, specify a scheme which is configured to run a WatchKit app, and specify the iOS platform destination that is paired with the watchOS device you want to use.

jberkel commented 1 year ago

OK, it's a known problem with the pod lib lint: https://github.com/CocoaPods/CocoaPods/issues/11558

jberkel commented 1 year ago

Ok, this works now, but I'm thinking it might be better to support older SDKs for a bit longer. We can keep this PR open to make sure everything works with the newer Xcode/SDKs.

jberkel commented 1 year ago

now #1206