Skip to content

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

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

Closed
wants to merge 1 commit into from
Closed

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

wants to merge 1 commit into from

Conversation

jberkel
Copy link
Collaborator

@jberkel jberkel commented Oct 18, 2022

No description provided.

@jberkel jberkel changed the title Run on macOS 12 Run CI on macOS 12 Oct 18, 2022
@jberkel
Copy link
Collaborator Author

jberkel commented Oct 18, 2022

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

@jberkel jberkel added this to the 0.14.0 milestone Oct 18, 2022
@nathanfallet
Copy link
Collaborator

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

@nathanfallet
Copy link
Collaborator

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
Copy link
Collaborator Author

jberkel commented Oct 19, 2022

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

@jberkel
Copy link
Collaborator Author

jberkel commented Oct 19, 2022

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
Copy link
Collaborator Author

jberkel commented Oct 19, 2022

OK, it's a known problem with the pod lib lint: CocoaPods/CocoaPods#11558

@jberkel jberkel changed the title Run CI on macOS 12 Run CI on macOS 12 (do not merge) Oct 19, 2022
@jberkel
Copy link
Collaborator Author

jberkel commented Oct 19, 2022

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 jberkel removed this from the 0.14.0 milestone Oct 19, 2022
Bump deployment targets

Disable watchOS validation

CocoaPods/CocoaPods#11558

Adjust deployment targets for Xcode 14
@jberkel
Copy link
Collaborator Author

jberkel commented May 21, 2023

now #1206

@jberkel jberkel closed this May 21, 2023
@jberkel jberkel deleted the macos-12 branch May 22, 2023 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants