Posts

Post not yet marked as solved
1 Replies
299 Views
When my app tries to start CMMotionManager, it crashes with 'ahpl_main (30): EXC_BAD_ACCESS (code=1, address=0x4230)' error. It's not always, but sometimes like when I tries to start CMMotionManager right after app is launched. motionManager = CMMotionManager() motionManager?.deviceMotionUpdateInterval = 1.0 guard motionManager.isDeviceMotionAvailable else { return } motionManager?.startDeviceMotionUpdates(to: OperationQueue.current!, withHandler: { [weak self] (motion, error) in }) This might be a memory issue..? If I need to provide more information, I am happy to do so. Thank you for your help.
Posted
by tenna.
Last updated
.
Post marked as solved
1 Replies
310 Views
I don't know this is the correct place to ask this, but Apple has not replied to my message in the Resolution Center. My app was rejected because of the "Guideline 5.2.2 - Legal", and they said I have to provide documentary evidence demonstrating that I have all necessary rights or permissions to facilitate transactions and charge for access to third-party services in your app. My app access YouTube, and let users live stream. Similar app like "Swither". I asked exactly what information do I need to provide, but they haven't replied for over 3 days. When I re-submit the app, they just reject and send me the same "Guideline 5.2.2 - Legal" rejection message. Do I need to ask google to make documentation?? Or anyone experienced this, how could you solved this? Thank you in advance.
Posted
by tenna.
Last updated
.
Post marked as solved
1 Replies
544 Views
My CODE: the mediaURL.path is obtained from UIImagePickerControllerDelegate guard UIVideoEditorController.canEditVideo(atPath: mediaURL.path) else { return } let editor = UIVideoEditorController() editor.delegate = self editor.videoPath = mediaURL.path editor.videoMaximumDuration = 10 editor.videoQuality = .typeMedium self.parentViewController.present(editor, animated: true) Error description on console as below. Video export failed for asset <AVURLAsset: 0x283c71940, URL = file:///private/var/mobile/Containers/Data/PluginKitPlugin/7F7889C8-20DB-4429-9A67-3304C39A0725/tmp/trim.EECE5B69-0EF5-470C-B371-141CE1008F00.MOV>: Error Domain=AVFoundationErrorDomain Code=-11800 It doesn't call func videoEditorController(_ editor: UIVideoEditorController, didFailWithError error: Error) After showing error on console, UIVideoEditorController automatically dismiss itself. Am I doing something wrong? or is it a bug in swift? Thank you in advance.
Posted
by tenna.
Last updated
.
Post marked as solved
1 Replies
391 Views
Thread 9 name: Thread 9 Crashed: 0 libswiftCore.dylib 0x0000000188d21398 _assertionFailure(_:_:file:line:flags:) + 1504 (AssertCommon.swift:132) 1 libswiftFoundation.dylib 0x0000000188c8beec specialized static Int32._forceBridgeFromObjectiveC(_:result:) + 372 (NSNumber.swift:207) 2 HaishinKit 0x0000000102fbe46c VideoIOComponent.attachScreen(_:useScreenSize:) + 496 (&lt;compiler-generated&gt;:0) 3 HaishinKit 0x0000000102f7e188 closure #1 in NetStream.attachScreen(_:useScreenSize:) + 156 (NetStream+Extension.swift:18) 4 HaishinKit 0x0000000102f2ff7c thunk for @escaping @callee_guaranteed () -&gt; () + 20 (&lt;compiler-generated&gt;:0) 5 libdispatch.dylib 0x0000000184fbf2b0 _dispatch_call_block_and_release + 24 (init.c:1466) 6 libdispatch.dylib 0x0000000184fc0298 _dispatch_client_callout + 16 (object.m:559) 7 libdispatch.dylib 0x0000000184f9c344 _dispatch_lane_serial_drain$VARIANT$armv81 + 568 (inline_internal.h:2557) 8 libdispatch.dylib 0x0000000184f9ce2c _dispatch_lane_invoke$VARIANT$armv81 + 400 (queue.c:3862) 9 libdispatch.dylib 0x0000000184fa666c _dispatch_workloop_worker_thread + 692 (queue.c:6589) 10 libsystem_pthread.dylib 0x00000001cd8bd5bc _pthread_wqthread + 272 (pthread.c:2436) 11 libsystem_pthread.dylib 0x00000001cd8c086c start_wqthread + 8 Thread 10: 0 libsystem_pthread.dylib 0x00000001cd8c0864 _pthread_dependency_fulfill_slow + 192 (pthread_dependency.c:57) Thread 11: 0 libsystem_pthread.dylib 0x00000001cd8c0864 _pthread_dependency_fulfill_slow + 192 (pthread_dependency.c:57) Thread 9 crashed with ARM Thread State (64-bit): x0: 0x0000000282abc480 x1: 0x0000000188fe7840 x2: 0x0000000000000007 x3: 0x0000000193edad18 x4: 0x0000000000000000 x5: 0x000000016da46630 x6: 0x0000000000000032 x7: 0x000000000000003e x8: 0x0000000282abc488 x9: 0xfffffffe00000000 x10: 0x0000000200000003 x11: 0x0000000000000001 x12: 0x0000000000000003 x13: 0x000000009740682d x14: 0x0000000097607000 x15: 0x0000000000007000 x16: 0x0000000017600000 x17: 0x02000001000001f8 x18: 0x0000000000000000 x19: 0x0000000282abc480 x20: 0x000000016da466c0 x21: 0x0000000188cd5688 x22: 0x0000000000000019 x23: 0x0000000000000000 x24: 0x00000000000000cf x25: 0x000000000000000b x26: 0x0000000000000002 x27: 0x0000000188cd6040 x28: 0x000000016da46700 fp: 0x000000016da467b0 lr: 0x0000000188d21398 sp: 0x000000016da46700 pc: 0x0000000188d21398 cpsr: 0x60000000 esr: 0xf2000001 Address size fault When the app try to live stream on Youtube, this crash occur. Only some device experience this crash. Thank you in advance! Tenna
Posted
by tenna.
Last updated
.