Post

Replies

Boosts

Views

Activity

[iOS 14 Bug?] MPMediaPlaylist.addItem(withProductID:) -> Freeze 🥶
Hello Apple World, I am working on an app that adds Apple Music songs to an MPMediaPlaylist. I was able to do this successfully in iOS 13.7. However, today I started testing on iOS 14.0.1 and the same code causes my app to freeze completely. print("PlaylistManager.addItem playlist \(playlist) identifier \(identifier) MPMediaLibrary.authorizationStatus() \(MPMediaLibrary.authorizationStatus().rawValue)") playlist.addItem(withProductID: identifier) { (error) in if error != nil {          print("An error occurred while adding an item to the playlist: \(error!.localizedDescription)") } } Output: "PlaylistManager.addItem playlist <MPConcreteMediaPlaylist: 0x2819dc4d0> identifier 1531532609 MPMediaLibrary.authorizationStatus() 3" Because I don't get any errors printed (the app just freezes up) and I don't see any crash logs in Devices and Simulators, I am not sure how to proceed. Is anyone else running into this issue with MPMediaPlaylist.addItem in iOS 14? Is there a general way to debug app freezes? Any help will be very much appreciated; Thank you in advance! Marvin
4
0
1.6k
Oct ’20
Investigating SIGTRAP on AppDelegate Declaration during App Store Connect Review
Hello Apple World, The app review team is experiencing a crash when running my app. I am not able to reproduce this crash in the simulator, on my device, or in TestFlight. The reviewers say the app crashes after the user signs in, but the stack trace points to this line in my AppDelegate.swift: 15 class AppDelegate: UIResponder, UIApplicationDelegate { I have three questions for the community: Is there a way I can get more information from this crash report? Does the app crashing on this line signify some general type of error I should investigate? Why does the app only crash when the app review team runs it? Is there a way I can replicate their testing environment locally? Thank you for your help, Marvin Release Type:&#9;&#9;&#9;&#9;User Baseband Version:&#9;&#9;n/a Report Version:&#9;&#9;&#9;104 Exception Type:&#9;EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000001, 0x00000001af0049d0 Termination Signal: Trace/BPT trap: 5 Termination Reason: Namespace SIGNAL, Code 0x5 Terminating Process: exc handler [20706] Triggered by Thread:&#9;8 Last Exception Backtrace: 0&#9; CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1af3a3654 0x1af279000 + 1222228 1&#9; libobjc.A.dylib&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1af0c5bcc 0x1af0c0000 + 23500 2&#9; Foundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1af8891fc 0x1af665000 + 2245116 3&#9; Foundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1af68c4a0 0x1af665000 + 160928 4&#9; UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1b38304b0 0x1b2a29000 + 14709936 5&#9; UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1b390b73c 0x1b2a29000 + 15607612 6&#9; QuartzCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1b5ea8494 0x1b5d57000 + 1381524 7&#9; QuartzCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1b5eae5ec 0x1b5d57000 + 1406444 8&#9; QuartzCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1b5eb9128 0x1b5d57000 + 1450280 9&#9; QuartzCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1b5e01b44 0x1b5d57000 + 699204 10&#9;QuartzCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1b5e2b4e4 0x1b5d57000 + 869604 11&#9;QuartzCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1b5e2c484 0x1b5d57000 + 873604 12&#9;libsystem_pthread.dylib&#9;&#9;&#9; 0x1af0bcf8c 0x1af0af000 + 57228 13&#9;libsystem_pthread.dylib&#9;&#9;&#9; 0x1af0b9df4 0x1af0af000 + 44532 14&#9;libsystem_pthread.dylib&#9;&#9;&#9; 0x1af0bae64 0x1af0af000 + 48740 15&#9;libsystem_pthread.dylib&#9;&#9;&#9; 0x1af0bac04 0x1af0af000 + 48132 16&#9;libsystem_pthread.dylib&#9;&#9;&#9; 0x1af0bd740 0x1af0af000 + 59200 Thread 0 name:&#9;Dispatch queue: com.apple.main-thread Thread 0: 0&#9; libsystem_kernel.dylib&#9;&#9;&#9;&#9; 0x00000001af177198 0x1af173000 + 16792 1&#9; libsystem_kernel.dylib&#9;&#9;&#9;&#9; 0x00000001af17660c 0x1af173000 + 13836 2&#9; CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001af321328 0x1af279000 + 688936 3&#9; CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001af31c35c 0x1af279000 + 668508 4&#9; CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001af31bba8 0x1af279000 + 666536 5&#9; GraphicsServices&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001b948b344 0x1b9488000 + 13124 6&#9; UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001b34573e4 0x1b2a29000 + 10675172 7&#9; FunkyFundz&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001024289e8 main + 35304 (AppDelegate.swift:15) ... Full Error Log - https://developer.apple.com/forums/content/attachment/9bad5953-1732-4da1-ba43-d8f6eed7ef01
4
0
1.6k
Sep ’20