The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CameraPicker, reference main (9cc327), with Swift 6.4 for watchOS using Xcode 27.0 on 19 Sep 2026 10:05:25 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme CameraPicker -destination generic/platform=watchOS

Build Log

 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 52 |             let preferredMediaTypesSet = Set(preferredMediaTypes.map(\.utTypeIdentifier))
 53 |             let intersection = availableMediaTypesSet.intersection(preferredMediaTypesSet)
 54 |             imagePickerController.mediaTypes = Array(intersection)
    |                                   `- warning: main actor-isolated property 'mediaTypes' can not be mutated from a nonisolated context
 55 |         }
 56 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:81:71: note: mutation of this property is only permitted within the actor
 79 |
 80 | @property(nonatomic)           UIImagePickerControllerSourceType     sourceType;                                                        // default value is UIImagePickerControllerSourceTypePhotoLibrary.
 81 | @property(nonatomic,copy)      NSArray<NSString *>                   *mediaTypes;
    |                                                                       `- note: mutation of this property is only permitted within the actor
 82 |     // default value is an array containing kUTTypeImage.
 83 | @property(nonatomic)           BOOL                                  allowsEditing API_AVAILABLE(ios(3.1));     // replacement for -allowsImageEditing; default value is NO.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:58:35: warning: main actor-isolated property 'videoQuality' can not be mutated from a nonisolated context
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 56 |
 57 |         for case .movie(let quality, let maximumDuration) in preferredMediaTypes {
 58 |             imagePickerController.videoQuality = quality
    |                                   `- warning: main actor-isolated property 'videoQuality' can not be mutated from a nonisolated context
 59 |             imagePickerController.videoMaximumDuration = maximumDuration
 60 |         }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:89:70: note: mutation of this property is only permitted within the actor
 87 | // video properties apply only if mediaTypes includes kUTTypeMovie
 88 | @property(nonatomic)           NSTimeInterval                        videoMaximumDuration API_AVAILABLE(ios(3.1)) API_UNAVAILABLE(visionos); // default value is 10 minutes.
 89 | @property(nonatomic)           UIImagePickerControllerQualityType    videoQuality API_AVAILABLE(ios(3.1)) API_UNAVAILABLE(visionos);         // default value is UIImagePickerControllerQualityTypeMedium. If the cameraDevice does not support the videoQuality, it will use the default value.
    |                                                                      `- note: mutation of this property is only permitted within the actor
 90 | @property(nonatomic, copy)     NSString                              *videoExportPreset API_DEPRECATED("Will be removed in a future release, use PHPicker.", ios(11.0, API_TO_BE_DEPRECATED), visionos(1.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(watchos);  // videoExportPreset can be used to specify the transcoding quality for videos (via a AVAssetExportPreset* string). If the value is nil (the default) then the transcodeQuality is determined by videoQuality instead. Not valid if the source type is UIImagePickerControllerSourceTypeCamera
 91 |
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:59:35: warning: main actor-isolated property 'videoMaximumDuration' can not be mutated from a nonisolated context
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 57 |         for case .movie(let quality, let maximumDuration) in preferredMediaTypes {
 58 |             imagePickerController.videoQuality = quality
 59 |             imagePickerController.videoMaximumDuration = maximumDuration
    |                                   `- warning: main actor-isolated property 'videoMaximumDuration' can not be mutated from a nonisolated context
 60 |         }
 61 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:88:70: note: mutation of this property is only permitted within the actor
 86 |
 87 | // video properties apply only if mediaTypes includes kUTTypeMovie
 88 | @property(nonatomic)           NSTimeInterval                        videoMaximumDuration API_AVAILABLE(ios(3.1)) API_UNAVAILABLE(visionos); // default value is 10 minutes.
    |                                                                      `- note: mutation of this property is only permitted within the actor
 89 | @property(nonatomic)           UIImagePickerControllerQualityType    videoQuality API_AVAILABLE(ios(3.1)) API_UNAVAILABLE(visionos);         // default value is UIImagePickerControllerQualityTypeMedium. If the cameraDevice does not support the videoQuality, it will use the default value.
 90 | @property(nonatomic, copy)     NSString                              *videoExportPreset API_DEPRECATED("Will be removed in a future release, use PHPicker.", ios(11.0, API_TO_BE_DEPRECATED), visionos(1.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(watchos);  // videoExportPreset can be used to specify the transcoding quality for videos (via a AVAssetExportPreset* string). If the value is nil (the default) then the transcodeQuality is determined by videoQuality instead. Not valid if the source type is UIImagePickerControllerSourceTypeCamera
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:62:31: warning: main actor-isolated property 'allowsEditing' can not be mutated from a nonisolated context
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 60 |         }
 61 |
 62 |         imagePickerController.allowsEditing = allowsEditing
    |                               `- warning: main actor-isolated property 'allowsEditing' can not be mutated from a nonisolated context
 63 |         imagePickerController.cameraDevice = cameraDevice
 64 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:83:70: note: mutation of this property is only permitted within the actor
 81 | @property(nonatomic,copy)      NSArray<NSString *>                   *mediaTypes;
 82 |     // default value is an array containing kUTTypeImage.
 83 | @property(nonatomic)           BOOL                                  allowsEditing API_AVAILABLE(ios(3.1));     // replacement for -allowsImageEditing; default value is NO.
    |                                                                      `- note: mutation of this property is only permitted within the actor
 84 | @property(nonatomic)           BOOL                                  allowsImageEditing API_DEPRECATED("", ios(2.0, 3.1)) API_UNAVAILABLE(visionos, watchos);
 85 | @property(nonatomic)           UIImagePickerControllerImageURLExportPreset imageExportPreset API_DEPRECATED("Will be removed in a future release, use PHPicker.", ios(11.0, API_TO_BE_DEPRECATED), visionos(1.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(watchos);  // default value is UIImagePickerControllerImageExportPresetCompatible.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:63:31: warning: main actor-isolated property 'cameraDevice' can not be mutated from a nonisolated context
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 61 |
 62 |         imagePickerController.allowsEditing = allowsEditing
 63 |         imagePickerController.cameraDevice = cameraDevice
    |                               `- warning: main actor-isolated property 'cameraDevice' can not be mutated from a nonisolated context
 64 |
 65 |         if let availableCaptureModes =  UIImagePickerController.availableCaptureModes(for: cameraDevice) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:106:63: note: mutation of this property is only permitted within the actor
104 |
105 | @property(nonatomic) UIImagePickerControllerCameraCaptureMode cameraCaptureMode API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraCaptureModePhoto
106 | @property(nonatomic) UIImagePickerControllerCameraDevice      cameraDevice      API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraDeviceRear
    |                                                               `- note: mutation of this property is only permitted within the actor
107 | @property(nonatomic) UIImagePickerControllerCameraFlashMode   cameraFlashMode   API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraFlashModeAuto.
108 | // cameraFlashMode controls the still-image flash when cameraCaptureMode is Photo. cameraFlashMode controls the video torch when cameraCaptureMode is Video.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:65:65: warning: call to main actor-isolated class method 'availableCaptureModes(for:)' in a synchronous nonisolated context [#ActorIsolatedCall]
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 63 |         imagePickerController.cameraDevice = cameraDevice
 64 |
 65 |         if let availableCaptureModes =  UIImagePickerController.availableCaptureModes(for: cameraDevice) {
    |                                                                 `- warning: call to main actor-isolated class method 'availableCaptureModes(for:)' in a synchronous nonisolated context [#ActorIsolatedCall]
 66 |             let availableCaptureModesSet = Set(availableCaptureModes)
 67 |             let preferredCaptureModesSet = Set([preferredCaptureMode.rawValue as NSNumber])
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:76:1: note: calls to class method 'availableCaptureModes(for:)' from outside of its actor context are implicitly asynchronous
 74 | + (BOOL)isCameraDeviceAvailable:(UIImagePickerControllerCameraDevice)cameraDevice                   API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // returns YES if camera device is available
 75 | + (BOOL)isFlashAvailableForCameraDevice:(UIImagePickerControllerCameraDevice)cameraDevice           API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // returns YES if camera device supports flash and torch.
 76 | + (nullable NSArray<NSNumber *> *)availableCaptureModesForCameraDevice:(UIImagePickerControllerCameraDevice)cameraDevice API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // returns array of NSNumbers (UIImagePickerControllerCameraCaptureMode)
    | `- note: calls to class method 'availableCaptureModes(for:)' from outside of its actor context are implicitly asynchronous
 77 |
 78 | @property(nullable,nonatomic,weak)      id <UINavigationControllerDelegate, UIImagePickerControllerDelegate> delegate;
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:70:52: warning: main actor-isolated property 'mediaTypes' can not be referenced from a nonisolated context
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 68 |             let intersection = availableCaptureModesSet.intersection(preferredCaptureModesSet)
 69 |
 70 |             let mediaTypes = imagePickerController.mediaTypes
    |                                                    `- warning: main actor-isolated property 'mediaTypes' can not be referenced from a nonisolated context
 71 |             if mediaTypes == [CameraPickerMediaType.movie().utTypeIdentifier] {
 72 |                 imagePickerController.cameraCaptureMode = .video
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:81:71: note: property declared here
 79 |
 80 | @property(nonatomic)           UIImagePickerControllerSourceType     sourceType;                                                        // default value is UIImagePickerControllerSourceTypePhotoLibrary.
 81 | @property(nonatomic,copy)      NSArray<NSString *>                   *mediaTypes;
    |                                                                       `- note: property declared here
 82 |     // default value is an array containing kUTTypeImage.
 83 | @property(nonatomic)           BOOL                                  allowsEditing API_AVAILABLE(ios(3.1));     // replacement for -allowsImageEditing; default value is NO.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:72:39: warning: main actor-isolated property 'cameraCaptureMode' can not be mutated from a nonisolated context
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 70 |             let mediaTypes = imagePickerController.mediaTypes
 71 |             if mediaTypes == [CameraPickerMediaType.movie().utTypeIdentifier] {
 72 |                 imagePickerController.cameraCaptureMode = .video
    |                                       `- warning: main actor-isolated property 'cameraCaptureMode' can not be mutated from a nonisolated context
 73 |             } else if mediaTypes == [CameraPickerMediaType.image.utTypeIdentifier] {
 74 |                 imagePickerController.cameraCaptureMode = .photo
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:105:63: note: mutation of this property is only permitted within the actor
103 | - (void)stopVideoCapture  API_AVAILABLE(ios(4.0)) API_UNAVAILABLE(visionos);
104 |
105 | @property(nonatomic) UIImagePickerControllerCameraCaptureMode cameraCaptureMode API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraCaptureModePhoto
    |                                                               `- note: mutation of this property is only permitted within the actor
106 | @property(nonatomic) UIImagePickerControllerCameraDevice      cameraDevice      API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraDeviceRear
107 | @property(nonatomic) UIImagePickerControllerCameraFlashMode   cameraFlashMode   API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraFlashModeAuto.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:74:39: warning: main actor-isolated property 'cameraCaptureMode' can not be mutated from a nonisolated context
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 72 |                 imagePickerController.cameraCaptureMode = .video
 73 |             } else if mediaTypes == [CameraPickerMediaType.image.utTypeIdentifier] {
 74 |                 imagePickerController.cameraCaptureMode = .photo
    |                                       `- warning: main actor-isolated property 'cameraCaptureMode' can not be mutated from a nonisolated context
 75 |             } else {
 76 |                 if let resolvedCameraCaptureModeRawValue = intersection.first as? Int {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:105:63: note: mutation of this property is only permitted within the actor
103 | - (void)stopVideoCapture  API_AVAILABLE(ios(4.0)) API_UNAVAILABLE(visionos);
104 |
105 | @property(nonatomic) UIImagePickerControllerCameraCaptureMode cameraCaptureMode API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraCaptureModePhoto
    |                                                               `- note: mutation of this property is only permitted within the actor
106 | @property(nonatomic) UIImagePickerControllerCameraDevice      cameraDevice      API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraDeviceRear
107 | @property(nonatomic) UIImagePickerControllerCameraFlashMode   cameraFlashMode   API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraFlashModeAuto.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:79:43: warning: main actor-isolated property 'cameraCaptureMode' can not be mutated from a nonisolated context
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 77 |                     let resolvedCameraCaptureMode: UIImagePickerController.CameraCaptureMode?
 78 |                     resolvedCameraCaptureMode = .init(rawValue: resolvedCameraCaptureModeRawValue)
 79 |                     imagePickerController.cameraCaptureMode = resolvedCameraCaptureMode ?? .photo
    |                                           `- warning: main actor-isolated property 'cameraCaptureMode' can not be mutated from a nonisolated context
 80 |                 }
 81 |             }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:105:63: note: mutation of this property is only permitted within the actor
103 | - (void)stopVideoCapture  API_AVAILABLE(ios(4.0)) API_UNAVAILABLE(visionos);
104 |
105 | @property(nonatomic) UIImagePickerControllerCameraCaptureMode cameraCaptureMode API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraCaptureModePhoto
    |                                                               `- note: mutation of this property is only permitted within the actor
106 | @property(nonatomic) UIImagePickerControllerCameraDevice      cameraDevice      API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraDeviceRear
107 | @property(nonatomic) UIImagePickerControllerCameraFlashMode   cameraFlashMode   API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraFlashModeAuto.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:84:31: warning: main actor-isolated property 'cameraFlashMode' can not be mutated from a nonisolated context
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 82 |         }
 83 |
 84 |         imagePickerController.cameraFlashMode = flashMode
    |                               `- warning: main actor-isolated property 'cameraFlashMode' can not be mutated from a nonisolated context
 85 |
 86 |         // TODO: Use cameraOverlayView and set showsCameraControls to false to add the ability to take multiple images.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:107:63: note: mutation of this property is only permitted within the actor
105 | @property(nonatomic) UIImagePickerControllerCameraCaptureMode cameraCaptureMode API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraCaptureModePhoto
106 | @property(nonatomic) UIImagePickerControllerCameraDevice      cameraDevice      API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraDeviceRear
107 | @property(nonatomic) UIImagePickerControllerCameraFlashMode   cameraFlashMode   API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraFlashModeAuto.
    |                                                               `- note: mutation of this property is only permitted within the actor
108 | // cameraFlashMode controls the still-image flash when cameraCaptureMode is Photo. cameraFlashMode controls the video torch when cameraCaptureMode is Video.
109 |
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:96:9: warning: call to main actor-isolated initializer 'init(parent:)' in a synchronous nonisolated context [#ActorIsolatedCall]
 93 |     }
 94 |
 95 |     func makeCoordinator() -> Coordinator {
    |          `- note: add '@MainActor' to make instance method 'makeCoordinator()' part of global actor 'MainActor'
 96 |         Coordinator(parent: self)
    |         `- warning: call to main actor-isolated initializer 'init(parent:)' in a synchronous nonisolated context [#ActorIsolatedCall]
 97 |     }
 98 | }
    :
102 |         let parent: UIImagePickerControllerRepresentation
103 |
104 |         init(parent: UIImagePickerControllerRepresentation) {
    |         |- note: calls to initializer 'init(parent:)' from outside of its actor context are implicitly asynchronous
    |         `- note: main actor isolation inferred from conformance to protocol 'UIImagePickerControllerDelegate'
105 |             self.parent = parent
106 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:113:45: error: 'mediaType' is unavailable in watchOS
111 |         ) {
112 |             guard
113 |                 let mediaTypeString = info[.mediaType] as? String,
    |                                             `- error: 'mediaType' is unavailable in watchOS
114 |                 let mediaType = UTType(mediaTypeString)
115 |             else {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:57:51: note: 'mediaType' has been explicitly marked unavailable here
 55 |
 56 | // info dictionary keys
 57 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerMediaType API_UNAVAILABLE(tvos, watchos);      // an NSString (UTI, i.e. kUTTypeImage)
    |                                                   `- note: 'mediaType' has been explicitly marked unavailable here
 58 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerOriginalImage API_UNAVAILABLE(tvos, watchos);  // a UIImage
 59 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerEditedImage API_UNAVAILABLE(tvos, watchos);    // a UIImage
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:120:41: error: 'editedImage' is unavailable in watchOS
118 |
119 |             if mediaType == .image {
120 |                 let editedImage = info[.editedImage] as? UIImage
    |                                         `- error: 'editedImage' is unavailable in watchOS
121 |                 let originalImage = info[.originalImage] as? UIImage
122 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:59:51: note: 'editedImage' has been explicitly marked unavailable here
 57 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerMediaType API_UNAVAILABLE(tvos, watchos);      // an NSString (UTI, i.e. kUTTypeImage)
 58 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerOriginalImage API_UNAVAILABLE(tvos, watchos);  // a UIImage
 59 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerEditedImage API_UNAVAILABLE(tvos, watchos);    // a UIImage
    |                                                   `- note: 'editedImage' has been explicitly marked unavailable here
 60 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerCropRect API_UNAVAILABLE(tvos, watchos);       // an NSValue (CGRect)
 61 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerMediaURL API_UNAVAILABLE(tvos, watchos);       // an NSURL
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:121:43: error: 'originalImage' is unavailable in watchOS
119 |             if mediaType == .image {
120 |                 let editedImage = info[.editedImage] as? UIImage
121 |                 let originalImage = info[.originalImage] as? UIImage
    |                                           `- error: 'originalImage' is unavailable in watchOS
122 |
123 |                 if let imageToHandle = editedImage ?? originalImage {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:58:51: note: 'originalImage' has been explicitly marked unavailable here
 56 | // info dictionary keys
 57 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerMediaType API_UNAVAILABLE(tvos, watchos);      // an NSString (UTI, i.e. kUTTypeImage)
 58 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerOriginalImage API_UNAVAILABLE(tvos, watchos);  // a UIImage
    |                                                   `- note: 'originalImage' has been explicitly marked unavailable here
 59 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerEditedImage API_UNAVAILABLE(tvos, watchos);    // a UIImage
 60 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerCropRect API_UNAVAILABLE(tvos, watchos);       // an NSValue (CGRect)
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift (in target 'CameraPicker' from project 'CameraPicker')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile UIImagePickerControllerRepresentation.swift
SwiftCompile normal arm64 Compiling\ ForEach+CameraPickerItem.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/ForEach+CameraPickerItem.swift (in target 'CameraPicker' from project 'CameraPicker')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/ForEach+CameraPickerItem.swift (in target 'CameraPicker' from project 'CameraPicker')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile ForEach+CameraPickerItem.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-09-19 06:05:15.097 xcodebuild[661:3935] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
	SwiftEmitModule normal arm64_32 Emitting\ module\ for\ CameraPicker (in target 'CameraPicker' from project 'CameraPicker')
	SwiftCompile normal arm64_32 (in target 'CameraPicker' from project 'CameraPicker')
	SwiftEmitModule normal arm64 Emitting\ module\ for\ CameraPicker (in target 'CameraPicker' from project 'CameraPicker')
	SwiftCompile normal arm64 (in target 'CameraPicker' from project 'CameraPicker')
	Building workspace CameraPicker with scheme CameraPicker
(5 failures)
Command line invocation:
    /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolved source packages:
  CameraPicker: /Users/admin/builder/spi-builder-workspace
resolved source packages: CameraPicker
2026-09-19 06:05:21.936 xcodebuild[838:4697] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CameraPicker",
  "name" : "CameraPicker",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "CameraPicker",
      "targets" : [
        "CameraPicker"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CameraPickerTests",
      "module_type" : "SwiftTarget",
      "name" : "CameraPickerTests",
      "path" : "Tests/CameraPickerTests",
      "sources" : [
        "CameraPickerTests.swift"
      ],
      "target_dependencies" : [
        "CameraPicker"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CameraPicker",
      "module_type" : "SwiftTarget",
      "name" : "CameraPicker",
      "path" : "Sources/CameraPicker",
      "product_memberships" : [
        "CameraPicker"
      ],
      "sources" : [
        "CameraPicker.swift",
        "CameraPickerItem.swift",
        "ForEach+CameraPickerItem.swift",
        "MediaSaver.swift",
        "UIImagePickerController+.swift",
        "UIImagePickerControllerRepresentation.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.1"
}
{
  "workspace" : {
    "name" : "CameraPicker",
    "schemes" : [
      "CameraPicker"
    ]
  }
}
2026-09-19 06:05:23.156 xcodebuild[846:4769] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme CameraPicker -destination generic/platform=watchOS
Command line invocation:
    /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme CameraPicker -destination generic/platform=watchOS
Resolve Package Graph
Resolved source packages:
  CameraPicker: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (2 targets)
    Target 'CameraPicker-product' in project 'CameraPicker'
        ➜ Explicit dependency on target 'CameraPicker' in project 'CameraPicker'
    Target 'CameraPicker' in project 'CameraPicker' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ClangStatCache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache
SwiftDriver CameraPicker normal arm64_32 com.apple.xcode.tools.swift.compiler (in target 'CameraPicker' from project 'CameraPicker')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftDriver -- /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name CameraPicker -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64_32/CameraPicker.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -target arm64_32-apple-watchos9.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 6 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64_32/CameraPicker-OutputFileMap.json -save-temps -no-color-diagnostics -explicit-module-build -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -clang-scanner-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -sdk-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules -emit-dependencies -emit-module -emit-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64_32/CameraPicker.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64_32/CameraPicker-dependency-scan.dia -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -package-name spi_builder_workspace -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64_32/CameraPicker_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64_32/CameraPicker-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftDriver CameraPicker normal arm64 com.apple.xcode.tools.swift.compiler (in target 'CameraPicker' from project 'CameraPicker')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftDriver -- /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name CameraPicker -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64/CameraPicker.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -target arm64-apple-watchos9.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 6 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64/CameraPicker-OutputFileMap.json -save-temps -no-color-diagnostics -explicit-module-build -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -clang-scanner-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -sdk-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules -emit-dependencies -emit-module -emit-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64/CameraPicker.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64/CameraPicker-dependency-scan.dia -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -package-name spi_builder_workspace -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64/CameraPicker_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64/CameraPicker-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftCompile normal arm64_32 Compiling\ CameraPickerItem.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/CameraPickerItem.swift (in target 'CameraPicker' from project 'CameraPicker')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/CameraPickerItem.swift (in target 'CameraPicker' from project 'CameraPicker')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CameraPickerItem.swift
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ CameraPicker (in target 'CameraPicker' from project 'CameraPicker')
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/CameraPicker.swift:12:24: error: 'UIImagePickerController' is unavailable in watchOS
 10 |
 11 | public extension CameraPicker {
 12 |     typealias Device = UIImagePickerController.CameraDevice
    |                        `- error: 'UIImagePickerController' is unavailable in watchOS
 13 |     typealias CaptureMode = UIImagePickerController.CameraCaptureMode
 14 |     typealias FlashMode = UIImagePickerController.CameraFlashMode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/CameraPicker.swift:13:29: error: 'UIImagePickerController' is unavailable in watchOS
 11 | public extension CameraPicker {
 12 |     typealias Device = UIImagePickerController.CameraDevice
 13 |     typealias CaptureMode = UIImagePickerController.CameraCaptureMode
    |                             `- error: 'UIImagePickerController' is unavailable in watchOS
 14 |     typealias FlashMode = UIImagePickerController.CameraFlashMode
 15 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/CameraPicker.swift:14:27: error: 'UIImagePickerController' is unavailable in watchOS
 12 |     typealias Device = UIImagePickerController.CameraDevice
 13 |     typealias CaptureMode = UIImagePickerController.CameraCaptureMode
 14 |     typealias FlashMode = UIImagePickerController.CameraFlashMode
    |                           `- error: 'UIImagePickerController' is unavailable in watchOS
 15 | }
 16 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:13:48: error: 'UIViewController' is unavailable in watchOS
11 | // Copy-pasted from this Stack Overflow answer: https://stackoverflow.com/a/72559127/10654098
12 | extension UIImagePickerController {
13 |     open override var childForStatusBarHidden: UIViewController? { nil }
   |                                                `- error: 'UIViewController' is unavailable in watchOS
14 |
15 |     open override var prefersStatusBarHidden: Bool { true }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:43:27: error: 'UIView' is unavailable in watchOS
41 |     }
42 |
43 |     private var cropView: UIView? { findCropView(from: view) }
   |                           `- error: 'UIView' is unavailable in watchOS
44 |
45 |     private var scrollView: UIScrollView? { findScrollView(from: view) }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:45:29: error: 'UIScrollView' is unavailable in watchOS
43 |     private var cropView: UIView? { findCropView(from: view) }
44 |
45 |     private var scrollView: UIScrollView? { findScrollView(from: view) }
   |                             `- error: 'UIScrollView' is unavailable in watchOS
46 |
47 |     private func findCropView(from view: UIView) -> UIView? {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h:87:12: note: 'UIScrollView' has been explicitly marked unavailable here
 85 |
 86 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 87 | @interface UIScrollView : UIView <NSCoding, UIFocusItemScrollableContainer>
    |            `- note: 'UIScrollView' has been explicitly marked unavailable here
 88 |
 89 | @property(nonatomic)         CGPoint                      contentOffset;                  // default CGPointZero
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:47:42: error: 'UIView' is unavailable in watchOS
45 |     private var scrollView: UIScrollView? { findScrollView(from: view) }
46 |
47 |     private func findCropView(from view: UIView) -> UIView? {
   |                                          `- error: 'UIView' is unavailable in watchOS
48 |         let width = UIScreen.main.bounds.width
49 |         let size = view.bounds.size
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:47:53: error: 'UIView' is unavailable in watchOS
45 |     private var scrollView: UIScrollView? { findScrollView(from: view) }
46 |
47 |     private func findCropView(from view: UIView) -> UIView? {
   |                                                     `- error: 'UIView' is unavailable in watchOS
48 |         let width = UIScreen.main.bounds.width
49 |         let size = view.bounds.size
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:64:44: error: 'UIView' is unavailable in watchOS
62 |     }
63 |
64 |     private func findScrollView(from view: UIView) -> UIScrollView? {
   |                                            `- error: 'UIView' is unavailable in watchOS
65 |         if let scrollView = view as? UIScrollView {
66 |             return scrollView
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:64:55: error: 'UIScrollView' is unavailable in watchOS
62 |     }
63 |
64 |     private func findScrollView(from view: UIView) -> UIScrollView? {
   |                                                       `- error: 'UIScrollView' is unavailable in watchOS
65 |         if let scrollView = view as? UIScrollView {
66 |             return scrollView
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h:87:12: note: 'UIScrollView' has been explicitly marked unavailable here
 85 |
 86 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 87 | @interface UIScrollView : UIView <NSCoding, UIFocusItemScrollableContainer>
    |            `- note: 'UIScrollView' has been explicitly marked unavailable here
 88 |
 89 | @property(nonatomic)         CGPoint                      contentOffset;                  // default CGPointZero
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:12:11: error: 'UIImagePickerController' is unavailable in watchOS
10 | // This is a fix for not being able to drag the crop area of the captired image to the endges.
11 | // Copy-pasted from this Stack Overflow answer: https://stackoverflow.com/a/72559127/10654098
12 | extension UIImagePickerController {
   |           `- error: 'UIImagePickerController' is unavailable in watchOS
13 |     open override var childForStatusBarHidden: UIViewController? { nil }
14 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:15:18: error: 'UIImagePickerController' is unavailable in watchOS
 13 |     case image
 14 |     case movie(
 15 |         quality: UIImagePickerController.QualityType = .typeMedium,
    |                  `- error: 'UIImagePickerController' is unavailable in watchOS
 16 |         maximumDuration: TimeInterval = 600
 17 |     )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:36:23: error: 'UIImagePickerController' is unavailable in watchOS
 34 |     let allowsEditing: Bool
 35 |     let preferredMediaTypes: Set<CameraPickerMediaType>
 36 |     let cameraDevice: UIImagePickerController.CameraDevice
    |                       `- error: 'UIImagePickerController' is unavailable in watchOS
 37 |     let preferredCaptureMode: UIImagePickerController.CameraCaptureMode
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:37:31: error: 'UIImagePickerController' is unavailable in watchOS
 35 |     let preferredMediaTypes: Set<CameraPickerMediaType>
 36 |     let cameraDevice: UIImagePickerController.CameraDevice
 37 |     let preferredCaptureMode: UIImagePickerController.CameraCaptureMode
    |                               `- error: 'UIImagePickerController' is unavailable in watchOS
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:38:20: error: 'UIImagePickerController' is unavailable in watchOS
 36 |     let cameraDevice: UIImagePickerController.CameraDevice
 37 |     let preferredCaptureMode: UIImagePickerController.CameraCaptureMode
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
    |                    `- error: 'UIImagePickerController' is unavailable in watchOS
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:40:40: error: cannot find type 'Context' in scope
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |                                        `- error: cannot find type 'Context' in scope
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:40:52: error: 'UIImagePickerController' is unavailable in watchOS
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |                                                    `- error: 'UIImagePickerController' is unavailable in watchOS
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:91:92: error: cannot find type 'Context' in scope
 89 |     }
 90 |
 91 |     func updateUIViewController(_ imagePickerController: UIImagePickerController, context: Context) {
    |                                                                                            `- error: cannot find type 'Context' in scope
 92 |
 93 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:91:58: error: 'UIImagePickerController' is unavailable in watchOS
 89 |     }
 90 |
 91 |     func updateUIViewController(_ imagePickerController: UIImagePickerController, context: Context) {
    |                                                          `- error: 'UIImagePickerController' is unavailable in watchOS
 92 |
 93 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:31:47: error: cannot find type 'UIViewControllerRepresentable' in scope
 29 | }
 30 |
 31 | struct UIImagePickerControllerRepresentation: UIViewControllerRepresentable {
    |                                               `- error: cannot find type 'UIViewControllerRepresentable' in scope
 32 |     @Binding var selection: [any CameraPickerItem]
 33 |     @Binding var error: LocalizedError?
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:109:23: error: 'UIImagePickerController' is unavailable in watchOS
107 |
108 |         func imagePickerController(
109 |             _ picker: UIImagePickerController,
    |                       `- error: 'UIImagePickerController' is unavailable in watchOS
110 |             didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]
111 |         ) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:110:50: error: 'UIImagePickerController' is unavailable in watchOS
108 |         func imagePickerController(
109 |             _ picker: UIImagePickerController,
110 |             didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]
    |                                                  `- error: 'UIImagePickerController' is unavailable in watchOS
111 |         ) {
112 |             guard
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:149:55: error: 'UIImagePickerController' is unavailable in watchOS
147 |         }
148 |
149 |         func imagePickerControllerDidCancel(_ picker: UIImagePickerController) {
    |                                                       `- error: 'UIImagePickerController' is unavailable in watchOS
150 |             picker.dismiss(animated: true)
151 |         }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:101:34: error: 'UIImagePickerControllerDelegate' is unavailable in watchOS
 99 |
100 | extension UIImagePickerControllerRepresentation {
101 |     class Coordinator: NSObject, UIImagePickerControllerDelegate, UINavigationControllerDelegate {
    |                                  `- error: 'UIImagePickerControllerDelegate' is unavailable in watchOS
102 |         let parent: UIImagePickerControllerRepresentation
103 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:113:11: note: 'UIImagePickerControllerDelegate' has been explicitly marked unavailable here
111 |
112 | API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
113 | @protocol UIImagePickerControllerDelegate<NSObject>
    |           `- note: 'UIImagePickerControllerDelegate' has been explicitly marked unavailable here
114 | @optional
115 | // The picker does not dismiss itself; the client dismisses it in these callbacks.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:101:67: error: 'UINavigationControllerDelegate' is unavailable in watchOS
 99 |
100 | extension UIImagePickerControllerRepresentation {
101 |     class Coordinator: NSObject, UIImagePickerControllerDelegate, UINavigationControllerDelegate {
    |                                                                   `- error: 'UINavigationControllerDelegate' is unavailable in watchOS
102 |         let parent: UIImagePickerControllerRepresentation
103 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINavigationController.h:128:11: note: 'UINavigationControllerDelegate' has been explicitly marked unavailable here
126 |
127 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
128 | @protocol UINavigationControllerDelegate <NSObject>
    |           `- note: 'UINavigationControllerDelegate' has been explicitly marked unavailable here
129 |
130 | @optional
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/CameraPicker.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/CameraPickerItem.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/ForEach+CameraPickerItem.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/MediaSaver.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift -target arm64_32-apple-watchos9.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libPreviewsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#PreviewsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftUIMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64_32/CameraPicker-dependencies-2.json -enable-objc-interop -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -profile-generate -profile-coverage-mapping -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name CameraPicker -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64_32/CameraPicker_const_extract_protocols.json -disable-clang-spi -clang-target arm64_32-apple-watchos27.0 -target-sdk-version 27.0 -target-sdk-name watchos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64_32/CameraPicker.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64_32/CameraPicker.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64_32/CameraPicker-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64_32/CameraPicker-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64_32/CameraPicker-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64_32/CameraPicker.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64_32/CameraPicker.abi.json
SwiftCompile normal arm64_32 (in target 'CameraPicker' from project 'CameraPicker')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

SwiftCompile normal arm64_32 Compiling\ UIImagePickerController+.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift (in target 'CameraPicker' from project 'CameraPicker')
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:13:48: error: 'UIViewController' is unavailable in watchOS
11 | // Copy-pasted from this Stack Overflow answer: https://stackoverflow.com/a/72559127/10654098
12 | extension UIImagePickerController {
13 |     open override var childForStatusBarHidden: UIViewController? { nil }
   |                                                `- error: 'UIViewController' is unavailable in watchOS
14 |
15 |     open override var prefersStatusBarHidden: Bool { true }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:43:27: error: 'UIView' is unavailable in watchOS
41 |     }
42 |
43 |     private var cropView: UIView? { findCropView(from: view) }
   |                           `- error: 'UIView' is unavailable in watchOS
44 |
45 |     private var scrollView: UIScrollView? { findScrollView(from: view) }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:45:29: error: 'UIScrollView' is unavailable in watchOS
43 |     private var cropView: UIView? { findCropView(from: view) }
44 |
45 |     private var scrollView: UIScrollView? { findScrollView(from: view) }
   |                             `- error: 'UIScrollView' is unavailable in watchOS
46 |
47 |     private func findCropView(from view: UIView) -> UIView? {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h:87:12: note: 'UIScrollView' has been explicitly marked unavailable here
 85 |
 86 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 87 | @interface UIScrollView : UIView <NSCoding, UIFocusItemScrollableContainer>
    |            `- note: 'UIScrollView' has been explicitly marked unavailable here
 88 |
 89 | @property(nonatomic)         CGPoint                      contentOffset;                  // default CGPointZero
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:47:42: error: 'UIView' is unavailable in watchOS
45 |     private var scrollView: UIScrollView? { findScrollView(from: view) }
46 |
47 |     private func findCropView(from view: UIView) -> UIView? {
   |                                          `- error: 'UIView' is unavailable in watchOS
48 |         let width = UIScreen.main.bounds.width
49 |         let size = view.bounds.size
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:47:53: error: 'UIView' is unavailable in watchOS
45 |     private var scrollView: UIScrollView? { findScrollView(from: view) }
46 |
47 |     private func findCropView(from view: UIView) -> UIView? {
   |                                                     `- error: 'UIView' is unavailable in watchOS
48 |         let width = UIScreen.main.bounds.width
49 |         let size = view.bounds.size
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:64:44: error: 'UIView' is unavailable in watchOS
62 |     }
63 |
64 |     private func findScrollView(from view: UIView) -> UIScrollView? {
   |                                            `- error: 'UIView' is unavailable in watchOS
65 |         if let scrollView = view as? UIScrollView {
66 |             return scrollView
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:64:55: error: 'UIScrollView' is unavailable in watchOS
62 |     }
63 |
64 |     private func findScrollView(from view: UIView) -> UIScrollView? {
   |                                                       `- error: 'UIScrollView' is unavailable in watchOS
65 |         if let scrollView = view as? UIScrollView {
66 |             return scrollView
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h:87:12: note: 'UIScrollView' has been explicitly marked unavailable here
 85 |
 86 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 87 | @interface UIScrollView : UIView <NSCoding, UIFocusItemScrollableContainer>
    |            `- note: 'UIScrollView' has been explicitly marked unavailable here
 88 |
 89 | @property(nonatomic)         CGPoint                      contentOffset;                  // default CGPointZero
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:12:11: error: 'UIImagePickerController' is unavailable in watchOS
10 | // This is a fix for not being able to drag the crop area of the captired image to the endges.
11 | // Copy-pasted from this Stack Overflow answer: https://stackoverflow.com/a/72559127/10654098
12 | extension UIImagePickerController {
   |           `- error: 'UIImagePickerController' is unavailable in watchOS
13 |     open override var childForStatusBarHidden: UIViewController? { nil }
14 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:48:21: error: 'UIScreen' is unavailable in watchOS
46 |
47 |     private func findCropView(from view: UIView) -> UIView? {
48 |         let width = UIScreen.main.bounds.width
   |                     `- error: 'UIScreen' is unavailable in watchOS
49 |         let size = view.bounds.size
50 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:54:12: note: 'UIScreen' has been explicitly marked unavailable here
 52 |
 53 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(visionos, watchos) NS_SWIFT_UI_ACTOR
 54 | @interface UIScreen : NSObject <UITraitEnvironment>
    |            `- note: 'UIScreen' has been explicitly marked unavailable here
 55 |
 56 | @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens API_DEPRECATED("Use UIApplication.shared.openSessions to find open sessions with scenes from other screens", ios(3.2, 16.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos); // all screens currently attached to the device
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:48:30: error: 'main' is unavailable in watchOS
46 |
47 |     private func findCropView(from view: UIView) -> UIView? {
48 |         let width = UIScreen.main.bounds.width
   |                              `- error: 'main' is unavailable in watchOS
49 |         let size = view.bounds.size
50 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:57:49: note: 'main' has been explicitly marked unavailable here
 55 |
 56 | @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens API_DEPRECATED("Use UIApplication.shared.openSessions to find open sessions with scenes from other screens", ios(3.2, 16.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos); // all screens currently attached to the device
 57 | @property(class, nonatomic, readonly) UIScreen *mainScreen API_DEPRECATED("Use a UIScreen instance found through context instead (i.e, view.window.windowScene.screen), or for properties like UIScreen.scale with trait equivalents, use a traitCollection found through context.", ios(2.0, 26.0), tvos(9.0, 26.0), visionos(1.0, 26.0)) API_UNAVAILABLE(watchos);
    |                                                 `- note: 'main' has been explicitly marked unavailable here
 58 |
 59 | @property(nonatomic,readonly) CGRect  bounds;                // Bounds of entire screen in points
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift (in target 'CameraPicker' from project 'CameraPicker')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile UIImagePickerController+.swift
SwiftCompile normal arm64_32 Compiling\ UIImagePickerControllerRepresentation.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift (in target 'CameraPicker' from project 'CameraPicker')
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:15:18: error: 'UIImagePickerController' is unavailable in watchOS
 13 |     case image
 14 |     case movie(
 15 |         quality: UIImagePickerController.QualityType = .typeMedium,
    |                  `- error: 'UIImagePickerController' is unavailable in watchOS
 16 |         maximumDuration: TimeInterval = 600
 17 |     )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:36:23: error: 'UIImagePickerController' is unavailable in watchOS
 34 |     let allowsEditing: Bool
 35 |     let preferredMediaTypes: Set<CameraPickerMediaType>
 36 |     let cameraDevice: UIImagePickerController.CameraDevice
    |                       `- error: 'UIImagePickerController' is unavailable in watchOS
 37 |     let preferredCaptureMode: UIImagePickerController.CameraCaptureMode
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:37:31: error: 'UIImagePickerController' is unavailable in watchOS
 35 |     let preferredMediaTypes: Set<CameraPickerMediaType>
 36 |     let cameraDevice: UIImagePickerController.CameraDevice
 37 |     let preferredCaptureMode: UIImagePickerController.CameraCaptureMode
    |                               `- error: 'UIImagePickerController' is unavailable in watchOS
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:38:20: error: 'UIImagePickerController' is unavailable in watchOS
 36 |     let cameraDevice: UIImagePickerController.CameraDevice
 37 |     let preferredCaptureMode: UIImagePickerController.CameraCaptureMode
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
    |                    `- error: 'UIImagePickerController' is unavailable in watchOS
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:40:40: error: cannot find type 'Context' in scope
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |                                        `- error: cannot find type 'Context' in scope
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:40:52: error: 'UIImagePickerController' is unavailable in watchOS
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |                                                    `- error: 'UIImagePickerController' is unavailable in watchOS
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:91:92: error: cannot find type 'Context' in scope
 89 |     }
 90 |
 91 |     func updateUIViewController(_ imagePickerController: UIImagePickerController, context: Context) {
    |                                                                                            `- error: cannot find type 'Context' in scope
 92 |
 93 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:91:58: error: 'UIImagePickerController' is unavailable in watchOS
 89 |     }
 90 |
 91 |     func updateUIViewController(_ imagePickerController: UIImagePickerController, context: Context) {
    |                                                          `- error: 'UIImagePickerController' is unavailable in watchOS
 92 |
 93 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:31:47: error: cannot find type 'UIViewControllerRepresentable' in scope
 29 | }
 30 |
 31 | struct UIImagePickerControllerRepresentation: UIViewControllerRepresentable {
    |                                               `- error: cannot find type 'UIViewControllerRepresentable' in scope
 32 |     @Binding var selection: [any CameraPickerItem]
 33 |     @Binding var error: LocalizedError?
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:109:23: error: 'UIImagePickerController' is unavailable in watchOS
107 |
108 |         func imagePickerController(
109 |             _ picker: UIImagePickerController,
    |                       `- error: 'UIImagePickerController' is unavailable in watchOS
110 |             didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]
111 |         ) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:110:50: error: 'UIImagePickerController' is unavailable in watchOS
108 |         func imagePickerController(
109 |             _ picker: UIImagePickerController,
110 |             didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]
    |                                                  `- error: 'UIImagePickerController' is unavailable in watchOS
111 |         ) {
112 |             guard
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:149:55: error: 'UIImagePickerController' is unavailable in watchOS
147 |         }
148 |
149 |         func imagePickerControllerDidCancel(_ picker: UIImagePickerController) {
    |                                                       `- error: 'UIImagePickerController' is unavailable in watchOS
150 |             picker.dismiss(animated: true)
151 |         }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:101:34: error: 'UIImagePickerControllerDelegate' is unavailable in watchOS
 99 |
100 | extension UIImagePickerControllerRepresentation {
101 |     class Coordinator: NSObject, UIImagePickerControllerDelegate, UINavigationControllerDelegate {
    |                                  `- error: 'UIImagePickerControllerDelegate' is unavailable in watchOS
102 |         let parent: UIImagePickerControllerRepresentation
103 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:113:11: note: 'UIImagePickerControllerDelegate' has been explicitly marked unavailable here
111 |
112 | API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
113 | @protocol UIImagePickerControllerDelegate<NSObject>
    |           `- note: 'UIImagePickerControllerDelegate' has been explicitly marked unavailable here
114 | @optional
115 | // The picker does not dismiss itself; the client dismisses it in these callbacks.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:101:67: error: 'UINavigationControllerDelegate' is unavailable in watchOS
 99 |
100 | extension UIImagePickerControllerRepresentation {
101 |     class Coordinator: NSObject, UIImagePickerControllerDelegate, UINavigationControllerDelegate {
    |                                                                   `- error: 'UINavigationControllerDelegate' is unavailable in watchOS
102 |         let parent: UIImagePickerControllerRepresentation
103 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINavigationController.h:128:11: note: 'UINavigationControllerDelegate' has been explicitly marked unavailable here
126 |
127 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
128 | @protocol UINavigationControllerDelegate <NSObject>
    |           `- note: 'UINavigationControllerDelegate' has been explicitly marked unavailable here
129 |
130 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:41:37: error: 'UIImagePickerController' is unavailable in watchOS
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
 41 |         let imagePickerController = UIImagePickerController()
    |                                     `- error: 'UIImagePickerController' is unavailable in watchOS
 42 |         imagePickerController.delegate = context.coordinator
 43 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:44:12: error: 'UIImagePickerController' is unavailable in watchOS
 42 |         imagePickerController.delegate = context.coordinator
 43 |
 44 |         if UIImagePickerController.isSourceTypeAvailable(.camera) == false {
    |            `- error: 'UIImagePickerController' is unavailable in watchOS
 45 |             error = ImagePickerControllerError.cameraUnavailable
 46 |         }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:50:38: error: 'UIImagePickerController' is unavailable in watchOS
 48 |         imagePickerController.sourceType = .camera
 49 |
 50 |         if let availableMediaTypes = UIImagePickerController.availableMediaTypes(for: .camera) {
    |                                      `- error: 'UIImagePickerController' is unavailable in watchOS
 51 |             let availableMediaTypesSet = Set(availableMediaTypes)
 52 |             let preferredMediaTypesSet = Set(preferredMediaTypes.map(\.utTypeIdentifier))
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:65:41: error: 'UIImagePickerController' is unavailable in watchOS
 63 |         imagePickerController.cameraDevice = cameraDevice
 64 |
 65 |         if let availableCaptureModes =  UIImagePickerController.availableCaptureModes(for: cameraDevice) {
    |                                         `- error: 'UIImagePickerController' is unavailable in watchOS
 66 |             let availableCaptureModesSet = Set(availableCaptureModes)
 67 |             let preferredCaptureModesSet = Set([preferredCaptureMode.rawValue as NSNumber])
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:77:52: error: 'UIImagePickerController' is unavailable in watchOS
 75 |             } else {
 76 |                 if let resolvedCameraCaptureModeRawValue = intersection.first as? Int {
 77 |                     let resolvedCameraCaptureMode: UIImagePickerController.CameraCaptureMode?
    |                                                    `- error: 'UIImagePickerController' is unavailable in watchOS
 78 |                     resolvedCameraCaptureMode = .init(rawValue: resolvedCameraCaptureModeRawValue)
 79 |                     imagePickerController.cameraCaptureMode = resolvedCameraCaptureMode ?? .photo
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:41:37: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context [#ActorIsolatedCall]
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
    |                                     `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context [#ActorIsolatedCall]
 42 |         imagePickerController.delegate = context.coordinator
 43 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/usr/include/objc/NSObject.h:66:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 64 |
 65 | + (void)initialize;
 66 | - (instancetype)init
    | `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 67 | #if NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER
 68 |     NS_DESIGNATED_INITIALIZER
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:44:36: warning: call to main actor-isolated class method 'isSourceTypeAvailable' in a synchronous nonisolated context [#ActorIsolatedCall]
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
 43 |
 44 |         if UIImagePickerController.isSourceTypeAvailable(.camera) == false {
    |                                    `- warning: call to main actor-isolated class method 'isSourceTypeAvailable' in a synchronous nonisolated context [#ActorIsolatedCall]
 45 |             error = ImagePickerControllerError.cameraUnavailable
 46 |         }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:71:1: note: calls to class method 'isSourceTypeAvailable' from outside of its actor context are implicitly asynchronous
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
    | `- note: calls to class method 'isSourceTypeAvailable' from outside of its actor context are implicitly asynchronous
 72 | + (nullable NSArray<NSString *> *)availableMediaTypesForSourceType:(UIImagePickerControllerSourceType)sourceType; // returns array of available media types (i.e. kUTTypeImage)
 73 |
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:48:31: warning: main actor-isolated property 'sourceType' can not be mutated from a nonisolated context
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 46 |         }
 47 |
 48 |         imagePickerController.sourceType = .camera
    |                               `- warning: main actor-isolated property 'sourceType' can not be mutated from a nonisolated context
 49 |
 50 |         if let availableMediaTypes = UIImagePickerController.availableMediaTypes(for: .camera) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:80:70: note: mutation of this property is only permitted within the actor
 78 | @property(nullable,nonatomic,weak)      id <UINavigationControllerDelegate, UIImagePickerControllerDelegate> delegate;
 79 |
 80 | @property(nonatomic)           UIImagePickerControllerSourceType     sourceType;                                                        // default value is UIImagePickerControllerSourceTypePhotoLibrary.
    |                                                                      `- note: mutation of this property is only permitted within the actor
 81 | @property(nonatomic,copy)      NSArray<NSString *>                   *mediaTypes;
 82 |     // default value is an array containing kUTTypeImage.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:50:62: warning: call to main actor-isolated class method 'availableMediaTypes(for:)' in a synchronous nonisolated context [#ActorIsolatedCall]
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 48 |         imagePickerController.sourceType = .camera
 49 |
 50 |         if let availableMediaTypes = UIImagePickerController.availableMediaTypes(for: .camera) {
    |                                                              `- warning: call to main actor-isolated class method 'availableMediaTypes(for:)' in a synchronous nonisolated context [#ActorIsolatedCall]
 51 |             let availableMediaTypesSet = Set(availableMediaTypes)
 52 |             let preferredMediaTypesSet = Set(preferredMediaTypes.map(\.utTypeIdentifier))
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:72:1: note: calls to class method 'availableMediaTypes(for:)' from outside of its actor context are implicitly asynchronous
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
 72 | + (nullable NSArray<NSString *> *)availableMediaTypesForSourceType:(UIImagePickerControllerSourceType)sourceType; // returns array of available media types (i.e. kUTTypeImage)
    | `- note: calls to class method 'availableMediaTypes(for:)' from outside of its actor context are implicitly asynchronous
 73 |
 74 | + (BOOL)isCameraDeviceAvailable:(UIImagePickerControllerCameraDevice)cameraDevice                   API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // returns YES if camera device is available
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:54:35: warning: main actor-isolated property 'mediaTypes' can not be mutated from a nonisolated context
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 52 |             let preferredMediaTypesSet = Set(preferredMediaTypes.map(\.utTypeIdentifier))
 53 |             let intersection = availableMediaTypesSet.intersection(preferredMediaTypesSet)
 54 |             imagePickerController.mediaTypes = Array(intersection)
    |                                   `- warning: main actor-isolated property 'mediaTypes' can not be mutated from a nonisolated context
 55 |         }
 56 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:81:71: note: mutation of this property is only permitted within the actor
 79 |
 80 | @property(nonatomic)           UIImagePickerControllerSourceType     sourceType;                                                        // default value is UIImagePickerControllerSourceTypePhotoLibrary.
 81 | @property(nonatomic,copy)      NSArray<NSString *>                   *mediaTypes;
    |                                                                       `- note: mutation of this property is only permitted within the actor
 82 |     // default value is an array containing kUTTypeImage.
 83 | @property(nonatomic)           BOOL                                  allowsEditing API_AVAILABLE(ios(3.1));     // replacement for -allowsImageEditing; default value is NO.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:58:35: warning: main actor-isolated property 'videoQuality' can not be mutated from a nonisolated context
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 56 |
 57 |         for case .movie(let quality, let maximumDuration) in preferredMediaTypes {
 58 |             imagePickerController.videoQuality = quality
    |                                   `- warning: main actor-isolated property 'videoQuality' can not be mutated from a nonisolated context
 59 |             imagePickerController.videoMaximumDuration = maximumDuration
 60 |         }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:89:70: note: mutation of this property is only permitted within the actor
 87 | // video properties apply only if mediaTypes includes kUTTypeMovie
 88 | @property(nonatomic)           NSTimeInterval                        videoMaximumDuration API_AVAILABLE(ios(3.1)) API_UNAVAILABLE(visionos); // default value is 10 minutes.
 89 | @property(nonatomic)           UIImagePickerControllerQualityType    videoQuality API_AVAILABLE(ios(3.1)) API_UNAVAILABLE(visionos);         // default value is UIImagePickerControllerQualityTypeMedium. If the cameraDevice does not support the videoQuality, it will use the default value.
    |                                                                      `- note: mutation of this property is only permitted within the actor
 90 | @property(nonatomic, copy)     NSString                              *videoExportPreset API_DEPRECATED("Will be removed in a future release, use PHPicker.", ios(11.0, API_TO_BE_DEPRECATED), visionos(1.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(watchos);  // videoExportPreset can be used to specify the transcoding quality for videos (via a AVAssetExportPreset* string). If the value is nil (the default) then the transcodeQuality is determined by videoQuality instead. Not valid if the source type is UIImagePickerControllerSourceTypeCamera
 91 |
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:59:35: warning: main actor-isolated property 'videoMaximumDuration' can not be mutated from a nonisolated context
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 57 |         for case .movie(let quality, let maximumDuration) in preferredMediaTypes {
 58 |             imagePickerController.videoQuality = quality
 59 |             imagePickerController.videoMaximumDuration = maximumDuration
    |                                   `- warning: main actor-isolated property 'videoMaximumDuration' can not be mutated from a nonisolated context
 60 |         }
 61 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:88:70: note: mutation of this property is only permitted within the actor
 86 |
 87 | // video properties apply only if mediaTypes includes kUTTypeMovie
 88 | @property(nonatomic)           NSTimeInterval                        videoMaximumDuration API_AVAILABLE(ios(3.1)) API_UNAVAILABLE(visionos); // default value is 10 minutes.
    |                                                                      `- note: mutation of this property is only permitted within the actor
 89 | @property(nonatomic)           UIImagePickerControllerQualityType    videoQuality API_AVAILABLE(ios(3.1)) API_UNAVAILABLE(visionos);         // default value is UIImagePickerControllerQualityTypeMedium. If the cameraDevice does not support the videoQuality, it will use the default value.
 90 | @property(nonatomic, copy)     NSString                              *videoExportPreset API_DEPRECATED("Will be removed in a future release, use PHPicker.", ios(11.0, API_TO_BE_DEPRECATED), visionos(1.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(watchos);  // videoExportPreset can be used to specify the transcoding quality for videos (via a AVAssetExportPreset* string). If the value is nil (the default) then the transcodeQuality is determined by videoQuality instead. Not valid if the source type is UIImagePickerControllerSourceTypeCamera
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:62:31: warning: main actor-isolated property 'allowsEditing' can not be mutated from a nonisolated context
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 60 |         }
 61 |
 62 |         imagePickerController.allowsEditing = allowsEditing
    |                               `- warning: main actor-isolated property 'allowsEditing' can not be mutated from a nonisolated context
 63 |         imagePickerController.cameraDevice = cameraDevice
 64 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:83:70: note: mutation of this property is only permitted within the actor
 81 | @property(nonatomic,copy)      NSArray<NSString *>                   *mediaTypes;
 82 |     // default value is an array containing kUTTypeImage.
 83 | @property(nonatomic)           BOOL                                  allowsEditing API_AVAILABLE(ios(3.1));     // replacement for -allowsImageEditing; default value is NO.
    |                                                                      `- note: mutation of this property is only permitted within the actor
 84 | @property(nonatomic)           BOOL                                  allowsImageEditing API_DEPRECATED("", ios(2.0, 3.1)) API_UNAVAILABLE(visionos, watchos);
 85 | @property(nonatomic)           UIImagePickerControllerImageURLExportPreset imageExportPreset API_DEPRECATED("Will be removed in a future release, use PHPicker.", ios(11.0, API_TO_BE_DEPRECATED), visionos(1.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(watchos);  // default value is UIImagePickerControllerImageExportPresetCompatible.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:63:31: warning: main actor-isolated property 'cameraDevice' can not be mutated from a nonisolated context
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 61 |
 62 |         imagePickerController.allowsEditing = allowsEditing
 63 |         imagePickerController.cameraDevice = cameraDevice
    |                               `- warning: main actor-isolated property 'cameraDevice' can not be mutated from a nonisolated context
 64 |
 65 |         if let availableCaptureModes =  UIImagePickerController.availableCaptureModes(for: cameraDevice) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:106:63: note: mutation of this property is only permitted within the actor
104 |
105 | @property(nonatomic) UIImagePickerControllerCameraCaptureMode cameraCaptureMode API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraCaptureModePhoto
106 | @property(nonatomic) UIImagePickerControllerCameraDevice      cameraDevice      API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraDeviceRear
    |                                                               `- note: mutation of this property is only permitted within the actor
107 | @property(nonatomic) UIImagePickerControllerCameraFlashMode   cameraFlashMode   API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraFlashModeAuto.
108 | // cameraFlashMode controls the still-image flash when cameraCaptureMode is Photo. cameraFlashMode controls the video torch when cameraCaptureMode is Video.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:65:65: warning: call to main actor-isolated class method 'availableCaptureModes(for:)' in a synchronous nonisolated context [#ActorIsolatedCall]
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 63 |         imagePickerController.cameraDevice = cameraDevice
 64 |
 65 |         if let availableCaptureModes =  UIImagePickerController.availableCaptureModes(for: cameraDevice) {
    |                                                                 `- warning: call to main actor-isolated class method 'availableCaptureModes(for:)' in a synchronous nonisolated context [#ActorIsolatedCall]
 66 |             let availableCaptureModesSet = Set(availableCaptureModes)
 67 |             let preferredCaptureModesSet = Set([preferredCaptureMode.rawValue as NSNumber])
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:76:1: note: calls to class method 'availableCaptureModes(for:)' from outside of its actor context are implicitly asynchronous
 74 | + (BOOL)isCameraDeviceAvailable:(UIImagePickerControllerCameraDevice)cameraDevice                   API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // returns YES if camera device is available
 75 | + (BOOL)isFlashAvailableForCameraDevice:(UIImagePickerControllerCameraDevice)cameraDevice           API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // returns YES if camera device supports flash and torch.
 76 | + (nullable NSArray<NSNumber *> *)availableCaptureModesForCameraDevice:(UIImagePickerControllerCameraDevice)cameraDevice API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // returns array of NSNumbers (UIImagePickerControllerCameraCaptureMode)
    | `- note: calls to class method 'availableCaptureModes(for:)' from outside of its actor context are implicitly asynchronous
 77 |
 78 | @property(nullable,nonatomic,weak)      id <UINavigationControllerDelegate, UIImagePickerControllerDelegate> delegate;
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:70:52: warning: main actor-isolated property 'mediaTypes' can not be referenced from a nonisolated context
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 68 |             let intersection = availableCaptureModesSet.intersection(preferredCaptureModesSet)
 69 |
 70 |             let mediaTypes = imagePickerController.mediaTypes
    |                                                    `- warning: main actor-isolated property 'mediaTypes' can not be referenced from a nonisolated context
 71 |             if mediaTypes == [CameraPickerMediaType.movie().utTypeIdentifier] {
 72 |                 imagePickerController.cameraCaptureMode = .video
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:81:71: note: property declared here
 79 |
 80 | @property(nonatomic)           UIImagePickerControllerSourceType     sourceType;                                                        // default value is UIImagePickerControllerSourceTypePhotoLibrary.
 81 | @property(nonatomic,copy)      NSArray<NSString *>                   *mediaTypes;
    |                                                                       `- note: property declared here
 82 |     // default value is an array containing kUTTypeImage.
 83 | @property(nonatomic)           BOOL                                  allowsEditing API_AVAILABLE(ios(3.1));     // replacement for -allowsImageEditing; default value is NO.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:72:39: warning: main actor-isolated property 'cameraCaptureMode' can not be mutated from a nonisolated context
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 70 |             let mediaTypes = imagePickerController.mediaTypes
 71 |             if mediaTypes == [CameraPickerMediaType.movie().utTypeIdentifier] {
 72 |                 imagePickerController.cameraCaptureMode = .video
    |                                       `- warning: main actor-isolated property 'cameraCaptureMode' can not be mutated from a nonisolated context
 73 |             } else if mediaTypes == [CameraPickerMediaType.image.utTypeIdentifier] {
 74 |                 imagePickerController.cameraCaptureMode = .photo
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:105:63: note: mutation of this property is only permitted within the actor
103 | - (void)stopVideoCapture  API_AVAILABLE(ios(4.0)) API_UNAVAILABLE(visionos);
104 |
105 | @property(nonatomic) UIImagePickerControllerCameraCaptureMode cameraCaptureMode API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraCaptureModePhoto
    |                                                               `- note: mutation of this property is only permitted within the actor
106 | @property(nonatomic) UIImagePickerControllerCameraDevice      cameraDevice      API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraDeviceRear
107 | @property(nonatomic) UIImagePickerControllerCameraFlashMode   cameraFlashMode   API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraFlashModeAuto.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:74:39: warning: main actor-isolated property 'cameraCaptureMode' can not be mutated from a nonisolated context
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 72 |                 imagePickerController.cameraCaptureMode = .video
 73 |             } else if mediaTypes == [CameraPickerMediaType.image.utTypeIdentifier] {
 74 |                 imagePickerController.cameraCaptureMode = .photo
    |                                       `- warning: main actor-isolated property 'cameraCaptureMode' can not be mutated from a nonisolated context
 75 |             } else {
 76 |                 if let resolvedCameraCaptureModeRawValue = intersection.first as? Int {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:105:63: note: mutation of this property is only permitted within the actor
103 | - (void)stopVideoCapture  API_AVAILABLE(ios(4.0)) API_UNAVAILABLE(visionos);
104 |
105 | @property(nonatomic) UIImagePickerControllerCameraCaptureMode cameraCaptureMode API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraCaptureModePhoto
    |                                                               `- note: mutation of this property is only permitted within the actor
106 | @property(nonatomic) UIImagePickerControllerCameraDevice      cameraDevice      API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraDeviceRear
107 | @property(nonatomic) UIImagePickerControllerCameraFlashMode   cameraFlashMode   API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraFlashModeAuto.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:79:43: warning: main actor-isolated property 'cameraCaptureMode' can not be mutated from a nonisolated context
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 77 |                     let resolvedCameraCaptureMode: UIImagePickerController.CameraCaptureMode?
 78 |                     resolvedCameraCaptureMode = .init(rawValue: resolvedCameraCaptureModeRawValue)
 79 |                     imagePickerController.cameraCaptureMode = resolvedCameraCaptureMode ?? .photo
    |                                           `- warning: main actor-isolated property 'cameraCaptureMode' can not be mutated from a nonisolated context
 80 |                 }
 81 |             }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:105:63: note: mutation of this property is only permitted within the actor
103 | - (void)stopVideoCapture  API_AVAILABLE(ios(4.0)) API_UNAVAILABLE(visionos);
104 |
105 | @property(nonatomic) UIImagePickerControllerCameraCaptureMode cameraCaptureMode API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraCaptureModePhoto
    |                                                               `- note: mutation of this property is only permitted within the actor
106 | @property(nonatomic) UIImagePickerControllerCameraDevice      cameraDevice      API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraDeviceRear
107 | @property(nonatomic) UIImagePickerControllerCameraFlashMode   cameraFlashMode   API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraFlashModeAuto.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:84:31: warning: main actor-isolated property 'cameraFlashMode' can not be mutated from a nonisolated context
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |          `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
    :
 82 |         }
 83 |
 84 |         imagePickerController.cameraFlashMode = flashMode
    |                               `- warning: main actor-isolated property 'cameraFlashMode' can not be mutated from a nonisolated context
 85 |
 86 |         // TODO: Use cameraOverlayView and set showsCameraControls to false to add the ability to take multiple images.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:107:63: note: mutation of this property is only permitted within the actor
105 | @property(nonatomic) UIImagePickerControllerCameraCaptureMode cameraCaptureMode API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraCaptureModePhoto
106 | @property(nonatomic) UIImagePickerControllerCameraDevice      cameraDevice      API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraDeviceRear
107 | @property(nonatomic) UIImagePickerControllerCameraFlashMode   cameraFlashMode   API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // default is UIImagePickerControllerCameraFlashModeAuto.
    |                                                               `- note: mutation of this property is only permitted within the actor
108 | // cameraFlashMode controls the still-image flash when cameraCaptureMode is Photo. cameraFlashMode controls the video torch when cameraCaptureMode is Video.
109 |
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:96:9: warning: call to main actor-isolated initializer 'init(parent:)' in a synchronous nonisolated context [#ActorIsolatedCall]
 93 |     }
 94 |
 95 |     func makeCoordinator() -> Coordinator {
    |          `- note: add '@MainActor' to make instance method 'makeCoordinator()' part of global actor 'MainActor'
 96 |         Coordinator(parent: self)
    |         `- warning: call to main actor-isolated initializer 'init(parent:)' in a synchronous nonisolated context [#ActorIsolatedCall]
 97 |     }
 98 | }
    :
102 |         let parent: UIImagePickerControllerRepresentation
103 |
104 |         init(parent: UIImagePickerControllerRepresentation) {
    |         |- note: calls to initializer 'init(parent:)' from outside of its actor context are implicitly asynchronous
    |         `- note: main actor isolation inferred from conformance to protocol 'UIImagePickerControllerDelegate'
105 |             self.parent = parent
106 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:113:45: error: 'mediaType' is unavailable in watchOS
111 |         ) {
112 |             guard
113 |                 let mediaTypeString = info[.mediaType] as? String,
    |                                             `- error: 'mediaType' is unavailable in watchOS
114 |                 let mediaType = UTType(mediaTypeString)
115 |             else {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:57:51: note: 'mediaType' has been explicitly marked unavailable here
 55 |
 56 | // info dictionary keys
 57 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerMediaType API_UNAVAILABLE(tvos, watchos);      // an NSString (UTI, i.e. kUTTypeImage)
    |                                                   `- note: 'mediaType' has been explicitly marked unavailable here
 58 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerOriginalImage API_UNAVAILABLE(tvos, watchos);  // a UIImage
 59 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerEditedImage API_UNAVAILABLE(tvos, watchos);    // a UIImage
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:120:41: error: 'editedImage' is unavailable in watchOS
118 |
119 |             if mediaType == .image {
120 |                 let editedImage = info[.editedImage] as? UIImage
    |                                         `- error: 'editedImage' is unavailable in watchOS
121 |                 let originalImage = info[.originalImage] as? UIImage
122 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:59:51: note: 'editedImage' has been explicitly marked unavailable here
 57 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerMediaType API_UNAVAILABLE(tvos, watchos);      // an NSString (UTI, i.e. kUTTypeImage)
 58 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerOriginalImage API_UNAVAILABLE(tvos, watchos);  // a UIImage
 59 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerEditedImage API_UNAVAILABLE(tvos, watchos);    // a UIImage
    |                                                   `- note: 'editedImage' has been explicitly marked unavailable here
 60 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerCropRect API_UNAVAILABLE(tvos, watchos);       // an NSValue (CGRect)
 61 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerMediaURL API_UNAVAILABLE(tvos, watchos);       // an NSURL
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:121:43: error: 'originalImage' is unavailable in watchOS
119 |             if mediaType == .image {
120 |                 let editedImage = info[.editedImage] as? UIImage
121 |                 let originalImage = info[.originalImage] as? UIImage
    |                                           `- error: 'originalImage' is unavailable in watchOS
122 |
123 |                 if let imageToHandle = editedImage ?? originalImage {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:58:51: note: 'originalImage' has been explicitly marked unavailable here
 56 | // info dictionary keys
 57 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerMediaType API_UNAVAILABLE(tvos, watchos);      // an NSString (UTI, i.e. kUTTypeImage)
 58 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerOriginalImage API_UNAVAILABLE(tvos, watchos);  // a UIImage
    |                                                   `- note: 'originalImage' has been explicitly marked unavailable here
 59 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerEditedImage API_UNAVAILABLE(tvos, watchos);    // a UIImage
 60 | UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerCropRect API_UNAVAILABLE(tvos, watchos);       // an NSValue (CGRect)
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift (in target 'CameraPicker' from project 'CameraPicker')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile UIImagePickerControllerRepresentation.swift
SwiftCompile normal arm64_32 Compiling\ MediaSaver.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/MediaSaver.swift (in target 'CameraPicker' from project 'CameraPicker')
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/MediaSaver.swift:21:13: error: 'UIImageWriteToSavedPhotosAlbum' is unavailable in watchOS
19 |             self.saveImageContinuation = continuation
20 |
21 |             UIImageWriteToSavedPhotosAlbum(
   |             `- error: 'UIImageWriteToSavedPhotosAlbum' is unavailable in watchOS
22 |                 image,
23 |                 self,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:127:19: note: 'UIImageWriteToSavedPhotosAlbum' has been explicitly marked unavailable here
125 | // Adds a photo to the saved photos album.  The optional completionSelector should have the form:
126 | //  - (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo;
127 | UIKIT_EXTERN void UIImageWriteToSavedPhotosAlbum(UIImage *image, __nullable id completionTarget, __nullable SEL completionSelector, void * __nullable contextInfo) API_UNAVAILABLE(tvos, watchos);
    |                   `- note: 'UIImageWriteToSavedPhotosAlbum' has been explicitly marked unavailable here
128 |
129 | // Is a specific video eligible to be saved to the saved photos album?
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/MediaSaver.swift:42:16: error: 'UIVideoAtPathIsCompatibleWithSavedPhotosAlbum' is unavailable in watchOS
40 |             }
41 |
42 |             if UIVideoAtPathIsCompatibleWithSavedPhotosAlbum(path) {
   |                `- error: 'UIVideoAtPathIsCompatibleWithSavedPhotosAlbum' is unavailable in watchOS
43 |                 UISaveVideoAtPathToSavedPhotosAlbum(
44 |                     path,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:130:19: note: 'UIVideoAtPathIsCompatibleWithSavedPhotosAlbum' has been explicitly marked unavailable here
128 |
129 | // Is a specific video eligible to be saved to the saved photos album?
130 | UIKIT_EXTERN BOOL UIVideoAtPathIsCompatibleWithSavedPhotosAlbum(NSString *videoPath) API_AVAILABLE(ios(3.1)) API_UNAVAILABLE(tvos, watchos);
    |                   `- note: 'UIVideoAtPathIsCompatibleWithSavedPhotosAlbum' has been explicitly marked unavailable here
131 |
132 | // Adds a video to the saved photos album. The optional completionSelector should have the form:
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/MediaSaver.swift (in target 'CameraPicker' from project 'CameraPicker')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile MediaSaver.swift
SwiftCompile normal arm64_32 Compiling\ ForEach+CameraPickerItem.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/ForEach+CameraPickerItem.swift (in target 'CameraPicker' from project 'CameraPicker')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/ForEach+CameraPickerItem.swift (in target 'CameraPicker' from project 'CameraPicker')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile ForEach+CameraPickerItem.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ CameraPicker (in target 'CameraPicker' from project 'CameraPicker')
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/CameraPicker.swift:12:24: error: 'UIImagePickerController' is unavailable in watchOS
 10 |
 11 | public extension CameraPicker {
 12 |     typealias Device = UIImagePickerController.CameraDevice
    |                        `- error: 'UIImagePickerController' is unavailable in watchOS
 13 |     typealias CaptureMode = UIImagePickerController.CameraCaptureMode
 14 |     typealias FlashMode = UIImagePickerController.CameraFlashMode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/CameraPicker.swift:13:29: error: 'UIImagePickerController' is unavailable in watchOS
 11 | public extension CameraPicker {
 12 |     typealias Device = UIImagePickerController.CameraDevice
 13 |     typealias CaptureMode = UIImagePickerController.CameraCaptureMode
    |                             `- error: 'UIImagePickerController' is unavailable in watchOS
 14 |     typealias FlashMode = UIImagePickerController.CameraFlashMode
 15 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/CameraPicker.swift:14:27: error: 'UIImagePickerController' is unavailable in watchOS
 12 |     typealias Device = UIImagePickerController.CameraDevice
 13 |     typealias CaptureMode = UIImagePickerController.CameraCaptureMode
 14 |     typealias FlashMode = UIImagePickerController.CameraFlashMode
    |                           `- error: 'UIImagePickerController' is unavailable in watchOS
 15 | }
 16 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:13:48: error: 'UIViewController' is unavailable in watchOS
11 | // Copy-pasted from this Stack Overflow answer: https://stackoverflow.com/a/72559127/10654098
12 | extension UIImagePickerController {
13 |     open override var childForStatusBarHidden: UIViewController? { nil }
   |                                                `- error: 'UIViewController' is unavailable in watchOS
14 |
15 |     open override var prefersStatusBarHidden: Bool { true }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:43:27: error: 'UIView' is unavailable in watchOS
41 |     }
42 |
43 |     private var cropView: UIView? { findCropView(from: view) }
   |                           `- error: 'UIView' is unavailable in watchOS
44 |
45 |     private var scrollView: UIScrollView? { findScrollView(from: view) }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:45:29: error: 'UIScrollView' is unavailable in watchOS
43 |     private var cropView: UIView? { findCropView(from: view) }
44 |
45 |     private var scrollView: UIScrollView? { findScrollView(from: view) }
   |                             `- error: 'UIScrollView' is unavailable in watchOS
46 |
47 |     private func findCropView(from view: UIView) -> UIView? {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h:87:12: note: 'UIScrollView' has been explicitly marked unavailable here
 85 |
 86 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 87 | @interface UIScrollView : UIView <NSCoding, UIFocusItemScrollableContainer>
    |            `- note: 'UIScrollView' has been explicitly marked unavailable here
 88 |
 89 | @property(nonatomic)         CGPoint                      contentOffset;                  // default CGPointZero
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:47:42: error: 'UIView' is unavailable in watchOS
45 |     private var scrollView: UIScrollView? { findScrollView(from: view) }
46 |
47 |     private func findCropView(from view: UIView) -> UIView? {
   |                                          `- error: 'UIView' is unavailable in watchOS
48 |         let width = UIScreen.main.bounds.width
49 |         let size = view.bounds.size
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:47:53: error: 'UIView' is unavailable in watchOS
45 |     private var scrollView: UIScrollView? { findScrollView(from: view) }
46 |
47 |     private func findCropView(from view: UIView) -> UIView? {
   |                                                     `- error: 'UIView' is unavailable in watchOS
48 |         let width = UIScreen.main.bounds.width
49 |         let size = view.bounds.size
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:64:44: error: 'UIView' is unavailable in watchOS
62 |     }
63 |
64 |     private func findScrollView(from view: UIView) -> UIScrollView? {
   |                                            `- error: 'UIView' is unavailable in watchOS
65 |         if let scrollView = view as? UIScrollView {
66 |             return scrollView
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:64:55: error: 'UIScrollView' is unavailable in watchOS
62 |     }
63 |
64 |     private func findScrollView(from view: UIView) -> UIScrollView? {
   |                                                       `- error: 'UIScrollView' is unavailable in watchOS
65 |         if let scrollView = view as? UIScrollView {
66 |             return scrollView
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h:87:12: note: 'UIScrollView' has been explicitly marked unavailable here
 85 |
 86 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 87 | @interface UIScrollView : UIView <NSCoding, UIFocusItemScrollableContainer>
    |            `- note: 'UIScrollView' has been explicitly marked unavailable here
 88 |
 89 | @property(nonatomic)         CGPoint                      contentOffset;                  // default CGPointZero
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift:12:11: error: 'UIImagePickerController' is unavailable in watchOS
10 | // This is a fix for not being able to drag the crop area of the captired image to the endges.
11 | // Copy-pasted from this Stack Overflow answer: https://stackoverflow.com/a/72559127/10654098
12 | extension UIImagePickerController {
   |           `- error: 'UIImagePickerController' is unavailable in watchOS
13 |     open override var childForStatusBarHidden: UIViewController? { nil }
14 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:15:18: error: 'UIImagePickerController' is unavailable in watchOS
 13 |     case image
 14 |     case movie(
 15 |         quality: UIImagePickerController.QualityType = .typeMedium,
    |                  `- error: 'UIImagePickerController' is unavailable in watchOS
 16 |         maximumDuration: TimeInterval = 600
 17 |     )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:36:23: error: 'UIImagePickerController' is unavailable in watchOS
 34 |     let allowsEditing: Bool
 35 |     let preferredMediaTypes: Set<CameraPickerMediaType>
 36 |     let cameraDevice: UIImagePickerController.CameraDevice
    |                       `- error: 'UIImagePickerController' is unavailable in watchOS
 37 |     let preferredCaptureMode: UIImagePickerController.CameraCaptureMode
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:37:31: error: 'UIImagePickerController' is unavailable in watchOS
 35 |     let preferredMediaTypes: Set<CameraPickerMediaType>
 36 |     let cameraDevice: UIImagePickerController.CameraDevice
 37 |     let preferredCaptureMode: UIImagePickerController.CameraCaptureMode
    |                               `- error: 'UIImagePickerController' is unavailable in watchOS
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:38:20: error: 'UIImagePickerController' is unavailable in watchOS
 36 |     let cameraDevice: UIImagePickerController.CameraDevice
 37 |     let preferredCaptureMode: UIImagePickerController.CameraCaptureMode
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
    |                    `- error: 'UIImagePickerController' is unavailable in watchOS
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:40:40: error: cannot find type 'Context' in scope
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |                                        `- error: cannot find type 'Context' in scope
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:40:52: error: 'UIImagePickerController' is unavailable in watchOS
 38 |     let flashMode: UIImagePickerController.CameraFlashMode
 39 |
 40 |     func makeUIViewController(context: Context) -> UIImagePickerController {
    |                                                    `- error: 'UIImagePickerController' is unavailable in watchOS
 41 |         let imagePickerController = UIImagePickerController()
 42 |         imagePickerController.delegate = context.coordinator
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:91:92: error: cannot find type 'Context' in scope
 89 |     }
 90 |
 91 |     func updateUIViewController(_ imagePickerController: UIImagePickerController, context: Context) {
    |                                                                                            `- error: cannot find type 'Context' in scope
 92 |
 93 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:91:58: error: 'UIImagePickerController' is unavailable in watchOS
 89 |     }
 90 |
 91 |     func updateUIViewController(_ imagePickerController: UIImagePickerController, context: Context) {
    |                                                          `- error: 'UIImagePickerController' is unavailable in watchOS
 92 |
 93 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:31:47: error: cannot find type 'UIViewControllerRepresentable' in scope
 29 | }
 30 |
 31 | struct UIImagePickerControllerRepresentation: UIViewControllerRepresentable {
    |                                               `- error: cannot find type 'UIViewControllerRepresentable' in scope
 32 |     @Binding var selection: [any CameraPickerItem]
 33 |     @Binding var error: LocalizedError?
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:109:23: error: 'UIImagePickerController' is unavailable in watchOS
107 |
108 |         func imagePickerController(
109 |             _ picker: UIImagePickerController,
    |                       `- error: 'UIImagePickerController' is unavailable in watchOS
110 |             didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]
111 |         ) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:110:50: error: 'UIImagePickerController' is unavailable in watchOS
108 |         func imagePickerController(
109 |             _ picker: UIImagePickerController,
110 |             didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]
    |                                                  `- error: 'UIImagePickerController' is unavailable in watchOS
111 |         ) {
112 |             guard
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:149:55: error: 'UIImagePickerController' is unavailable in watchOS
147 |         }
148 |
149 |         func imagePickerControllerDidCancel(_ picker: UIImagePickerController) {
    |                                                       `- error: 'UIImagePickerController' is unavailable in watchOS
150 |             picker.dismiss(animated: true)
151 |         }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:69:12: note: 'UIImagePickerController' has been explicitly marked unavailable here
 67 |
 68 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
 69 | @interface UIImagePickerController : UINavigationController <NSCoding>
    |            `- note: 'UIImagePickerController' has been explicitly marked unavailable here
 70 |
 71 | + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 // returns YES if source is available (i.e. camera present)
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:101:34: error: 'UIImagePickerControllerDelegate' is unavailable in watchOS
 99 |
100 | extension UIImagePickerControllerRepresentation {
101 |     class Coordinator: NSObject, UIImagePickerControllerDelegate, UINavigationControllerDelegate {
    |                                  `- error: 'UIImagePickerControllerDelegate' is unavailable in watchOS
102 |         let parent: UIImagePickerControllerRepresentation
103 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:113:11: note: 'UIImagePickerControllerDelegate' has been explicitly marked unavailable here
111 |
112 | API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
113 | @protocol UIImagePickerControllerDelegate<NSObject>
    |           `- note: 'UIImagePickerControllerDelegate' has been explicitly marked unavailable here
114 | @optional
115 | // The picker does not dismiss itself; the client dismisses it in these callbacks.
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift:101:67: error: 'UINavigationControllerDelegate' is unavailable in watchOS
 99 |
100 | extension UIImagePickerControllerRepresentation {
101 |     class Coordinator: NSObject, UIImagePickerControllerDelegate, UINavigationControllerDelegate {
    |                                                                   `- error: 'UINavigationControllerDelegate' is unavailable in watchOS
102 |         let parent: UIImagePickerControllerRepresentation
103 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINavigationController.h:128:11: note: 'UINavigationControllerDelegate' has been explicitly marked unavailable here
126 |
127 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
128 | @protocol UINavigationControllerDelegate <NSObject>
    |           `- note: 'UINavigationControllerDelegate' has been explicitly marked unavailable here
129 |
130 | @optional
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/CameraPicker.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/CameraPickerItem.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/ForEach+CameraPickerItem.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/MediaSaver.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerController+.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/UIImagePickerControllerRepresentation.swift -target arm64-apple-watchos9.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libPreviewsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#PreviewsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftUIMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64/CameraPicker-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -profile-generate -profile-coverage-mapping -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name CameraPicker -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64/CameraPicker_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-watchos27.0 -target-sdk-version 27.0 -target-sdk-name watchos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64/CameraPicker.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64/CameraPicker.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64/CameraPicker-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64/CameraPicker-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64/CameraPicker-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64/CameraPicker.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraPicker.build/Debug-watchos/CameraPicker-t.build/Objects-normal/arm64/CameraPicker.abi.json
SwiftCompile normal arm64 (in target 'CameraPicker' from project 'CameraPicker')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

SwiftCompile normal arm64 Compiling\ CameraPickerItem.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/CameraPickerItem.swift (in target 'CameraPicker' from project 'CameraPicker')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/CameraPickerItem.swift (in target 'CameraPicker' from project 'CameraPicker')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CameraPickerItem.swift
SwiftCompile normal arm64 Compiling\ MediaSaver.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/MediaSaver.swift (in target 'CameraPicker' from project 'CameraPicker')
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/MediaSaver.swift:21:13: error: 'UIImageWriteToSavedPhotosAlbum' is unavailable in watchOS
19 |             self.saveImageContinuation = continuation
20 |
21 |             UIImageWriteToSavedPhotosAlbum(
   |             `- error: 'UIImageWriteToSavedPhotosAlbum' is unavailable in watchOS
22 |                 image,
23 |                 self,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:127:19: note: 'UIImageWriteToSavedPhotosAlbum' has been explicitly marked unavailable here
125 | // Adds a photo to the saved photos album.  The optional completionSelector should have the form:
126 | //  - (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo;
127 | UIKIT_EXTERN void UIImageWriteToSavedPhotosAlbum(UIImage *image, __nullable id completionTarget, __nullable SEL completionSelector, void * __nullable contextInfo) API_UNAVAILABLE(tvos, watchos);
    |                   `- note: 'UIImageWriteToSavedPhotosAlbum' has been explicitly marked unavailable here
128 |
129 | // Is a specific video eligible to be saved to the saved photos album?
/Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/MediaSaver.swift:42:16: error: 'UIVideoAtPathIsCompatibleWithSavedPhotosAlbum' is unavailable in watchOS
40 |             }
41 |
42 |             if UIVideoAtPathIsCompatibleWithSavedPhotosAlbum(path) {
   |                `- error: 'UIVideoAtPathIsCompatibleWithSavedPhotosAlbum' is unavailable in watchOS
43 |                 UISaveVideoAtPathToSavedPhotosAlbum(
44 |                     path,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:130:19: note: 'UIVideoAtPathIsCompatibleWithSavedPhotosAlbum' has been explicitly marked unavailable here
128 |
129 | // Is a specific video eligible to be saved to the saved photos album?
130 | UIKIT_EXTERN BOOL UIVideoAtPathIsCompatibleWithSavedPhotosAlbum(NSString *videoPath) API_AVAILABLE(ios(3.1)) API_UNAVAILABLE(tvos, watchos);
    |                   `- note: 'UIVideoAtPathIsCompatibleWithSavedPhotosAlbum' has been explicitly marked unavailable here
131 |
132 | // Adds a video to the saved photos album. The optional completionSelector should have the form:
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/MediaSaver.swift (in target 'CameraPicker' from project 'CameraPicker')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile MediaSaver.swift
SwiftCompile normal arm64 Compiling\ ForEach+CameraPickerItem.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/ForEach+CameraPickerItem.swift (in target 'CameraPicker' from project 'CameraPicker')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraPicker/ForEach+CameraPickerItem.swift (in target 'CameraPicker' from project 'CameraPicker')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile ForEach+CameraPickerItem.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
2026-09-19 06:05:24.120 xcodebuild[847:4793] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
	SwiftEmitModule normal arm64_32 Emitting\ module\ for\ CameraPicker (in target 'CameraPicker' from project 'CameraPicker')
	SwiftCompile normal arm64_32 (in target 'CameraPicker' from project 'CameraPicker')
	SwiftEmitModule normal arm64 Emitting\ module\ for\ CameraPicker (in target 'CameraPicker' from project 'CameraPicker')
	SwiftCompile normal arm64 (in target 'CameraPicker' from project 'CameraPicker')
	Building workspace CameraPicker with scheme CameraPicker
(5 failures)
BUILD FAILURE 6.4 watchOS