Posts

Post marked as solved
4 Replies
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
Post not yet marked as solved
6 Replies
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 ^^
Post not yet marked as solved
6 Replies
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 :)
Post not yet marked as solved
6 Replies
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? :)
Post not yet marked as solved
14 Replies
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:/
Post not yet marked as solved
6 Replies
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.
Post marked as solved
6 Replies
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.
Post not yet marked as solved
2 Replies
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
Post not yet marked as solved
5 Replies
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
Post not yet marked as solved
1 Replies
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
Post not yet marked as solved
12 Replies
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.
Post not yet marked as solved
4 Replies
Your code here is not helpful you dont explain what is anotherOperation as it does not appear in your code
Post not yet marked as solved
8 Replies
A year later xcode 11 still has the bug. I resigned from coding because of that, if bug is non-fixable (none of your solution works especially when using objective-c) there is no point.