XCode26 doesnt compile PhotosUI properly

Hi so i have a given project where I am trying to use components within the PhotosUI Framework with Xcode26 and Xcode26.0.1

Just for reference here is an attached screenshot

This sample code compiled successfully with xcode16.4 and was in production.

There is no change in the pbxproj file , all the build settings have remained the same. Attaching it for reference.

While showing declarations of PHPickerViewControllerDelegate i get two options

which is the same as in Xcode16.4

while browsing online found this reddit thread which is very similar https://www.reddit.com/r/Xcode/comments/1nkku20/my_project_wont_compile_after_xcode_26_update_due/

Pls help :)

Answered by DTS Engineer in 863350022

I’m not sure what’s going on here, but it seems to be something specific to your project. Here’s what I did:

  1. Using Xcode 26.0.1 on macOS 15.7.1, I created a new test project from the iOS > App template, choosing SwiftUI for the UI.

  2. I modified the top of ContentView.swift to look like this:

    import SwiftUI
    import PhotosUI
    
    let something = PHPickerViewControllerDelegate.self
    
  3. I build the app for the simulator and the device. Both worked fine.

My recommendation is that you repeat these steps. If those work for you, that’ll confirm that this issue is tied to your project rather than something environmental. I’ll also give you know good and known bad cases to compare.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I’m not sure what’s going on here, but it seems to be something specific to your project. Here’s what I did:

  1. Using Xcode 26.0.1 on macOS 15.7.1, I created a new test project from the iOS > App template, choosing SwiftUI for the UI.

  2. I modified the top of ContentView.swift to look like this:

    import SwiftUI
    import PhotosUI
    
    let something = PHPickerViewControllerDelegate.self
    
  3. I build the app for the simulator and the device. Both worked fine.

My recommendation is that you repeat these steps. If those work for you, that’ll confirm that this issue is tied to your project rather than something environmental. I’ll also give you know good and known bad cases to compare.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

XCode26 doesnt compile PhotosUI properly
 
 
Q