4 years later and problem still not solved
Post
Replies
Boosts
Views
Activity
Since this thread is still active.If you use jwt.io keep in mind that unix epoch time must be provided as integer not a string
Also, I see the files in Files on iPad but I cannot download them or open .
You have to allow access to both Media Library access and Music access, there are two diffent keys.
Are you building this app for MacOS? how you going to play apple music item then since there is absolutely no player
Again, thanks for clarification regarding command-line tools :)
1 .I always prefer convenience over security. The most secure computer is the one that is not connected to network so the line must be put somewhere. If Apple e.g for sake of security force password change to AppStore account once per week, people stop using AppStore at all because it will simply be too much hassle.
Security can be seen in relative terms like in this MusicKit thing. Apple Music API has many flaws and this is definitely one of them. But thanks for trying to help me deal with this issues :)
Also from environmental point of view it's not good for Earth when various companies will try to produce their own processors using elements that are less and less found on our planet, so Intel is the way to go, that's why Mac Pro exists :) I was happy when Apple abandoned Motorola for Intel and would be even more happy if Apple hadn't abandoned NVidia as well. M1 on laptops bring macbooks more to iPads and desktop OS should never be sandboxed closed environment that's why for my daily work I still use Mojave :) with Monterey in virtual.
I'm professional and I know what I am doing,working on computer for over 30 years. If user must be protected all the time than maybe buying laptop is not for him :)
But that's whole other discussion not for this thread. As Eskimo you could bring some ice to Poland, it's too hot here to work ^^
Thank for detailed explanation. It looks that whole security thing really makes creating things on Mac much more difficult, is that not overkill?
If writing command-line-tools in Swift is I'm guessing from your post impossible without creating "App" maybe it's better to remove that target from Xcode configuration options?
I will try to explore your solution and let you know.
Also if this is as you mentioned not a problem on iOS what is the behaviour if the app is build also as "Mac-Catalyst"?
Big big thank you as you are the only one in whole internet who understood my problem :)
Ad 3) One more reason to like Intel more than M1 :)
Sorry for the confusion english is not my native language. So to summarize:
I am targeting MacOS
I am going to create command line tool or if this is necessary to work, an *.app that install command line tool
Purpose for tool is to use MusicKit and do command line tool to manipulate and play e.g. radio stations.
Exact error message is:
2022-08-10 19:14:33.815824+0200 ConMusic[1450:15512] [DataRequesting] Failed retrieving MusicKit tokens: Error Domain=ICErrorDomain Code=-7009 "Failed to retrieve bundle identifier of the requesting application. The requesting application is likely missing the "com.apple.application-identifier" entitlement." UserInfo={NSDebugDescription=Failed to retrieve bundle identifier of the requesting application. The requesting application is likely missing the "com.apple.application-identifier" entitlement.}. Throwing .permissionDenied.
2022-08-10 19:14:33.816024+0200 ConMusic[1450:15512] [DataRequesting] Failed retrieving tokens for MusicDataRequest.Context(url: https://api.music.apple.com/v1/catalog/us/artists/1264549322). Error = .permissionDenied.
.permissionDenied
So apparently even if authorised there is problem with fetching music user token because of bundle identifier. But I don't see anywhere in a project place to write entitlements, no info.plist file and no entitlement file. Is that more clear now? :)
Lucky, people I am struggling over 1,5 year with code signing not working for not-paying dev accounts (and even Apple support cannot help maybe they are afraid to admt they no longer allow testing app od device for non-paid accounts).
That being said on Monterey I always see during run
Failed retrieving MusicKit tokens: Error Domain=ICErrorDomain Code=-7009 "Failed to retrieve bundle identifier of the requesting application. The requesting application is likely missing the "com.apple.application-identifier" entitlement." UserInfo={NSDebugDescription=Failed to retrieve bundle identifier of the requesting application. The requesting application is likely missing the "com.apple.application-identifier" entitlement.}. Throwing .permissionDenied.
2022-08-10 19:37:12.939452+0200 ConMusic[3082:33162] [DataRequesting] Failed retrieving tokens for MusicDataRequest.Context(url: https://api.music.apple.com/v1/catalog/us/artists/1264549322). Error = .permissionDenied.
.permissionDenied
I checked AppID on dev account and everything is OK what I am missing:/
This solution no longer (August 2022) works as there is no place when you can manually set this entitlements.
The only field is APP ID Prefix and I choose to set TEAM ID as option, other option are set of Characters I really can't recognise.
I'm not so optimistic. It's shame that Apple introduces new APIs that target only iOS16 and MacOS Monterey (Musickit) and there is literally no way to add support for older systems without tricks.
I hope edit playlist will go to API as well, I reported that through Feedback Assistant let's see what engineers do with this.
Wow, thanks for mentioning that. How can I not encountered that link sooner? I believe in Apple Developer Documentation MusicKitJS still uses version 1 and I recently started a project and still use that version and can confirm that pop-ups appears also for me.
Also played songs with MusicKitJS v1 are not reflected in Api endpoint /recentlyPlayed
Could you modify that endpoint to properly display user's history
I have the same problem with 11.4.1 I had to install it on Mojave because after two months of struggling and discussing it with Feedback Assistant Apple finally admited they stopped issuing certificates for Xcode < 11.4
It's even worse. Apple stop issuing developer certificates for xcode < 11.4.1
The only way is to install 11.4.1 on Mojave you must download it and modify info.plist
The error is not fixed in Xcode 11.3.1. on Mojave Trying to do with both Apple tv 4 and 5 gen with tvOS 13.4.6
"Device Support" folder properly added. Devices are paired but are not made ready for development.
yesterday I even waited 5 long hours to check if this is time-related issue but it's not.
Your code here is not helpful you dont explain what is anotherOperation as it does not appear in your code