I’m encountering a consistent crash in WebKit when using WKWebView to play a YouTube playlist in my iOS app. Playback starts successfully, but the web process terminates during the second video in the playlist. This only occurs on physical devices, not in the simulator. Here’s a simplified Swift example of my setup: import SwiftUI import WebKit struct ContentView: View { private let playlistID = PLig2mjpwQBZnghraUKGhCqc9eAy0UbpDN var body: some View { YouTubeWebView(playlistID: playlistID) .edgesIgnoringSafeArea(.all) } } struct YouTubeWebView: UIViewRepresentable { let playlistID: String func makeUIView(context: Context) -> WKWebView { let config = WKWebViewConfiguration() config.allowsInlineMediaPlayback = true let webView = WKWebView(frame: .zero, configuration: config) webView.scrollView.isScrollEnabled = true let html = webView.loadHTMLString(html, baseURL: nil) return webView } func updateUIView(_ uiView: WKWebView, context: Context) {} } #Preview { ContentView() } Observed behav
Search results for
We are unable to process your request
69,589 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
After quite a lot of testing, I found an elegant workaround. I believe the issue is that WebKit on phones has strict memory limits, and YouTube's playlist mode accumulates memory by preloading/caching multiple videos simultaneously, causing the WebContent process to crash on the second or third video. So Instead of loading a YouTube playlist directly, I fetch the playlist's video IDs once, then load and play individual videos one at a time using loadVideoById(), preventing memory accumulation and eliminating crashes.
Topic:
Media Technologies
SubTopic:
Video
Tags:
I am constantly running out of storage on my iPhone 16 Pro. I keep having to move my photos and videos to my laptop and delete them from my phone, and I’m constantly needing to offload apps and manually clear caches in some apps to free up storage. I finally got sick of having this cycle every two weeks so looked into it more closely. I’m finding that iOS consumes 32 GB, and then another system reserve category is consuming an additional 23 GB. Meaning the system reserved files are consuming half of the storage on this phone and effectively making it a 64 GB model. I understand the system will need to consume some capacity for itself and that iOS is getting larger, but nearly 50% of the capacity of the phone is insane. Looking closer into the categories, I’m seeing that iOS has taken it upon itself to also permanently provision 10% of the storage capacity for reserve update space. Already another instance of “why am I having to lose so much of my functional capacity to an occasional process?” but I c
I want to insert the medication data which is available from ios 26 from my app to apple health kit. I have tried to get the permission to read and write data but app got crashed while I tried to request that permission. Does apple allow to insert the medication data to apple health kit likewise we are able to add other health and fitness data or not? let healthStore = HKHealthStore() @available(iOS 26.0, *) @objc func requestAuthorization(_ resolve: @escaping RCTPromiseResolveBlock, rejecter reject: @escaping RCTPromiseRejectBlock) { guard HKHealthStore.isHealthDataAvailable() else { print(not available ) return } let doseType = HKObjectType.medicationDoseEventType() let medType = HKObjectType.userAnnotatedMedicationType() healthStore.requestAuthorization(toShare: [doseType], read: [doseType]) { success, error in if let err = error { reject(auth_error, err.localizedDescription, err); return } self.healthStore.requestPerObjectReadAuthorization(for: medType, predicate: nil) { s, e in if let err2 = e {
All of these issues appear when the search controller is set on the view controller's navigationItem and the search controller's searchBar has its scopeButtonTitles set. So far the following issues are affecting my app on iOS/iPadOS 26 as of beta 7: When the scopeBarActivation of UISearchController is set to .onSearchActivation, the preferredSearchBarPlacement of the navigationItem is set to .integratedButton, and the searchBarPlacementAllowsToolbarIntegration is set to false (forcing the search icon to appear in the nav bar), on both iPhones and iPads, the scope buttons never appear. They don't appear when the search is activated. They don't appear when any text is entered into the search bar. FB19771313 I attempted to work around that issue by setting the scopeBarActivation to .manual. I then show the scope bar in the didPresentSearchController delegate method and hide the scope bar in the willDismissSearchController. On an iPhone this works though the display is a bit clunky. On an iPad, the scope bar does
When running unit tests or UI tests that cause a crash (even intentionally), the simulator itself crashes and can't be booted again in subsequent runs. This started happening from Xcode 26, our project never had this issue before (we had crashes before as well). Steps to Reproduce: Run the unit test with fatalError(). Observe the simulator crashes. On the next test run, the simulator fails to boot, remaining in a crashed or stuck state. Example error: error = Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 Simulator device failed to launch com.xxx.xctrunner. UserInfo={NSLocalizedDescription=Simulator device failed to launch com.xxx.xctrunner., NSUnderlyingError=0x600009895830 {Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 The request to open com.xxx.xctrunner failed. UserInfo={BSErrorCodeDescription=RequestDenied, NSLocalizedDescription=The request to open com.xxx.xctrunner failed., NSUnderlyingError=0x6000085d9500 {Error Domain=FBProcessExit Code=64 The process
We have tried doing this, to no effect. The Order property seems to be ignored when using MDM. (When we manually installed one extension, waited for it to be activated, and then the other, then flows were processed in that order.) We're using roughly this: TransparentProxy AuthenticationMethod Password ProviderBundleIdentifier com.kithrup.Multiple-TPP.TPP-2 ProviderDesignatedRequirement stuff Order 1 RemoteAddress localhost to set that one to be the first. We have another one, different company, that we had Order set to 2. And yet, that one always got flows first, no matter what the Order value was. Are we doing something very wrong? Or is this a bug somewhere?
Topic:
App & System Services
SubTopic:
Networking
Tags:
Hi I have a monitoring app, that will take input video from uvc and process it using Metal, and eventually get a MTLTexture. The problem I'm facing is I have to convert MTLTexture to CGImage then call TextureResource.replace, which is super slow. Metal processing speed is same as input frame rate(50pfs), but MTLTexture -> CGImage -> TextureResource only got 7fps... Is there any way I can make it faster?
Topic:
Spatial Computing
SubTopic:
General
Tags:
Media Player
Frameworks
Media Accessibility
Core Media
Hello! Bare with me here, as there is a lot to explain! I am working on implementing a Game Center high score leaderboard into my game. I have looked around for examples of how to properly implement this code, but have come up short on finding much material. Therefore, I have tried implementing it myself based off information I found on apples documentation. Long story short, I am getting success printed when I update my score, but no scores are actually being posted (or at-least no scores are showing up on the Game Center leaderboard when opened). Before I show the code, one thing I have questioned is the fact that this game is still in development. In AppStoreConnect, the status of the leaderboard is Not Live. Does this affect scores being posted? Onto the code. I have created a GameCenter class which handles getting the leaderboards and posting scores to a specific leaderboard. I will post the code in whole, and will discuss below what is happening. PLEASE VIEW ATTACHED TEXT TO SEE THE GAMECENTER CLASS! Ga
Upon further review of the activity associated with your Apple Developer Program membership, it's been determined that your membership, or a membership associated with your account, has been used for dishonest or fraudulent activity, in violation of the Apple Developer Program License Agreement. Given the severity of the identified issues, your account has been flagged for removal. Because your account has been flagged for removal, any earnings payments are paused and app transfers are disabled. Creating new accounts after receiving this message may result in the termination of the new or associated accounts. Evidence of Dishonest or Fraudulent Activity App submissions from your account have repeatedly violated the App Review Guidelines in an attempt to evade the review process. After multiple resubmissions, the guideline violation(s) detailed to you in prior correspondence remain unresolved. what to do now
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Hello @crauss77 , Apple’s CONSUMPTION_REQUEST server notification does not include any indication of user consent (customerConsented). That’s by design Apple expects your app, not your server, to collect and confirm the user’s consent before sending consumption data to Apple. Here’s how it’s meant to work 👇 App receives refund request sheet prompt When the user initiates a refund through Apple (for example, via the “Report a Problem” link or refund sheet), Apple sends a CONSUMPTION_REQUEST notification to your server. This is Apple saying: “Please send us details about how this user consumed their purchase.” Your app is responsible for obtaining consent Before your server calls the Consumption API, you must collect the user’s consent within the app. Apple requires that customerConsented = true be included in your API call; otherwise, Apple rejects the request. There is no fallback or assumption Apple will not process a consumption update without explicit consent.
Topic:
App & System Services
SubTopic:
StoreKit
Tags:
Hi @robevans, I'm unable to reproduce the issue, as reported, in my own Xcode project. Because the provided example above will not build successfully due to missing types, I replaced your implementation with the following: import SwiftUI struct ContentView: View { @State private var selection = 0 var body: some View { TabView(selection: $selection) { Tab(Home, systemImage: circle.hexagonpath.fill, value: 0) { Color.red } } .tabViewBottomAccessory { Menu(Post Review) { Button { print(Other submitted.) } label: { Label(Submit Other, systemImage: building.2.fill) } Button { print(Bed submitted.) } label: { Label(Submit Bed, systemImage: bed.double.fill) } } } } } #Preview { ContentView() } However, if the above still does not resolve your issue, please consider adding the following view modifier to your button's content: Button { print(Button tapped!) } label: { SomeCustomView() } .contentShape(.rect) To learn more, read the following documentation: contentshape(_:eofill:) https://developer.apple.com/do
Topic:
UI Frameworks
SubTopic:
SwiftUI
Hi @377632523@qq.com, I'm unable to reproduce the issue, as reported, in my own Xcode project. Because the provided example above will not build successfully due to missing types, I replaced your implementation with the following: import SwiftUI struct PhotosMainView: View { @State private var searchText: String = var body: some View { TabView { Tab(Library, systemImage: photo.on.rectangle) { NavigationStack { scrollView(colors: [.red, .orange, .yellow]) .navigationTitle(Library) } } Tab(Albums, systemImage: square.grid.2x2) { NavigationStack { scrollView(colors: [.yellow, .green, .teal]) .navigationTitle(Albums) } } Tab(Search, systemImage: magnifyingglass, role: .search) { NavigationStack { scrollView(colors: [.blue, .purple, .pink]) .navigationTitle(Search) .searchable(text: $searchText) } } } .tabBarMinimizeBehavior(.onScrollUp) .tabViewStyle(.sidebarAdaptable) .tabViewBottomAccessory { TimelineAccessoryView() } } // Trivial helper view to visualize scrolling. @ViewBuilder func scrollView(colors
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
Hello, We knowledge your interest and the need for such examples. To help prioritize the work we'd greatly appreciate it if you took a moment to send us an enhancement request describing code and documentation you'd find helpful.
Topic:
Graphics & Games
SubTopic:
Metal
Tags:
Good find. I wonder if that's new. Try the entitlement request and mention that you're seeking the entitlements for Development Only purposes.
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Tags: