我在我们的应用程序中每1000到2000次会话中发生一次崩溃,我无法弄清楚该怎么做.
这是Apple iOS崩溃,我无法做任何事情吗?
我在我的项目中使用SDWebImage pod,也许就是这样?
这是崩溃日志:
Thread 0 Crashed:
0 CoreGraphics 0x182cfa59c ERROR_CGDataProvider_BufferIsNotReadable + 12
1 CoreGraphics 0x000000018582e2c0 CGDataProviderRetainBytePtr + 216
2 QuartzCore 0x0000000187f00048 CA::Render::(anonymous namespace)::create_image_from_image_data() + 196
3 QuartzCore 0x0000000187efe1a0 CA::Render::create_image() + 900
4 QuartzCore 0x0000000187f00e60 CA::Render::copy_image() + 472
5 QuartzCore 0x0000000187f01228 CA::Render::prepare_image() + 20
6 QuartzCore 0x00000001880101a8 CA::Layer::prepare_commit() + 332
7 QuartzCore 0x0000000187f7245c CA::Context::commit_transaction() + 576
8 QuartzCore 0x0000000187f99b90 CA::Transaction::commit() + 540
9 QuartzCore 0x0000000187f9a9d0 CA::Transaction::observer_callback() + 92
9
10 CoreFoundation 0x0000000183f65edc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
11 CoreFoundation 0x0000000183f63894 …Run Code Online (Sandbox Code Playgroud) 我有一次罕见的崩溃,我认为它发生在用户尝试共享照片时,同样非常罕见,10,000 个会话中有 1 个崩溃。如果有人可以提供有关它可以是什么的任何信息,我会很高兴吗?
谢谢!
Incident Identifier: 5ACBBA52-B09E-5668-E3EE-276C30303030
CrashReporter Key: None
Hardware Model: iPhone7,1
Process: GOTit [10112]
Path: /var/containers/Bundle/Application/5BD13987-877E-4655-A1D0-2EE9F9A99EE2/GOTit.app/GOTit
Identifier: com.gotit.inc
Version: 5.3.5 (5.3)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2018-04-09 19:09:44.116 +0000
OS Version: iOS 11.2.6 (15D100)
Report Version: 104
Exception Type: EXC_CRASH (SIGBUS)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 6
Thread 6 Crashed:
0 Foundation 0x0000000185cb4398 __85-[NSExtension _completeRequestReturningItems:forExtensionContextWithUUID:completion:]_block_invoke + 108
1 libdispatch.dylib 0x0000000184c42a54 _dispatch_call_block_and_release + 24
2 libdispatch.dylib 0x0000000184c42a14 _dispatch_client_callout + 16
3 libdispatch.dylib 0x0000000184c4c96c …Run Code Online (Sandbox Code Playgroud) 我已经看过iOS的iCloud Document示例代码,我用它来同步iCloud 的uidocument,现在我试图在没有的Mac OSX应用程序上同步iCloud和nsdocumentUIDocument.
我试图改变UIDocument,NSDocument但与icloud同步的所有方法都不同.我没有找到任何示例代码或教程,除了苹果的文档,这是非常令人困惑和写得不好.
例如,OS X上UIDocument不存在iOS上的以下方法NSDocument:
//doc is an instance of subclassed UIDocument
[doc openWithCompletionHandler:nil];
Run Code Online (Sandbox Code Playgroud)
Apple文档为OS X提供此代码:
- (void)checkIfCloudAvaliable {
NSURL *ubiquityContainerURL = [[[NSFileManager defaultManager]
URLForUbiquityContainerIdentifier:nil]
URLByAppendingPathComponent:@"Documents"];
if (ubiquityContainerURL == nil) {
NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:
NSLocalizedString(@"iCloud does not appear to be configured.", @""),
NSLocalizedFailureReasonErrorKey, nil];
NSError *error = [NSError errorWithDomain:@"Application" code:404
userInfo:dict];
[self presentError:error modalForWindow:[self windowForSheet] delegate:nil
didPresentSelector:NULL contextInfo:NULL];
return; …Run Code Online (Sandbox Code Playgroud) 我没有找到一种没有相机界面拍照的简单方法.我只需要从相机中获取一张照片并将其保存到文件中.
ios ×4
iphone ×3
objective-c ×3
xcode ×2
camera ×1
crash ×1
icloud ×1
ipad ×1
macos ×1
nsdocument ×1