We found your app crashed on launch so we were unable to revIEw it.
Please revise your app and test it on a device to ensure it will
launch without crashing,and that it runs as expected,before
resubmitting.Please see the attached crash logs.
For discrete code-level questions,you may wish to consult with Apple
Developer Technical Support. If you have crash logs,symbolicate the
crash logs before contacting Apple Developer Technical Support.If you have difficulty reproducing this issue,please try testing the
workflow as described in Testing Workflow with Xcode‘s Archive
feature.
编辑:
我试图象征崩溃日志,我看到它在线程0索引0崩溃,这是getAllContacts函数.我不确定是什么问题.这是代码:
- (NSMutableArray *)getAllContacts{ ABAddressBookRef addressBook = ABAddressBookCreate( ); CFArrayRef allPeople = ABAddressBookcopyArrayOfAllPeople( addressBook ); CFIndex nPeople = ABAddressBookGetPersonCount( addressBook ); NSMutableArray *contact = [[NSMutableArray alloc] init]; for ( int i = 0; i < nPeople; i++ ) { ABRecordRef ref = CFArrayGetValueAtIndex( allPeople,i ); Nsstring *firstname = CFBrIDgingrelease(ABRecordcopyValue(ref,kABPersonFirstnameProperty)); Nsstring *lastname = CFBrIDgingrelease(ABRecordcopyValue(ref,kABPersonLastnameProperty)); if(lastname == nil && firstname != nil){ [contact addobject:[Nsstring stringWithFormat:@"%@",firstname]]; } else if(lastname != nil && firstname == nil){ [contact addobject:[Nsstring stringWithFormat:@"%@",lastname]]; } else{ [contact addobject:[Nsstring stringWithFormat:@"%@ %@",firstname,lastname]]; } } CFRelease(addressBook); CFRelease(allPeople); NSLog(@"All Contacts: %@",contact); return contact;}
以下是符号化后的崩溃日志:
{"bundleID":"com.axon.undotext","app_name":"Undo Text","BUG_type":"109","name":"Undo Text","os_version":"iPhone OS 7.1.1 (11D201)","version":"1.5 (1.0)"}IncIDent IDentifIEr: CDEE9887-DE46-4C7B-93D9-6F5B64C30448CrashReporter Key: 814350e202fe6bd49117983388396d3d1b870da1HarDWare Model: xxxProcess: Undo Text [3268]Path: /var/mobile/Applications/1F7938ED-7911-4838-8F79-26039EF3E386/Undo Text.app/Undo TextIDentifIEr: com.axon.undotextVersion: 1.5 (1.0)Code Type: ARM (Native)Parent Process: launchd [1]Date/Time: 2014-06-12 13:43:03.567 -0700OS Version: iOS 7.1.1 (11D201)Report Version: 104Exception Type: EXC_BREAKPOINT (SIGTRAP)Exception Codes: 0x0000000000000001,0x000000000000defeTriggered by Thread: 0Thread 0 name: dispatch queue: com.apple.main-threadThread 0 Crashed:0 CoreFoundation 0x2eb0b3c5 CFRelease + 11371 Undo Text 0x00035897 -[ContactsManager getAllContacts] (ContactsManager.m:58)2 Undo Text 0x00028d59 -[VIEwController setupVIEw] (VIEwController.m:123)3 Undo Text 0x00028901 -[VIEwController vIEwDIDLoad] (VIEwController.m:65)4 UIKit 0x3140ea4f -[UIVIEwController loadVIEwIfrequired] + 5155 UIKit 0x3140e80d -[UIVIEwController vIEw] + 216 UIKit 0x31485c39 -[UIClIEntRotationContext initWithClIEnt:toOrIEntation:duration:anDWindow:] + 3857 UIKit 0x3148459d -[UIWindow _setRotatableClIEnt:toOrIEntation:updateStatusbar:duration:force:isRotating:] + 11978 UIKit 0x314840e3 -[UIWindow _setRotatableClIEnt:toOrIEntation:updateStatusbar:duration:force:] + 439 UIKit 0x3148406b -[UIWindow _setRotatableVIEwOrIEntation:updateStatusbar:duration:force:] + 9110 UIKit 0x31484003 -[UIWindow _setRotatableVIEwOrIEntation:duration:force:] + 3911 UIKit 0x3147c67d __57-[UIWindow _updatetoInterfaceOrIEntation:duration:force:]_block_invoke + 10512 UIKit 0x31410695 -[UIWindow _updatetoInterfaceOrIEntation:duration:force:] + 38113 UIKit 0x31483d55 -[UIWindow setautorotates:forceUpdateInterfaceOrIEntation:] + 69314 UIKit 0x31483825 -[UIVIEwController _tryBecomeRootVIEwControllerInWindow:] + 15715 UIKit 0x31415611 -[UIWindow addRootVIEwControllerVIEwIfPossible] + 45716 UIKit 0x31412dd5 -[UIWindow _setHIDden:forced:] + 30117 UIKit 0x3147ca4d -[UIWindow makeKeyAndVisible] + 5718 UIKit 0x314796e1 -[UIApplication _callinitializationDelegatesForURL:payload:suspended:] + 181719 UIKit 0x31473cc5 -[UIApplication _runWithURL:payload:launchOrIEntation:statusbarStyle:statusbarHIDden:] + 71720 UIKit 0x3140fc93 -[UIApplication handleEvent:withNewEvent:] + 354721 UIKit 0x3140edf5 -[UIApplication sendEvent:] + 6922 UIKit 0x31473401 _UIApplicationHandleEvent + 61323 GraphiCSServices 0x33a46b53 _PurpleEventCallback + 60724 GraphiCSServices 0x33a4673b PurpleEventCallback + 3125 CoreFoundation 0x2eba5845 __CFRUNLOOP_IS_CALliNG_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 3326 CoreFoundation 0x2eba57df __CFRunLoopDoSource1 + 34327 CoreFoundation 0x2eba3fab __CFRunLoopRun + 140328 CoreFoundation 0x2eb0e765 CFRunLoopRunspecific + 52129 CoreFoundation 0x2eb0e547 CFRunLoopRunInMode + 10330 UIKit 0x31472627 -[UIApplication _run] + 75931 UIKit 0x3146d88d UIApplicationMain + 113332 Undo Text 0x0004deff main (main.m:16)33 Undo Text 0x00027764 start + 36Thread 1 name: dispatch queue: com.apple.libdispatch-managerThread 1:0 libsystem_kernel.dylib 0x39d52804 kevent64 + 241 libdispatch.dylib 0x39ca1051 _dispatch_mgr_invoke + 2292 libdispatch.dylib 0x39c9b2df _dispatch_mgr_thread + 35Thread 2:0 libsystem_kernel.dylib 0x39d65c70 __workq_kernreturn + 81 libsystem_pthread.dylib 0x39dcac1f _pthread_wqthread + 3072 libsystem_pthread.dylib 0x39dcaad8 start_wqthread + 4Thread 3:0 libsystem_kernel.dylib 0x39d65c70 __workq_kernreturn + 81 libsystem_pthread.dylib 0x39dcac1f _pthread_wqthread + 3072 libsystem_pthread.dylib 0x39dcaad8 start_wqthread + 4Thread 0 crashed with ARM Thread State (32-bit): r0: 0x00000000 r1: 0x39f720f8 r2: 0x00000003 r3: 0x00000002 r4: 0x00000000 r5: 0x16e85070 r6: 0x00000000 r7: 0x00177300 r8: 0x00000144 r9: 0x3ba52e30 r10: 0x16e69890 r11: 0x31a3841a ip: 0x2eb0af55 sp: 0x001772c0 lr: 0x0003589b pc: 0x2eb0b3c4 cpsr: 0x60000030解决方法 来自CFRelease docs:
If cf is NulL,this will cause a runtime error and your application
will crash.
您需要检查addressBook和allPeople以确保它们不会返回NulL. Apple可能正在使用空地址簿的设备上测试您的应用程序,该地址簿返回NulL,然后传递给CFRelease,使您的应用程序崩溃.
总结以上是内存溢出为你收集整理的ios – 苹果因负载崩溃而拒绝了我的应用程序,我无法重现它.我该怎么办?全部内容,希望文章能够帮你解决ios – 苹果因负载崩溃而拒绝了我的应用程序,我无法重现它.我该怎么办?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)