Hi,
I need to run a jar file on Big Sur that runs fine on Catalina. Not only can't I run it, but when I back up and just try to compile and run a simple HelloWorld I can't do that on Big Sur either.
I have installed java but when I enter javac HelloWorld.java on Big Sur I get a file not found. I've also tried entering the entire path to the file and that doesn't work either.
On Catalina, the first time I tried this in a new file I got a pop-up that asks me for permission and then it works fine so my assumption is that this is a permissions issue.
Any thoughts?
Thanks,
Daniel
Post
Replies
Boosts
Views
Activity
Hi,
I'm enjoying working with the MusicKit APIs.
I would like to be able to request a collection of the current Categories on the store so users can narrow their interests while searching. I'd like to do the same for Genres. Is there any way to do so?
If not - I'd love to see support for this added.
Thank you,
Daniel
Hi,
I'm sorry if this is something I should know, but if I make a music catalog search such as:
let request
= MusicCatalogSearchRequest(term: searchTerm,
types: [Playlist.self])
I get the Apple Music playlists containing the searchTerm (say Rock, Rap, Jazz,...)
How do I get the non Apple playlists say the ones curated by Blue Note?
Thanks,
Daniel
Hi,
I wanted to display the artwork for a playlist and was puzzled at the Artwork API.
In Apple's sample code they use ArtworkImage so I checked the docs for it.
ArtworkImage is not listed under structs in MusicKit.
If you search for it you can find it - but you have to know it's there.
It should be added to the TOC for MusicKit (I would have wrongly assumed this was done automatically) and there should be a link from Artwork to ArtworkImage with an explanation of some sort.
FB9353976
Thanks,
Daniel
Hi,
I apologize for asking so many questions. I don't know that I'll ever ship anything but I'm experimenting with an old fashioned radio station like we used to program in the old top forties days.
I'd like to allow the music programmers to listen to sets that they're building by skimming through songs - does MusicKit or any part of the API allow us to access the Music preview for a given song? i.e. - I want users with a subscription to be able to hear the 30 s preview that you can find in Music.
I may be requesting that a Song have a preview as one of its playing mode options.
Thank you,
Daniel
Hi,
MusicKit is a particularly good example for teaching aspects of async coding. The API does many things very nicely.
It would be nice if developers could access their Music libraries in the simulator as that would make this API a great teaching tool. Requiring new devs to deploy an app to a device in a workshop is a bit much for some.
I have no idea if this is something you can practically enable - but I thought it was worth suggesting.
Thanks,
Daniel
Hi,
Given yesterday's announcement of a new subscription I have some business/permissions questions about apps built on MusicKit. If this is not the place to ask them can you please direct me to where would be more appropriate.
(1) When we test to see if someone has a subscription, is there any difference between a Voice subscription and a regular subscription? i.e. will we be able to query and vend any song in Apple Music if the user has a Voice sub the same way we can if they have an individual or family sub?
(2) Can our app require that they have some sort of subscription or do we have to provide functionality even if they don't?
(3) If I read the agreement correctly, we can't store music for offline listening but we can create and use a playlist in Music. Is there a way to prompt the user to download the music to this playlist?
Thank you,
Daniel
How do we use MusicKit to search for the new Siri playlists for mood etc?
I understand that Voice subscribers can't search for songs using API searches - I'm asking a question in the opposite direction.
If full subscribers know the names of the new playlists they can access and play them - are there searches that will surface them?
Thank you
Daniel
In the "What's new in Foundation" and "What's new in SwiftUI" talks there were examples of creating custom Attributed String styles. The example shown was for a rainbow style.
They showed creating the style, serializing the style, using the style in a String - but did not show how to actually render the text in the rainbow style. How is that part done in SwiftUI.
ie if I have Text("My fake example of ^[a custom style](customStyle: redAndEmphasized).")
How would i create the piece that renders "a custom style" with foregroundColor red and a heavy font?
Thanks,
Daniel
I have two questions related to the id for Playlist and Song.
(1) There are two properties named id in each type. One is defined to be a MusicItemID and one is an ObjectIdentifier. How does one distinguish between them? What is the difference in how we are two use them.
(2) Suppose the user has built a custom playlist of Song items in my app. Should I persist the MusicItemID and then retrieve the Song later using a MusicCatalogResourceRequest?
It's a fun API to play with but there's little documentation.
Thank you,
Daniel
Based on a twitter thread this morning I want to be clear that before asking this I did run test code...
What does MusicKit's MusicSubscription canBecomeSubscriber indicate.
It is returning false for me - is that because I'm already a subscriber? The docs say it is "A capability that allows your app to present subscription offers for Apple Music."
So will it return false if the user is already a subscriber?
Is there a condition in which it returns false if your user is not already a subscriber? (i.e. is there any reason they can't subscribe from my app using the .musicSubscriptionOffer() modifier?
Thank you,
Daniel
Hi,
I'm answering the questions on whether or not my app uses encryption. Do calls using MusicKit mean that I have to answer "Yes"? Do these calls qualify for the exemptions referred to in the App Store question: "Does your app qualify for any of the exemptions provided in Category 5, Part 2 of the U.S. Export Administration Regulations?"
Hi -
Of course I may be doing something wrong, but I'm getting exactly the opposite of what I would expect from
ApplicationMusicPlayer.shared.state.playbackStatus
It returns .playing when the music is paused and .paused when the music is playing.
Am I holding it wrong?
Thanks,
Daniel
Hi,
Is there a recommended. way to receive and respond (perhaps conditionally) to buttons pressed on the Siri Remote in a SwiftUI tvOS app.
Thanks,
Daniel
Hi,
I am looking to migrate a CoreData app which uses CloudKit to SwiftData and have two (for now) migration questions.
(1) Many of the attributes have the Optional checkbox checked in the xcdatamodeld file. The corresponding SwiftData properties are marked as Optional (?) but are never not initialized to an actual value. Can I remove the ? from those property types or am I required to do this as a migration?
(1a) If I'm required to do this as a migration, is this a custom migration or can I do it as a light migration.
(2) I have several Int16 in the Core Data model which I'd like to make Ints in the SwiftData model. Is this a migration? Is it a custom one or can the migration make the conversion.
Thank you,
Daniel