Hi,
We have an app that already supports Apple CarPlay, but the current app version only supports com.apple.developer.playable-content which is now depricated, I already create a new provisioning profile with the (Carplay Audio Carplay Framework) but when i download the new provisioning profile, xcode says "Provisioning profile doesn't include the com.apple.developer.carplay-audio entitlement.
And i can confirm that the profile doesnt include it with the command line "security cms -D -i App.mobileprovision | xmllint --xpath "/plist/dict/key[text()='Entitlements']/following-sibling::dict[position()=1]
but in the developer portal it says the provisioning profile includes carplay Framework...
Do i miss some steps? (Btw my entitlements file includes both carplay-audio and playable-content keys)
Post
Replies
Boosts
Views
Activity
Hi Everybody,
I have a strange problem, I'm using UISceneDelegate with my app as well as CarPlay, in my CarPlay Scene delegate
@available(iOS 14.0, *)
class PWRCarPlaySceneDelegate: UIResponder, CPTemplateApplicationSceneDelegate {
i have @available(iOS 14.0, *) check in my code, but when i try to run in ios 12.4 simulator it gives this error;
Error: Symbol not found: OBJC_CLASS$_CPNowPlayingShuffleButton
the class shouldnt be available in ios12, how can i solve this problem?
i wrap my code as;
func addNowPlayingTemplateButtons() {
if #available(iOS 14.0, *) {
let shuffleButton = CPNowPlayingShuffleButton() {_ in
PowerMediaService.shared.changeShuffleMode( MPRemoteCommandCenter.shared().changeShuffleModeCommand.currentShuffleType)
}
nowPlayingTemplate?.updateNowPlayingButtons([shuffleButton])
}
}
but it gives a warning "nnecessary check for 'iOS'; enclosing scope ensures guard will always be true" since whole class is in @available(iOS 14.0, *) and it still crashes on ios12 device...