With Xcode15, iOS11 devices crash during startup.
Error reported as follows:
dyld: could not load inserted library '/System/Library/PrivateFrameworks/GPUToolsCapture.framework/GPUToolsCapture' because image not found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
XCode version: 15.0 beta 7
iOS version: iOS 13.3.1
Within the didFinishLaunchingWithOptions method call [MMKV initializeMMKV: nil]; The EXC_BAD_ACCESS problem occurred.
In line 73 of libMMKV.mm: g_lock = new mmkv::ThreadLock();
Any code that uses new to allocate space will crash.
This crash is inevitable in iOS 13.3.1.
log:
bt
thread Dev #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
frame #0: 0x0000000000000000
frame Dev #1: 0x000000010222b89c etest+[MMKV initializeMMKV:logLevel:handler:](self=MMKV, _cmd="initializeMMKV:logLevel:handler:", rootDir=0x0000000000000000, logLevel=MMKVLogInfo, handler=0x0000000000000000) at libMMKV.mm:78:14 frame #2: 0x000000010222b7c0 etest+[MMKV initializeMMKV:](self=MMKV, _cmd="initializeMMKV:", rootDir=0x0000000000000000) at libMMKV.mm:63:12
frame typo #3: 0x0000000102224b7c etest-[AppDelegate application:didFinishLaunchingWithOptions:](self=0x0000000283bc8da0, _cmd="application:didFinishLaunchingWithOptions:", application=0x0000000119f006c0, launchOptions=0x0000000000000000) at AppDelegate.m:29:5 frame #4: 0x000000019b607c18 UIKitCore + 344
Where the following apis have been used, the operation has crashed
UIGraphicsBeginImageContext
UIGraphicsBeginImageContextWithOptions
UIGraphicsGetImageFromCurrentImageContext
UIGraphicsEndImageContext
The run crashed
Looking at the api documentation, it is recommended to use UIGraphicsImageRenderer instead.
But the project uses too many places, and is confused by the Xcode15beta forced run crashed
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.
When I receive the InterruptionBegan notification (the interruption type is AVAudioSessionInterruptionTypeBegan) , I pause playing music.
When I receive the InterruptionEnded notification (the interruption type is AVAudioSessionInterruptionTypeEnded), I resume playing music.
however, sometimes i has got the error code: AVAudioSessionErrorCodeCannotInterruptOthers (560557684)
If some malicious app to take up the audio, which leads to the third party app music playback recovery fails, an error AVAudioSessionErrorCodeCannotInterruptOthers.
In this case, can we know which apps are maliciously hogging the audio?
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
The swift syntax compilation reported an error.
as follows
How should I be compatible
ld: library '/Users/huangfeidi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
A compilation error occurred after upgrading Xcode15
In contrast to Xcode14, Xcode15 does not have libarclite_iphoneos.a.
Do you have the same problem?
My code is as follows
[_interfaceController pushTemplate:template animated:YES completion:^(BOOL success, NSError * _Nullable error) {
}];
push a template, and the memory will increase accordingly, but after clicking exit, the memory will not drop down, resulting in continuous accumulation
And my page is a list, each item contains an image, memory is growing very fast
Does template need to manage memory by itself?
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?
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
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?
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?
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?
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?