Post

Replies

Boosts

Views

Activity

Apple Music playlist songs without Music Kit
Hi! I'm developing a music app. I want to get the songs from different playlists to play a preview and later the user can buy them on iTunes. I'm getting the most played playlist via rss.applemarketingtools.com but I cant get the songs that contain the playlist. I tried to use Music Kit but I have to support iOS14 and MusicKit is not available. Anyone knows any api or someway to do it. Some apps like Instories got this. Thanks
1
0
1.4k
Sep ’22
Use AppleMusic preview file in app
Hi! I'm developing an app that adds music to photos and videos. I use AppleMusic as a source of the songs, the user can hear the preview of the song, buy it on iTunes, and use it. My question is I can use the preview of AppleMusic as an option if the user doesn't want to buy the song on iTunes? Would I be in breach of any apple policy? Thanks for the info!
0
0
832
Oct ’22
I got a _NSKVONotifyingOriginalClassForIsa error and dont know how to solve it :(
Hi! I got this error in crashlitics multiple times and i made several changes in my code to solve it but still appearing. It knwo that is related with AVPlayer. I have an onboarding screen with 4 steps and every step got a different video but I use de same video player (AVPlayer). This video player have 2 observers that are added when the videoURL is setted on the instance of videoplayer and also is removed before added a new observer. I check and all the added observers is removed, but I still getting this error. Can someone help me with this ? Thanks!! Crashed: com.apple.main-thread 0 libobjc.A.dylib 0x618c class_getMethodImplementation + 32 1 Foundation 0x3dfd0 _NSKVONotifyingOriginalClassForIsa + 28 2 Foundation 0x3fa68 _NSKeyValueObservationInfoGetObservances + 284 3 Foundation 0x18364 NSKeyValueWillChangeWithPerThreadPendingNotifications + 236 4 AVFoundation 0x1a68 (Falta UUID XXXXXX) 5 AVFCore 0x5c55c __67-[AVPlayer _createAndConfigureFigPlayerWithType:completionHandler:]_block_invoke_2 + 172 6 libdispatch.dylib 0x63094 _dispatch_call_block_and_release + 24 7 libdispatch.dylib 0x64094 _dispatch_client_callout + 16 8 libdispatch.dylib 0x10d44 _dispatch_main_queue_drain + 928 9 libdispatch.dylib 0x10994 _dispatch_main_queue_callback_4CF$VARIANT$mp + 36 10 CoreFoundation 0x4e034 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12 11 CoreFoundation 0xb538 __CFRunLoopRun + 2544 12 CoreFoundation 0x1e194 CFRunLoopRunSpecific + 572 13 GraphicsServices 0x1988 GSEventRunModal + 160 14 UIKitCore 0x4e5a88 -[UIApplication _run] + 1080 15 UIKitCore 0x27efc8 UIApplicationMain + 336 16 Storybeat 0x6ee0 main + 20 (AppDelegate.swift:20) 17 ??? 0x101df84d0 (Falta) Con fallos: com.apple.main-thread EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x000000001036a510 0 libobjc.A.dylib class_getMethodImplementation + 32 1 Foundation _NSKVONotifyingOriginalClassForIsa + 28 2 Foundation _NSKeyValueObservationInfoGetObservances + 284 3 Foundation NSKeyValueWillChangeWithPerThreadPendingNotifications + 236 4 AVFoundation (Falta UUID XXXXX) 5 AVFCore __67-[AVPlayer _createAndConfigureFigPlayerWithType:completionHandler:]_block_invoke_2 + 172 6 libdispatch.dylib _dispatch_call_block_and_release + 24 7 libdispatch.dylib _dispatch_client_callout + 16 8 libdispatch.dylib _dispatch_main_queue_drain + 928 9 libdispatch.dylib _dispatch_main_queue_callback_4CF$VARIANT$mp + 36 10 CoreFoundation __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12 11 CoreFoundation __CFRunLoopRun + 2544 12 CoreFoundation CFRunLoopRunSpecific + 572 13 GraphicsServices GSEventRunModal + 160 14 UIKitCore -[UIApplication _run] + 1080 15 UIKitCore UIApplicationMain + 336 16 Storybeat AppDelegate.swift - Línea 20 main + 20 17 (Falta)
2
1
1k
Dec ’22
[User Defaults] CFPrefsPlistSource Bug
Hi, I'm trying to save in the UserDefaults some identifiers for user-edited videos that we save on the Defaults. We save in this way: let data = try JSONEncoder().encode(myDesign) Defaults.setValue(data, forKey: myDesign.id) [...] allMyDesignsIds.append(myDesign.id) Defaults[.allUsersMyDesignsIds][userId] = allMyDesignsIds but we got an error when saving 10 elements, in the saving of the 8 element : 2023-08-01 17:44:08.656097+0200 AppName[12474:355884] [User Defaults] CFPrefsPlistSource<0x280d34480> (Domain: com.***.***.beta, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: Yes): Attempting to store >= 4194304 bytes of data in CFPreferences/NSUserDefaults on this platform is invalid. This is a bug in AppName or a library it uses. Description of keys being set: 985D7A7E-A0DC-4F26-BB1A-7202B106F49F: data value, size: 584750 Description of keys already present: 9E13F8B4-789F-4BA8-B788-6AAA924668D2: data value, size: 643913 63AC4E4F-7DA4-441D-9B77-5728689E6E74: data value, size: 642935 B0038C53-F4F6-46B7-996B-375F95E83FEA: data value, size: 637857 FDBC800B-89CE-4D2C-A89F-E96542A8EF93: data value, size: 611401 985D7A7E-A0DC-4F26-BB1A-7202B106F49F: data value, size: 584750 6D0524A1-E17D-4B96-B928-A9180D47107B: data value, size: 555791 DEBF1AF1-866A-42FD-8603-23DD1051E5FD: data value, size: 279035 87D83169-89B1-4A58-A63D-13CF118A5202: data value, size: 250166 35C48378-0CD3-457D-8BEB-DA41D855C3EE: data value, size: 226120 com.facebook.sdk:serverConfiguration631812514659191: data value, size: 3228 ... Total keys: 95 - Average approximate value size: 46758 bytes 2023-08-01 17:44:08.656513+0200 AppName[12474:355884] [User Defaults] CFPrefsPlistSource<0x280d34480> (Domain: com.***.***.beta, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): Transitioning into direct mode In this case the app cleans the values of Defaults[.allUsersMyDesignsIds][userId] leaving it empty... I tried it with the same videos always and also it only happens in the first launch and the first savings of videos in the Defaults... Anyone knows what can be happening? We discard the size of the values, because after this bug we continues saving videos without any problem. Thanks!!
2
0
666
Aug ’23