Post

Replies

Boosts

Views

Activity

Reply to Video not working on 16.4 simulator
(And here's what was filed with Feedback-Assistant ID# FB12264845) Xcode 14.3 and Simulator 16.4 HLS/m3u8 video playback issue Please see the following thread: https://developer.apple.com/forums/thread/727288?login=true&page=1&r_s_legacy=true#754122022 This BUG REPORT is in response to a conversation earlier via WWDC Lab ID 7873788389, i.e. reporting the bug described in the above forum feed, and as follows: HLS video is no longer playing beginning with XCode 14.3 and in Simulator 16.4. I've isolated example code below. Note that .mp4 video plays fine, however HLS/m3u8 video does not (stream loads but only audio plays). This bug is only in the Simulator (16.4); i.e. on device (and in previous Simulators) m3u8 video plays fine. Please see the forum thread for more details and other developer reports. Thank you. Example code: /* Supporting includes, variables, etc. #import <AVFoundation/AVFoundation.h> #import <AVKit/AVKit.h> @property (nonatomic, strong) AVPlayer *player; @property (nonatomic, strong) AVPlayerViewController *playerViewController; */ // Initialize AVPlayer // .mp4; note mp4 plays fine, i.e. video appears. //NSURL *videoURL = [NSURL URLWithString:@"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"]; // m3u8; note HLS/m3u8 VIDEO DOESN'T APPEAR, however file "successfully" loads and e.g. audio plays. NSURL *videoURL = [NSURL URLWithString:@"https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8"]; self.player = [AVPlayer playerWithURL:videoURL]; // Initialize AVPlayerViewController self.playerViewController = [[AVPlayerViewController alloc] init]; self.playerViewController.player = self.player; self.playerViewController.view.frame = self.view.bounds; [self.view addSubview:self.playerViewController.view]; // Play the video [self.player play];
Jun ’23
Reply to Video not working on 16.4 simulator
Interestingly, the pixels from an HLS stream are available in the 16.4 Simulator(s), i.e. it's possible to get a valid (loaded w/ the video frame and not black) CVPixelBufferRef from the stream, even though video won't display on screen. Att: Apple, please hurry up with a fix on this! It makes developing streaming video applications a pain i.e. not being able to actually program and text the latest OS on anything other than connected devices (rendering the Simulators pretty much useless for developing our application).
May ’23
Reply to "UI unresponsiveness" warning on @main
Same purple security warning in Xcode 14 (latest release) here. "This method should not be called on the main thread as it may lead to UI unresponsiveness." In my case I've traced it to a WKWebView -> loadRequest:, i.e. called from my main ViewController's -> viewDidLoad: i.e. I load a web view at app startup, as after launch/splash screen it's the first view user will see. I'm careful about accounting for network issues and will timeout (or not even try loading), display an alternative screen, etc. if there are network issues. I'm going to assume someone on the Xcode team chose to add this warning in the event a developer doesn't account for slow loading or not loading at all an initial wkwebview when the app first launches? Any other theories? Is it safe to ignore the warning?
Sep ’22
Reply to This method should not be called on the main thread as it may lead to UI unresponsiveness.
Same purple warning in Xcode 14 here. "This method should not be called on the main thread as it may lead to UI unresponsiveness." In my case I've traced it to a WKWebView -> loadRequest:, i.e. called from my main ViewController's -> viewDidLoad: I load a web view at app startup, as after launch/splash screen it's the first view user will see. I'm careful about accounting for network issues and will timeout (or not even try loading), display an alternative screen, etc. if there are network issues. I'm going to assume someone on the Xcode team chose to add this warning in the event a developer doesn't account for slow loading or not loading at all an initial wkwebview when the app first launches? Any other theories? Is it safe to ignore the warning?
Sep ’22
Reply to How to delete the warning 'This method should not be called on the main thread as it may lead to UI unresponsiveness.' shown in xCode14
Same purple warning in Xcode 14 here. "This method should not be called on the main thread as it may lead to UI unresponsiveness." In my case I've traced it to a WKWebView -> loadRequest:, i.e. called from my main ViewController's -> viewDidLoad: I load a web view at app startup, as after launch/splash screen it's the first view user will see. I'm careful about accounting for network issues and will timeout (or not even try loading), display an alternative screen, etc. if there are network issues. I'm going to assume someone on the Xcode team chose to add this warning in the event a developer doesn't account for slow loading or not loading at all an initial wkwebview when the app first launches? Any other theories? Is it safe to ignore the warning?
Sep ’22
Reply to Xcode 14 & iOS 16 purple warnings starting with "[Security] This method should not .. "
Same purple warning in Xcode 14 here. "This method should not be called on the main thread as it may lead to UI unresponsiveness." In my case I've traced it to a WKWebView -> loadRequest:, i.e. called from my main ViewController's -> viewDidLoad: I load a web view at app startup, as after launch/splash screen it's the first view user will see. I'm careful about accounting for network issues and will timeout (or not even try loading), display an alternative screen, etc. if there are network issues. I'm going to assume someone on the Xcode team chose to add this warning in the event a developer doesn't account for slow loading or not loading at all an initial wkwebview when the app first launches? Any other theories? Is it safe to ignore the warning?
Sep ’22
Reply to iPhone 12 mini simulator
Same issue, re: iPhone mini 12; I get screen dimensions of 375x812 (x3) reported in the Simulator. Whereas the actual device dimensions are 360x780 (x3). This basically renders it impossible for me to account for iPhone mini 12 as you've said without having a physical device.
Jul ’22
Reply to M1 Xcode 12.5 can't paste clipboard
Same issues as everyone else, i.e. recently migrated to M1 MacBook Air and paste no longer works in iOS 15.4 Simulator. I downloaded 13.7 simulators as suggested, paste works in 13.7 but now (in 13.7) certain kinds of videos (streams) refuse to load. Xcode 13.3; running in Rosetta mode (using some libraries e.g. AFNetworking that aren't yet updated/supported w/ new M1). Any new insights into (fixing?) this issue appreciated.
Mar ’22
Reply to Xcode 13 typing is delayed / really slow
Also experiencing these issues (slow typing, slow navigation) with XCode13. Albeit, my app is incredibly complex, multiple files, many containing thousands of lines of code. But XCode is a professional tool, and hasn't given me this kind of grief in the decade using it to build for the Apple eco system. If this continues it may finally push me away from Apple development and move my work to "web applications" instead. PS Unchecking Preferences->General->Show Live Issues helped but didn't completely solve the slowness issues for me.
Oct ’21