iTunes Library

RSS for tag

Retrieve the properties of the media in an iTunes library.

Posts under iTunes Library tag

51 Posts

Post

Replies

Boosts

Views

Activity

How is the Apple Music app for Windows scriptable/programmatically accessible?
iTunes for Windows used to offer a COM interface and an additional VBScript interface. What does Music app for Windows offer (the preview is currently available in the Windows app store)? Here are a couple of more detailed points I am mainly concerned about: Is there a documented API somewhere? Where? What's the recommended technology to interact with the Music app on Windows? VBScript and the like are great for manipulating individual tracks, but usually are a little slow, when one wants to get data about the whole library. So is there a fast way of accessing/reading data (like the iTunes Library framework on macOS)? Can one access Apple Music via COM at all, even though the app is downloaded from the Windows app store (sandboxing)? Thanks for your help. (see also https://apple.stackexchange.com/q/459392/62735, if you want to earn Stack Overflow rep points)
2
0
1.6k
May ’23
Fix iTunes / Music dead tracks with AppleScript
Hi, For a few days, I have more than 5000 dead tracks in my Music library. I'm a developer and I tried to fix the problem like I did before with an AppleScript library but here something strange happened. Indeed, all my dead track are on my external hard drive but the location in Music begins with "file:///Volumes/" so Music can't read the files : The correct path is the same without "file:///Volumes/" : I though it will be easy to fix that but when I try to get the tracks location to trunk it, the value is missing. So how can I fix that ? Thx
1
0
1.5k
Mar ’23
ITLibrary.mediaFolderLocation
I see ITLibrary.musicFolderLocation is deprecated. Is ITLibrary.mediaFolderLocation also deprecated? The reason I ask is the result to my call to ITLibrary.mediaFolderLocation is file:///Volumes/Music%201/iTunes/iTunes%20Media/. I have no idea where this URL is coming from! The thing is I am running Monterey and iTunes was changed to Music when Catalina was released, so the location should at least be file:///Users/carroll/Music/Media/Music on a default setup. Someone recommended in another post to check com.apple.music.plist but that file doesn't even exist on my machine. I know the info is being stored somewhere because I create another Music Library on an external volume using the option-click method and when I query the library it is showing the new library. I would like to show the URL of the currently selected Music.app library in my own app so the user knows which library they are working with. The new library exists at "file:///Volumes/Dummy/Music/Test" I did a search with finder for "plist" and added a Contents rule for "Dummy/Music" and nothing comes up, so I do not know where URL for the currently selected Music.app library is being stored and if I can get it. I wonder if I should be looking to switch to MusicKit?
0
0
835
Mar ’23
How to access Episodes from a specific Podcast in my React Application?
Im building a podcast player project, where you can find a list of podcasts, filter them by a search bar, and so on. Im supposed to be able to navigate to a podcast and once there, to show all Episodes of that particular Podcast in my WebApp. I've seen people mention in the Apple Developer Forums, that you could access these episodes with a URL such as this: "https://itunes.apple.com/lookup?id=1251196416&country=US&media=podcast&entity=podcastEpisode&limit=100", however when you navigate to this URL, it opens up a ".txt" file that contains the information, and I don't know how I can use this information on my React Application. It's an app Build with React, @reduxjs/toolkit and Typescript. My podcastApi looks like this: import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'; import { ITUNES_URL } from '../constants'; export const podcastApi = createApi({ reducerPath: 'podcastApi', baseQuery: fetchBaseQuery({ baseUrl: `https://api.allorigins.win/get?url=${encodeURIComponent(ITUNES_URL)}`, }), endpoints: (builder) => ({ getPodcasts: builder.query({ query: () => ({ url: "/us/rss/toppodcasts/limit=100/genre=1310/json", }), }), getPodcastById: builder.query({ query: (id) => `/lookup?id=${id}`, }), getEpisodeById: builder.query({ query: ({ podcastId, episodeId }) => `/podcast/${podcastId}/episode/${episodeId}`, }), getPodcastEpisodes: builder.query({ query: (id) => ({ url: `/lookup?id=${id}&country=US&media=podcast&entity=podcastEpisode&limit=100`, }), }), }), }); So far I've had no success doing this. Any advice please? I've tried modifying my podcastApi mentioned above in many different ways but it hasn't worked. I would simple like to know how am I supposed to get the episodes of a specific podcast and what am I supposed to do to display them please?
0
0
1.4k
Mar ’23
Is com.apple.AMPLibrayAgent not used by Apple Music.app?
I ran into a problem with Catalina (and later) and the new Muisc.app while using the ITLibrary framework. The ITLibrary.mediaFolderLocation and ITLibrary.musicFolderLocation methods no longer return the correct values. In fact, the fields in UserDefaults have not been updated on my system since moving from iTunes to Music because the library pointed to by “iTunes-media-folder-url“ points to an old iTunes library within the com.apple.AMPLibraryAgent suiteName. After doing some digging and performing a dump of all UserDefaults and comparing them before and after manually switching my Music Library by option+Clicking the Music.app icon, there are no changes between the two dumps with respect to the Music.app. This leads me to believe the Music.app is not storing it's information in UserDefaults like iTunes used to. Has anyone else run into this problem? Is there somewhere else one can look into the system to find what the last selected Music library was? I'm looking for a reliable workaround to know the location of the currently selected Music library.
1
0
1.8k
Mar ’23
Trying to use iTunes API to get app information
I'm using iTunes API to get information about a secific app using the id's app, but I wonder if there is a way to use the same API using app's name instead of id. For example, I'm using this endpoint: https://uclient-api.itunes.apple.com/WebObjects/MZStorePlatform.woa/wa/lookup?version=2&id=361309726&p=mdm-lockup&caller=MDM&platform=enterprisestore&cc=us&l=en where the parameter id is the app's id. So I don't know all the ids of all the apps in appstore and that's the reason to I need a parameter to search an app using its name. Is there any parameter to do that?
0
0
929
Feb ’23
iTunes Search API
Hello,I have a question about the public API - https://itunes.apple.com/lookup/idI am using the API to get details about applications my company have.Some of the app-ids return a response, for example https://itunes.apple.com/lookup?id=1076883986But some of our other app-ids return an empty response, for example https://itunes.apple.com/lookup?id=1160657060. Although I see that it is live at https://itunes.apple.com/no/app/tussa/id1160657060?mt=8{«resultCount»:0,«result»: [] }Have anyone experienced something similar and found a good solution to this?I have found a alternativ method to get data about these apps with https://itunes.apple.com/search?term=tussa+enoro&country=no&entity=softwareIs this a good method? I feel this is more vulnerable because of alle the parameters I have to send in to get the same response.
2
1
11k
Dec ’22
Backup not showing up on itunes
Hello, i recently backed up my phone before getting it replaced, and it was on the beta version IOS 16.2, and after getting it replaced from apple, when i came to restore the backup, it said "Your iPhone has never been backed up to this computer.". I checked the file to where all the backups are downloaded in and i could see that the backup was there, however, i couldn't get it to show up in my itunes. I contacted apple support and they told me that this issue could have been because i backed it up while the phone was on the beta and it may be a beta related issue and they told me that they couldn't help me with it and they directed me to come to the developer.apple.com website to seek more help with this issue. Anything would be helpful as i do not have another backup of my old device and this is my only chance of restoring all of the data from that device.
1
0
1.2k
Nov ’22
Availability of using Musickit's MusicLibraryRequest to play songs purchased on iTunes or Traxsoource.
I am implementing a music application using Musickit. I would like to use MusicLibraryRequest to obtain playlist information and play the songs in the playlist, but an error message appears and I cannot play the songs. Almost all of the songs in my playlists are purchased from iTunes or Traxsource, but can't I play songs purchased from iTunes or Traxsource in an application using MusicKit?
1
1
985
Oct ’22
links from iTunes Store lead to Apple Music?
I need your help! I released an album that is not available for streaming, only for download. The link I got from Apple does not open the iTunes Store App, but Apple Music (on any iOS device) and then it always says „not available in: Germany“. Same thing in the US and other countries. Does anybody know this issue and how to solve it? Here is the link: https://music.apple.com/de/album/soul-peace-and-freedom/1627542599 Thanks a lot 🙏🤘 Edit: message from hearnow, a service of CD Baby, the distributor of the album „Your release is set to Downloads Only, and with how Apple is directing everything to Apple Music first, this is definitely why this is saying unavailable. Due to these limitations placed by Apple, there is unfortunately nothing we can do in this case, unless you updated your album to downloads + streaming I would highly recommend upgrading your album (for free!) to downloads and streaming. Otherwise, yes, at least with HearNow, we would be unable to provide you a working iTunes link.“
0
0
1k
Aug ’22
iOS 15.1 Crash: MPMediaLibrary.authorizationStatus
I’d appreciate some help in diagnosing a crash in MPMediaLibrary that occurs on some iOS 15.1.x user devices. So far this issue can't be reproduced with test devices that range from iOS10 to iOS15.2, whether via Xcode 12.4 or TestFlight. The app needs access to the device’s microphone and audio files which are selected via the MPMediaPickerController. The usual usage description keys (namely NSMicrophoneUsageDescription, NSAppleMusicUsageDescription and kTCCServiceMediaLibrary) are specified in the info.plist. The crash relates to library access and involves the iTunesCloud binary. The crash occurs when the app starts, probably for the first time after installation (not the best way to greet new users). Here is a sample crash report: iOS15_1_Crash_MPMediaLibrary_authorizationStatus_anon.txt Here is a typical traceback: Thread 0 Crashed: 0  libsystem_kernel.dylib           0x00000001b8964504 mach_msg_trap + 8 1  libsystem_kernel.dylib           0x00000001b8964b9c mach_msg + 76 (mach_msg.c:119) 2  libdispatch.dylib                0x000000018165227c _dispatch_mach_send_and_wait_for_reply + 520 (mach.c:815) 3  libdispatch.dylib                0x000000018165262c dispatch_mach_send_with_result_and_wait_for_reply + 56 (mach.c:2019) 4  libxpc.dylib                     0x00000001f2576b9c xpc_connection_send_message_with_reply_sync + 240 (connection.c:974) 5  TCC                              0x00000001e961c0c0 tccd_send_message + 940 (TCC.c:490) 6  TCC                              0x00000001e9621e08 __TCCAccessRequest_block_invoke.213 + 876 (TCC.c:591) 7  libdispatch.dylib                0x0000000181637660 _dispatch_client_callout + 20 (object.m:560) 8  libdispatch.dylib                0x00000001816468b4 _dispatch_lane_barrier_sync_invoke_and_complete + 56 (queue.c:1016) 9  libsystem_trace.dylib            0x000000019c147668 _os_activity_initiate_impl + 64 (activity.c:131) 10 TCC                              0x00000001e961d4e0 TCCAccessRequest + 476 (TCC.c:1019) 11 TCC                              0x00000001e961c73c TCCAccessPreflight + 300 (TCC.c:1651) 12 iTunesCloud                      0x0000000198d58160 -[ICCloudServiceStatusMonitor authorizationStatusForScopes:] + 60 (ICCloudServiceStatusMonitor.m:689) 13 MediaPlayer                      0x000000018a8c8ee4 +[MPMediaLibrary authorizationStatus] + 64 (MPMediaLibrary.m:778) 16 MyAppppp                         0x00000001003e9880 AppDelegate.application(_:willFinishLaunchingWithOptions:) + 32 (AppDelegate.swift:23) 17 MyAppppp                         0x00000001003e9880 @objc AppDelegate.application(_:willFinishLaunchingWithOptions:) + 136 (<compiler-generated>:20) The app startup logic is basically: func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { let audioSession = AVAudioSession.sharedInstance() if audioSession.recordPermission == .undetermined { audioSession.requestRecordPermission { // Permission initialized } } if MPMediaLibrary.authorizationStatus() == .notDetermined // Sometimes crashes in iOS15.1 on user devices { MPMediaLibrary.requestAuthorization { // Permission initialized } } if MPMediaLibrary.authorizationStatus() == .authorized { // The following code sometimes crashes in iOS15.1 on user devices without the enclosing ".authorized” check let predicate = MPMediaPropertyPredicate(value: defaultSongId, forProperty: MPMediaItemPropertyPersistentID) let query = MPMediaQuery() } return true } Questions: What exactly is the iTunesCloud binary doing? Is additional configuration needed? Why does the crash happen only on some iOS 15.1 user devices? Is it too early in the app lifecycle to call MPMediaLibrary.authorizationStatus? Post-crash workaround: Are users able to grant access to the library via the device’s global privacy settings? Thanks!
7
0
3.5k
Aug ’22
Can't delete auto renewable subscription item that is 'in review' status?
My application got rejected and I've got this reply from Apple: "Your app uses auto-renewing subscriptions, but it is not an appropriate use of the service. Specifically, your app still offered its digital content as auto-renewable subscription, however they have an expiration date (date they will no longer be available)." Then I tried to remove them and added them to the Consumable type. But some of the items in the auto-renewable subscription are 'In Review' status. Is there any way to remove/delete the subscription items that status is 'In Review'.
0
0
911
Jun ’22
Installing apk on i-phone 15.5 by Itunes
Hello, I'm trying to install an iOS app (.ipa file) on my phone (iPhone 11 - iOS 15.5) using iTunes for PC (with Windows 10). I've connected the phone to the PC and was able to transfer the file to the phone (I can see it in File Sharing section with FileManager Documents app) but not to install it. The app is visible in the i-phone however it has cloud download icon on it and when I click it it says "The developer of this app needs to update it to work with this version of ios". it has only two options "keep" and "delete". Any help to install it would be highly appriciated. Thank you!
3
0
3.0k
Jun ’22
ITLibMediaItemLyricsContentRating availability in Music app
Not really sure if this post belongs here, but it pertains to the iTunesLibrary Framework. While looking through the iTunesLibrary framework, I came across the subject constant. However, I do not know how to set this within the Music app. Is this a legacy feature of iTunes before Apple switched to Music with Catalina? I looked through the preferences for Music and I do not see where to turn this feature on, nor is it available as a display column in Music while viewing songs as a list. I have been managing my music by appending (Clean) for a non-explicit version of a song with explicit lyrics, or (Explicit) if a non-explicit version is not available. It would be nice to not have to do this if this feature can be turned on in the Music app.
0
0
835
May ’22
App Store RSS feeds
I was using the iTunes RSS feed to read out the game charts: https://rss.itunes.apple.com/api/v1/us/ios-apps/top-paid/games/25/explicit.json But this url doesn't work anymore. It seems that Apple has changed it to this v2 API: https://rss.applemarketingtools.com/api/v2/us/apps/top-paid/25/apps.json Is there any possibility to read out the iOS App Store Games Charts (paid and free) via RSS?
0
0
2.3k
Apr ’22
buy.itunes.apple.com/verifyReceipt API wasn't work
Hi guys, i couldn't reach verifyReceipt API during 17min and I got 200+ error logs at that time. Now it was cleared, but i wonder what caused the issue. Could you check this? My server is located at South Korea. URL : https://buy.itunes.apple.com/verifyReceipt Response : 502 Bad Gateway occurrence time(KST) : 2022.04.12 22:37:50 ~ 22:54:03 occurrence time(UTC+0) : 2022.04.12 13:37:50 ~ 13:54:03 Thanks.
1
1
1.7k
Apr ’22
How is the Apple Music app for Windows scriptable/programmatically accessible?
iTunes for Windows used to offer a COM interface and an additional VBScript interface. What does Music app for Windows offer (the preview is currently available in the Windows app store)? Here are a couple of more detailed points I am mainly concerned about: Is there a documented API somewhere? Where? What's the recommended technology to interact with the Music app on Windows? VBScript and the like are great for manipulating individual tracks, but usually are a little slow, when one wants to get data about the whole library. So is there a fast way of accessing/reading data (like the iTunes Library framework on macOS)? Can one access Apple Music via COM at all, even though the app is downloaded from the Windows app store (sandboxing)? Thanks for your help. (see also https://apple.stackexchange.com/q/459392/62735, if you want to earn Stack Overflow rep points)
Replies
2
Boosts
0
Views
1.6k
Activity
May ’23
Looking for iTunes 10.6 for Windows 32 bit
Where can I download iTunes 10.6 for Windows 32 bit?
Replies
1
Boosts
0
Views
693
Activity
Apr ’23
Fix iTunes / Music dead tracks with AppleScript
Hi, For a few days, I have more than 5000 dead tracks in my Music library. I'm a developer and I tried to fix the problem like I did before with an AppleScript library but here something strange happened. Indeed, all my dead track are on my external hard drive but the location in Music begins with "file:///Volumes/" so Music can't read the files : The correct path is the same without "file:///Volumes/" : I though it will be easy to fix that but when I try to get the tracks location to trunk it, the value is missing. So how can I fix that ? Thx
Replies
1
Boosts
0
Views
1.5k
Activity
Mar ’23
ITLibrary.mediaFolderLocation
I see ITLibrary.musicFolderLocation is deprecated. Is ITLibrary.mediaFolderLocation also deprecated? The reason I ask is the result to my call to ITLibrary.mediaFolderLocation is file:///Volumes/Music%201/iTunes/iTunes%20Media/. I have no idea where this URL is coming from! The thing is I am running Monterey and iTunes was changed to Music when Catalina was released, so the location should at least be file:///Users/carroll/Music/Media/Music on a default setup. Someone recommended in another post to check com.apple.music.plist but that file doesn't even exist on my machine. I know the info is being stored somewhere because I create another Music Library on an external volume using the option-click method and when I query the library it is showing the new library. I would like to show the URL of the currently selected Music.app library in my own app so the user knows which library they are working with. The new library exists at "file:///Volumes/Dummy/Music/Test" I did a search with finder for "plist" and added a Contents rule for "Dummy/Music" and nothing comes up, so I do not know where URL for the currently selected Music.app library is being stored and if I can get it. I wonder if I should be looking to switch to MusicKit?
Replies
0
Boosts
0
Views
835
Activity
Mar ’23
How to access Episodes from a specific Podcast in my React Application?
Im building a podcast player project, where you can find a list of podcasts, filter them by a search bar, and so on. Im supposed to be able to navigate to a podcast and once there, to show all Episodes of that particular Podcast in my WebApp. I've seen people mention in the Apple Developer Forums, that you could access these episodes with a URL such as this: "https://itunes.apple.com/lookup?id=1251196416&country=US&media=podcast&entity=podcastEpisode&limit=100", however when you navigate to this URL, it opens up a ".txt" file that contains the information, and I don't know how I can use this information on my React Application. It's an app Build with React, @reduxjs/toolkit and Typescript. My podcastApi looks like this: import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'; import { ITUNES_URL } from '../constants'; export const podcastApi = createApi({ reducerPath: 'podcastApi', baseQuery: fetchBaseQuery({ baseUrl: `https://api.allorigins.win/get?url=${encodeURIComponent(ITUNES_URL)}`, }), endpoints: (builder) => ({ getPodcasts: builder.query({ query: () => ({ url: "/us/rss/toppodcasts/limit=100/genre=1310/json", }), }), getPodcastById: builder.query({ query: (id) => `/lookup?id=${id}`, }), getEpisodeById: builder.query({ query: ({ podcastId, episodeId }) => `/podcast/${podcastId}/episode/${episodeId}`, }), getPodcastEpisodes: builder.query({ query: (id) => ({ url: `/lookup?id=${id}&country=US&media=podcast&entity=podcastEpisode&limit=100`, }), }), }), }); So far I've had no success doing this. Any advice please? I've tried modifying my podcastApi mentioned above in many different ways but it hasn't worked. I would simple like to know how am I supposed to get the episodes of a specific podcast and what am I supposed to do to display them please?
Replies
0
Boosts
0
Views
1.4k
Activity
Mar ’23
Is com.apple.AMPLibrayAgent not used by Apple Music.app?
I ran into a problem with Catalina (and later) and the new Muisc.app while using the ITLibrary framework. The ITLibrary.mediaFolderLocation and ITLibrary.musicFolderLocation methods no longer return the correct values. In fact, the fields in UserDefaults have not been updated on my system since moving from iTunes to Music because the library pointed to by “iTunes-media-folder-url“ points to an old iTunes library within the com.apple.AMPLibraryAgent suiteName. After doing some digging and performing a dump of all UserDefaults and comparing them before and after manually switching my Music Library by option+Clicking the Music.app icon, there are no changes between the two dumps with respect to the Music.app. This leads me to believe the Music.app is not storing it's information in UserDefaults like iTunes used to. Has anyone else run into this problem? Is there somewhere else one can look into the system to find what the last selected Music library was? I'm looking for a reliable workaround to know the location of the currently selected Music library.
Replies
1
Boosts
0
Views
1.8k
Activity
Mar ’23
Trying to use iTunes API to get app information
I'm using iTunes API to get information about a secific app using the id's app, but I wonder if there is a way to use the same API using app's name instead of id. For example, I'm using this endpoint: https://uclient-api.itunes.apple.com/WebObjects/MZStorePlatform.woa/wa/lookup?version=2&id=361309726&p=mdm-lockup&caller=MDM&platform=enterprisestore&cc=us&l=en where the parameter id is the app's id. So I don't know all the ids of all the apps in appstore and that's the reason to I need a parameter to search an app using its name. Is there any parameter to do that?
Replies
0
Boosts
0
Views
929
Activity
Feb ’23
iTunes Search API
Hello,I have a question about the public API - https://itunes.apple.com/lookup/idI am using the API to get details about applications my company have.Some of the app-ids return a response, for example https://itunes.apple.com/lookup?id=1076883986But some of our other app-ids return an empty response, for example https://itunes.apple.com/lookup?id=1160657060. Although I see that it is live at https://itunes.apple.com/no/app/tussa/id1160657060?mt=8{«resultCount»:0,«result»: [] }Have anyone experienced something similar and found a good solution to this?I have found a alternativ method to get data about these apps with https://itunes.apple.com/search?term=tussa+enoro&amp;amp;country=no&amp;amp;entity=softwareIs this a good method? I feel this is more vulnerable because of alle the parameters I have to send in to get the same response.
Replies
2
Boosts
1
Views
11k
Activity
Dec ’22
Backup not showing up on itunes
Hello, i recently backed up my phone before getting it replaced, and it was on the beta version IOS 16.2, and after getting it replaced from apple, when i came to restore the backup, it said "Your iPhone has never been backed up to this computer.". I checked the file to where all the backups are downloaded in and i could see that the backup was there, however, i couldn't get it to show up in my itunes. I contacted apple support and they told me that this issue could have been because i backed it up while the phone was on the beta and it may be a beta related issue and they told me that they couldn't help me with it and they directed me to come to the developer.apple.com website to seek more help with this issue. Anything would be helpful as i do not have another backup of my old device and this is my only chance of restoring all of the data from that device.
Replies
1
Boosts
0
Views
1.2k
Activity
Nov ’22
Availability of using Musickit's MusicLibraryRequest to play songs purchased on iTunes or Traxsoource.
I am implementing a music application using Musickit. I would like to use MusicLibraryRequest to obtain playlist information and play the songs in the playlist, but an error message appears and I cannot play the songs. Almost all of the songs in my playlists are purchased from iTunes or Traxsource, but can't I play songs purchased from iTunes or Traxsource in an application using MusicKit?
Replies
1
Boosts
1
Views
985
Activity
Oct ’22
iTunes Locked ID
With the iOS 16 update has anyone come across an issue when downloading? Locked saying to connect to iTunes and then the update failing? TIA.
Replies
0
Boosts
0
Views
721
Activity
Sep ’22
links from iTunes Store lead to Apple Music?
I need your help! I released an album that is not available for streaming, only for download. The link I got from Apple does not open the iTunes Store App, but Apple Music (on any iOS device) and then it always says „not available in: Germany“. Same thing in the US and other countries. Does anybody know this issue and how to solve it? Here is the link: https://music.apple.com/de/album/soul-peace-and-freedom/1627542599 Thanks a lot 🙏🤘 Edit: message from hearnow, a service of CD Baby, the distributor of the album „Your release is set to Downloads Only, and with how Apple is directing everything to Apple Music first, this is definitely why this is saying unavailable. Due to these limitations placed by Apple, there is unfortunately nothing we can do in this case, unless you updated your album to downloads + streaming I would highly recommend upgrading your album (for free!) to downloads and streaming. Otherwise, yes, at least with HearNow, we would be unable to provide you a working iTunes link.“
Replies
0
Boosts
0
Views
1k
Activity
Aug ’22
iOS 15.1 Crash: MPMediaLibrary.authorizationStatus
I’d appreciate some help in diagnosing a crash in MPMediaLibrary that occurs on some iOS 15.1.x user devices. So far this issue can't be reproduced with test devices that range from iOS10 to iOS15.2, whether via Xcode 12.4 or TestFlight. The app needs access to the device’s microphone and audio files which are selected via the MPMediaPickerController. The usual usage description keys (namely NSMicrophoneUsageDescription, NSAppleMusicUsageDescription and kTCCServiceMediaLibrary) are specified in the info.plist. The crash relates to library access and involves the iTunesCloud binary. The crash occurs when the app starts, probably for the first time after installation (not the best way to greet new users). Here is a sample crash report: iOS15_1_Crash_MPMediaLibrary_authorizationStatus_anon.txt Here is a typical traceback: Thread 0 Crashed: 0  libsystem_kernel.dylib           0x00000001b8964504 mach_msg_trap + 8 1  libsystem_kernel.dylib           0x00000001b8964b9c mach_msg + 76 (mach_msg.c:119) 2  libdispatch.dylib                0x000000018165227c _dispatch_mach_send_and_wait_for_reply + 520 (mach.c:815) 3  libdispatch.dylib                0x000000018165262c dispatch_mach_send_with_result_and_wait_for_reply + 56 (mach.c:2019) 4  libxpc.dylib                     0x00000001f2576b9c xpc_connection_send_message_with_reply_sync + 240 (connection.c:974) 5  TCC                              0x00000001e961c0c0 tccd_send_message + 940 (TCC.c:490) 6  TCC                              0x00000001e9621e08 __TCCAccessRequest_block_invoke.213 + 876 (TCC.c:591) 7  libdispatch.dylib                0x0000000181637660 _dispatch_client_callout + 20 (object.m:560) 8  libdispatch.dylib                0x00000001816468b4 _dispatch_lane_barrier_sync_invoke_and_complete + 56 (queue.c:1016) 9  libsystem_trace.dylib            0x000000019c147668 _os_activity_initiate_impl + 64 (activity.c:131) 10 TCC                              0x00000001e961d4e0 TCCAccessRequest + 476 (TCC.c:1019) 11 TCC                              0x00000001e961c73c TCCAccessPreflight + 300 (TCC.c:1651) 12 iTunesCloud                      0x0000000198d58160 -[ICCloudServiceStatusMonitor authorizationStatusForScopes:] + 60 (ICCloudServiceStatusMonitor.m:689) 13 MediaPlayer                      0x000000018a8c8ee4 +[MPMediaLibrary authorizationStatus] + 64 (MPMediaLibrary.m:778) 16 MyAppppp                         0x00000001003e9880 AppDelegate.application(_:willFinishLaunchingWithOptions:) + 32 (AppDelegate.swift:23) 17 MyAppppp                         0x00000001003e9880 @objc AppDelegate.application(_:willFinishLaunchingWithOptions:) + 136 (<compiler-generated>:20) The app startup logic is basically: func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { let audioSession = AVAudioSession.sharedInstance() if audioSession.recordPermission == .undetermined { audioSession.requestRecordPermission { // Permission initialized } } if MPMediaLibrary.authorizationStatus() == .notDetermined // Sometimes crashes in iOS15.1 on user devices { MPMediaLibrary.requestAuthorization { // Permission initialized } } if MPMediaLibrary.authorizationStatus() == .authorized { // The following code sometimes crashes in iOS15.1 on user devices without the enclosing ".authorized” check let predicate = MPMediaPropertyPredicate(value: defaultSongId, forProperty: MPMediaItemPropertyPersistentID) let query = MPMediaQuery() } return true } Questions: What exactly is the iTunesCloud binary doing? Is additional configuration needed? Why does the crash happen only on some iOS 15.1 user devices? Is it too early in the app lifecycle to call MPMediaLibrary.authorizationStatus? Post-crash workaround: Are users able to grant access to the library via the device’s global privacy settings? Thanks!
Replies
7
Boosts
0
Views
3.5k
Activity
Aug ’22
Can't delete auto renewable subscription item that is 'in review' status?
My application got rejected and I've got this reply from Apple: "Your app uses auto-renewing subscriptions, but it is not an appropriate use of the service. Specifically, your app still offered its digital content as auto-renewable subscription, however they have an expiration date (date they will no longer be available)." Then I tried to remove them and added them to the Consumable type. But some of the items in the auto-renewable subscription are 'In Review' status. Is there any way to remove/delete the subscription items that status is 'In Review'.
Replies
0
Boosts
0
Views
911
Activity
Jun ’22
Installing apk on i-phone 15.5 by Itunes
Hello, I'm trying to install an iOS app (.ipa file) on my phone (iPhone 11 - iOS 15.5) using iTunes for PC (with Windows 10). I've connected the phone to the PC and was able to transfer the file to the phone (I can see it in File Sharing section with FileManager Documents app) but not to install it. The app is visible in the i-phone however it has cloud download icon on it and when I click it it says "The developer of this app needs to update it to work with this version of ios". it has only two options "keep" and "delete". Any help to install it would be highly appriciated. Thank you!
Replies
3
Boosts
0
Views
3.0k
Activity
Jun ’22
ITLibMediaItemLyricsContentRating availability in Music app
Not really sure if this post belongs here, but it pertains to the iTunesLibrary Framework. While looking through the iTunesLibrary framework, I came across the subject constant. However, I do not know how to set this within the Music app. Is this a legacy feature of iTunes before Apple switched to Music with Catalina? I looked through the preferences for Music and I do not see where to turn this feature on, nor is it available as a display column in Music while viewing songs as a list. I have been managing my music by appending (Clean) for a non-explicit version of a song with explicit lyrics, or (Explicit) if a non-explicit version is not available. It would be nice to not have to do this if this feature can be turned on in the Music app.
Replies
0
Boosts
0
Views
835
Activity
May ’22
App Store RSS feeds
I was using the iTunes RSS feed to read out the game charts: https://rss.itunes.apple.com/api/v1/us/ios-apps/top-paid/games/25/explicit.json But this url doesn't work anymore. It seems that Apple has changed it to this v2 API: https://rss.applemarketingtools.com/api/v2/us/apps/top-paid/25/apps.json Is there any possibility to read out the iOS App Store Games Charts (paid and free) via RSS?
Replies
0
Boosts
0
Views
2.3k
Activity
Apr ’22
Xcode - How do I create my own library in xcode?
It's easy in Visual Studio. https://disk.yandex.ru/i/NML0t6lA_cMWhw https://disk.yandex.ru/i/dQ-uwkLKA_eAiQ
Replies
0
Boosts
0
Views
667
Activity
Apr ’22
Can I get iTunes chart data from any API?
Hi all Can anybody let me know how I can get chart data from iTunes? I enrolled in developer programs for that but just noticed that it only provides Apple Music API. Is there any way that I can check iTunes chart data? It seems there is iTunes API but it is only for 'search'.
Replies
0
Boosts
1
Views
771
Activity
Apr ’22
buy.itunes.apple.com/verifyReceipt API wasn't work
Hi guys, i couldn't reach verifyReceipt API during 17min and I got 200+ error logs at that time. Now it was cleared, but i wonder what caused the issue. Could you check this? My server is located at South Korea. URL : https://buy.itunes.apple.com/verifyReceipt Response : 502 Bad Gateway occurrence time(KST) : 2022.04.12 22:37:50 ~ 22:54:03 occurrence time(UTC+0) : 2022.04.12 13:37:50 ~ 13:54:03 Thanks.
Replies
1
Boosts
1
Views
1.7k
Activity
Apr ’22