Some users experience this kind of crash:
NSInternalInconsistencyException:Use of the class INVocabulary requires the entitlement com.apple.developer.siri.
Make sure you have enabled the Siri capability in your Xcode project.
During app startup, calling the following code causes a crash:
INVocabulary *vocabulary = [INVocabulary sharedVocabulary];
But our project definitely has siri configured to be available.
Now that we can't figure it out, is it a bug in the system?
Post
Replies
Boosts
Views
Activity
Question:
A very small number of users experience this crash:
NSInternalInconsistencyException:Use of the class INVocabulary requires the entitlement com.apple.developer.siri.
Make sure you have enabled the Siri capability in your Xcode project.
But our project definitely has siri configured to be available.
During app startup, calling the following code causes a crash:
INVocabulary *vocabulary = [INVocabulary sharedVocabulary];
Now that we can't figure it out, is it a bug in the system?
My code as long as you use the AVPictureInPictureController, open the PIP model, and then back to the desktop, my widget will refresh is invalid, I closed the PIP code mode, functions are normal refresh.
I don't know what the reason is, is the system made a refresh limit?
My app supports only iPhone mode, and when it runs on an iPad device, it normally displays compatible iPhone mode;
But when compatibility mode is displayed normally, everything is fine in the UI.
But my code as long as you use the AVPictureInPictureController, open the picture in picture, can lead to code for [UIScreen mainScreen] bounds will change, become the real width and height of the equipment, so the UI disorder;
Problems arise when our code is laid out with [UIScreen mainScreen] bounds.
Like this:
This was normal in iOS16 and iOS17, but suddenly it happened in iOS18
How should my application be compatible with this?
My app supports only iPhone mode, and when it runs on an iPad device, it normally displays compatible iPhone mode.
But my code as long as you use the AVPictureInPictureController, open the picture in picture, will lead to get [UIScreen mainScreen] bounds became the real width and height, so the UI disorder;
How should my application be compatible with this?
iOS now has a pre-build closure optimization for launch, so how do I know if my app launches with a pre-build closure optimization?
In what way can I check that my application has a pre-built closure at startup?
Xcode version: Xcode16 beta6
iOS version:iOS18 beta7
The openURL method call to UIApplication is invalid
Moreover, the project has a lot of logic dependent on the return value of this method, which is very troublesome to modify
Look at the Apple documentation, and say that the problem is fixed, how should I deal with this situation
The question is:
We did not add "GameController framework", but we do not know why the "GameController framework" is loaded at startup.
I am checking the launch time of our app, using Instruments->App launch
I was confused to find the GameConroller framework loaded
I check the project, in the plist file, no configuration GCSupportedGameControllers, GCSupportsControllerUserInteraction related key.
What else causes the GameController framework to load?
Why is the GameController framework loaded
I am checking the launch time of our app, using Instruments->App launch
I was confused to find the GameConroller framework loaded
I check the project, in the plist file, no configuration GCSupportedGameControllers, GCSupportsControllerUserInteraction related key.
What else causes the GameController framework to load?
Upgrade Xcode16 beta4 compiler error, error message as follows
Undefined symbols for architecture arm64:
"__mh_execute_header", referenced from:
-exported_symbol[s_list] command line option
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
But the interesting thing is that I used Debug mode and it compiled successfully.This error is reported using the Release mode.
I searched for the keyword "_mh_execute_header" in the project and found nothing useful.
Now I am very confused how to solve this error.
Xcode15 has been running normally, upgrade to Xcode16 beta4, running crash, crash code is as follows:
What am I supposed to do to fix this.
Can't my property be named maskView in Xcode16 beta4?
Xcode15 has been normal, upgrade Xcode16 beta4 compiler error, error message as follows
Can't the parameter of the method be named with module? I tried to change it to module1 and it will compile successfully.
This makes me feel unreasonable, why such a compilation error
We are a music app, encountered a scene, there is no way to resume playing music, so I would like to ask about the technical plan, how to achieve it.
For example, when playing a video in another app, we pause the music playing and turn off the video, we should resume the music playing.
Our code is implemented, so listen AVAudioSessionInterruptionNotification, when we received the notice and judge AVAudioSessionInterruptionOptionShouldResume, we play music came again, Error 560557684(AVAudioSessionErrorCodeCannotInterruptOthers) was reported. We were very confused
NSError *error = nil;
AVAudioSession *audioSession = [AVAudioSession sharedInstance];
[audioSession setCategory:AVAudioSessionCategoryPlayback withOptions:0 error:&error];
[audioSession setActive:YES error:&error];
We compared the apple music app and found that apple music can resume playing.
Here is a video of the effects of our app:
https://drive.google.com/file/d/1J94S2kxkEpNvG536yzCnKmE7IN3cGzIJ/view?usp=sharing
Here's the apple music effect video:
https://drive.google.com/file/d/1c1Kdgkn2nhy8SdDvRJAFF2sPvqJ8fL48/view?usp=sharing
We want to improve our user experience. How can we do that?
I tested the official demo, it will be the same, is there a problem with CarPlay release?
This is the code for creating a list of 50 elements
var listItems = [CPListItem]()
for _ in 0..<50 {
autoreleasepool {
var item: CPListItem
item = CPListItem(text: "标题", detailText: "标题22222", image: UIImage(named: "local_album_no"))
listItems.append(item)
}
}
let listTemplate = CPListTemplate(title: "最近播放", sections: [])
let section = CPListSection(items: listItems)
listTemplate.updateSections([section])
self.carplayInterfaceController?.pushTemplate(
listTemplate, animated: true, completion: nil)
When I exit the page, but the page does not free, causing memory to keep increasing.
I have also tested the official demo, and there are problems that will not be released.
Can you check if this is a bug in the system.
What can I do to avoid this problem?
This is the CarPlay page, and the phone is running iOS17.5
The template creation code is as follows:
CPListTemplate *listTemplate = [[CPListTemplate alloc] initWithTitle:@"最近播放" sections:sections];
listTemplate.delegate = self;
[_interfaceController pushTemplate:listTemplate animated:YES completion:^(BOOL success, NSError * _Nullable error) {
}];
sections have many CPListItem.
When I exit the page, but the page does not free, causing memory to keep increasing.
I tried to refresh empty sections after exiting the page and memory freed for me, which confused me.
Do we have to manage the memory ourselves?