Post

Replies

Boosts

Views

Activity

Custom Apps for Business?
How does "Distributing Custom Apps for Business" work, as described here?https://developer.apple.com/business/custom-apps/Can this be done using an ordinary Apple Developer account, or does it require an Enterprise account, or is there a third type of account?What are the costs and how does one go about setting it up?Thanks.
4
0
2.1k
May ’20
Multiple CBCentralManagers in one app?
Is it OK to have multiple instances of CBCentralManager in a single app?In my case, there will only be two instances and each one is managing a different kind of device. I do need to be able to scan for both devices at the same time.I realize that this is not the best architecture, but I'm in a situation where I'm being asked to basically merge two apps into a single app, and each of those apps has its own very complex logic that I don't want to disturb.Thanks,Frank
4
0
1.2k
Mar ’20
Commerce question
I'm reviewing a proposal for an app project where the app will offer customers access to electronic coupons (redeemable at retail stores) in exchange for an annual subscription fee.The client for this app wants to use credit cards, PayPal and Apple Pay to accept the fee, not in-app purchase. Is this legitimate or should I advise him that in-app purchase is the only acceptable solution?Thanks,Frank
2
0
543
Feb ’20
TrackID from MPMediaItem?
I'm trying to get the Track ID for a song from an MPMediaItem.For example, I have this song in my library:https://music.apple.com/us/album/up-up-and-away/1442898889?app=itunes&i=1442898899The number "1442898899" in this URL is a track ID.When I get the MPMediaItem for this track in my app, I can't find that number anywhere. I've examined all of the properties of MPMediaItem. There is one called MPMediaEntityPropertyPersistentID which I thought would contain this value, but it is a different number.How do I get the number I need?Thanks,Frank
0
0
417
Feb ’20
MPMediaItem and iTunes
I'm interested in the persistentID property of MPMediaItem.Assuming I obtained the MPMediaItem using MPMediaQuery songsQuery, and assuming that the song which was returned is a song that the user purchased from the iTunes Store or Apple Music, will this value uniquely identify the song across all Apple devices or is it specific to that user or that device?In other words, if two people buy the same song from the same album and add it to their music library, and my app queries for that song, will it read the same persistentID for both users?If that's not the case, is there another way I can get a unique ID number for the song?Finally, is there a way I can distinguish songs that were obtained from Apple versus songs that were added to the user's library by ripping a disc or adding an MP3 file, etc?Thanks,Frank
0
0
424
Jan ’20
Unknown class name in IB file
I have a mixed-language project that began in Objective-C, but later we started using Swift for new classes.In the Objective-C code, there is a custom collection view cell with its own XIB file. When used from a view controller that is also in Obj-C, it works fine.However, when we try to use the cell in a Swift view controller, we see this error at the point where we try to dequeue a cell:2020-01-14 18:53:36.505132-0600 UMIXX[24947:3977729] [Storyboard] Unknown class _TtC5UMIXX22SongCollectionViewCell in Interface Builder file.The name of our cell is "SongCollectionViewCell", not "_TtC5UMIXX22SongCollectionViewCell", so it is unsurprising that a class with this name can't be found, but we have no idea where this name is coming from. I'm guessing it's due to some kind of Obj-C class name mangling, but I can't figure out what to do about it.Thanks,Frank
2
0
1.2k
Jan ’20
Tempo detection
Hi,Is there any framework or function in iOS that can do tempo detection on an audio sample and/or an audio stream?I'm currently doing this using a third-party library written in c++, but it is cumbersome and I want to get away from it if I can.Thanks,Frank
0
0
371
Jan ’20
Buy music from iTunes?
Is it possible for an app to search the iTunes catalog and assist the user in buying a song?Even if I have to open a different app to do the actual purchase, this would be OK as long as I could do the searching inside my app and send the other app a unique ID of the song to be purchased.I think I remember reading that this was possible years ago, but I can't find the information now.I realize that streaming and Apple Music are all the rage now, but unfortunately I have a customer with an app that depends heavily on being able to use local unprotected music from iTunes, it cannot work with streaming music services.Thanks,Frank
1
0
372
Dec ’19
Delete archives
Is it safe to delete archives from the finder? That is, from ~/Library/Developer/Xcode/Archives?I have a lot of them, and it's tedious to remove them from Xcode because you can only do it one at a time, and there is a confirmation prompt.I also have a number of empty directories that correspond to old projects I no longer maintain. I can't find any way to delete these from within Xcode at all.Thanks,Frank
2
0
12k
Dec ’19
Mixed swift in workspace
Help,I've been handed an Xcode workspace that contains projects in Swift 3 and other projects in Swift 5.If I open the workspace in Xcode 10.3 or later, it says that the Swift 3 projects aren't supported anymore and I should open them in Xcode 10.1.If I open the workspace in Xcode 10.1, it doesn't recognize the Swift 5 project and refuses to do the migration. If I try to open the Swift 3 projects individually, they won't build due to dependencies on other projects, and Xcode won't migrate them.I appear to be stuck. How do I fix this?
4
0
497
Nov ’19
Portrait mode on iPad?
How do I configure an iPad app to only work in portrait mode?In Xcode there are checkboxes for the four orientations, and only Portrait is checked, but the app still rotates into landscape mode.I also tried checking the "Requires full screen" box, but this didn't have any effect.Thanks,Frank
3
0
3k
Oct ’19