Posts

Post not yet marked as solved
0 Replies
362 Views
I want to do a recording from the command-line with the Time Profiler, and get symbolicated stack traces from the resulting XML. Everything works for this using xctrace except that the addresses aren't symbolicated. After running xcrun xctrace export --xpath '//trace-toc[1]/run[1]/data[1]/table' ..., I see e.g. <text-addresses id="12397" fmt="frag 923">6915975758 ...</text-addresses>. So I have the addresses but they're not symbolicated. Is there an easy way to symbolicate them like Instruments.app does?
Posted
by meiselsc.
Last updated
.
Post not yet marked as solved
5 Replies
3.1k Views
When I try to run my app on a real phone, after trusting the certificate, I get the following error:iPhone has denied the launch request.Internal launch error: process launch failed: UnspecifiedWhen I click on "Details", I get:DetailsCould not launch “MyApp”Domain: IDEDebugSessionErrorDomainCode: 3Failure Reason: iPhone has denied the launch request.Internal launch error: process launch failed: Unspecified--process launch failed: UnspecifiedDomain: IDEDebugSessionErrorDomainCode: 3--I've tried every reset I can think of: building on both Xcode 10 and 11, building for both iOS 12.4 and 13.0, deleting DerivedData and all other imaginable build caches, deleting all relevant certificates from the keychain, restarting the phone and computer, using a different phone. It feels like it started when I tried building and running an app on one of the phones phone after downgrading it (via a restore) from 13.0 to 12.4, but I'm not sure. I'm using an automatically managed provisioning profile. Any ideas?
Posted
by meiselsc.
Last updated
.
Post not yet marked as solved
0 Replies
625 Views
When I call startWriting for a video capture session, the ducking for my audio session stops, and the external audio goes back to full volume. How can I prevent this, so that ducking continues?Code example, see lines 9 and 29:import UIKit import AVFoundation class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() try! AVAudioSession.sharedInstance().setCategory(.playback, mode: .spokenAudio, options: [.duckOthers, .interruptSpokenAudioAndMixWithOthers]) try! AVAudioSession.sharedInstance().setActive(true) // ducking starts here, as expected DispatchQueue.main.asyncAfter(deadline: .now() + 2) { self.beginVideoWritingSession() } } func beginVideoWritingSession(){ let videoSettings:[String: Any] = [AVVideoCodecKey: AVVideoCodecType.h264, AVVideoWidthKey: 200, AVVideoHeightKey: 200] let path = NSSearchPathForDirectoriesInDomains(.cachesDirectory, .userDomainMask, true)[0] + "/video" let fileURL = URL(fileURLWithPath: path) do { try FileManager.default.removeItem(at: fileURL) } catch {} let assetWriter = try! AVAssetWriter(url: fileURL, fileType: AVFileType.mov) let writeInput = AVAssetWriterInput(mediaType: AVMediaType.video, outputSettings: videoSettings) assert(assetWriter.canAdd(writeInput)) assetWriter.add(writeInput) assert(assetWriter.startWriting()) // ducking stops here unexpectedly } }
Posted
by meiselsc.
Last updated
.