Hi all:I watched the WWDC15 talked titled What's New in UIKit Dynamics and Visual Effects. Around the 16:00 minute mark the speaker refers to UIDynamicAnimators debugEnabled feature.He states:• Pause the debugger• Find a reference to your UIDynamicAnimator• Set debugEnabled to trueNow, this is likely something very trivial. However, my LLDB skills are poor. If anyone could enlighten me as to how I would go about doing this the right way, it would be very much appreciated.The steps I've currently tried are:• Run the app• Hit 'pause' in the debug area• Search in local variables segment to the left of the console (it's always blank)• I've tried referring to the animator by the variable name I gave it, 'animator', but the console returns an error stating the command is invalid• I've tried using 'expr animator.debugEnabled = true' - same issue.Do I need to edit my scheme to be in a specific mode? Really quite lost.Thanks in advance for any help.
Search results for
LLDB crash
29,555 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi, I am using Mohave 10.14.6 on a work computer with XCode 11.2 having recently been upgraded from High Sierra. Before the upgrade, I had been successfully using lldb-mi as part of my cross-platform C++ debugging sessions; this binary file had been present in the /Applications/Xcode.app/Contents/Developer/usr/bin folder before the upgrade. After the upgrade, lldb-mi is gone! How do I get it back? I see this is also happening to Catalina developers (not just Mohave). There are bugs debugging certain C++ elements in lldb thus the need for lldb-mi. How do I get lldb-mi back? A quick look through /usr/local/bin and other spots didn't locate it either unless I missed something? Thanks in advance for anyone's help.
Chrome has started crashing almost immediately after startup. I've reported the issue to the Chrome team here: https://issues.chromium.org/issues/385433270 I'm hoping to debug the issue a bit more myself. This page from the Chrome team https://chromium.googlesource.com/chromium/src/+/master/docs/mac/debugging.md#chrome-builds suggests using the follow to strip off the protections: codesign --force --sign - path/to/Google Chrome.app However, applying that seems to have no effect: % codesign --force --sign - /Applications/Google Chrome copy.app /Applications/Google Chrome copy.app: replacing existing signature /Applications/Google Chrome copy.app: resource fork, Finder information, or similar detritus not allowed % lldb /Applications/Google Chrome copy.app (lldb) target create /Applications/Google Chrome copy.app Current executable set to '/Applications/Google Chrome copy.app' (arm64). (lldb) run error: process exited with status -1 (attach failed (Not allowed to attach to pr
I'm getting the error: ** Warning: Error creating LLDB target at path '/Users/tantan/Library/Developer/Xcode/DerivedData/Videe-bpukzfmjaxewiuaiolulcqllukjg/Build/Products/Debug-iphonesimulator/[AppName].app'- using an empty LLDB target which can cause slow memory reads from remote devices.** Is there anyone who can explain to me what the reason is and how can fix it? Thanks,
This could be caused by the presence of old runtimes as mentioned in the Release Notes:Xcode processes may quit unexpectedly if older iOS Simulator runtimes (Xcode 6.x) are present on diskTo see if that's the case (or to rule it out as a cause), delete all (old) runtimes from /Library/Developer/CoreSimulator/Profiles/Runtimes.
Topic:
App & System Services
SubTopic:
Core OS
Tags:
What I had to do was switch off slow keys and sticky keys in the accessibility preferences. It stopped my mac trying to save web archives everytime I pressed s, h or the space bar. Other weird things happen still. Like photoshop is barely useable at the moment - forever falling over and unexpectedly quitting.
Topic:
App & System Services
SubTopic:
Core OS
Tags:
Xcode version: 12.3 (12C33) Apple M1 Device, On running an app through Xcode lldb server is crashing. Process: lldb-rpc-server [35042] Path: /Applications/Xcode.app/Contents/SharedFrameworks/LLDBRPC.framework/Versions/A/Resources/lldb-rpc-server Identifier: lldb-rpc-server Version: 1205.0.11.1 Code Type: ARM-64 (Native) Parent Process: Xcode [91389] Responsible: Xcode [91389] User ID: 501 Date/Time: 2021-02-11 09:13:32.670 +0530 OS Version: macOS 11.0 (20A2411) Report Version: 12 Anonymous UUID: 0EECC9B3-B670-EE4C-4C01-5167159E1F56 Sleep/Wake UUID: D137B035-CA2E-4AD8-9CC0-8CB1247AC472 Time Awake Since Boot: 100000 seconds Time Since Wake: 140 seconds System Integrity Protection: enabled Crashed Thread: 6 lldb.process.internal-state(pid=38840) Exception Type: EXC_BAD_ACCESS (Code Signature Invalid) Exception Codes: 0x0000000000000032, 0x000000016b6e8000 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: Namespace CODESIGNING, Code 0x2
Here's a simple C++ program: cpp #include stdio.h int main() { printf(Hello worldn); return 0; } On my M1 Macbook air, I can compile, run, and debug this program successfully: bash % clang++ hello.cpp -g % ./a.out Hello world % lldb a.out (lldb) target create a.out Current executable set to '/Users/sam/build/a.out' (x86_64). (lldb) run Process 55681 launched: '/Users/sam/build/a.out' (x86_64) Hello world Process 55681 exited with status = 0 (0x00000000) When adding -arch arm64, it builds and runs, as expected: bash % clang++ hello.cpp -g -arch arm64 % ./a.out Hello world But debugging seems to fail: bash % lldb a.out (lldb) target create a.out Current executable set to '/Users/sam/build/a.out' (arm64). (lldb) run error: process exited with status -1 (attach failed ((os/kern) invalid argument)) Is there anything special I need to do to get lldb to work with an executable compiled with -arch arm64? Macbook Air (M1, 2020) Big Sur 11.0.1 bash % clang+
It crashed under lldb so I was able to backtrace -- it was my Swiftian @synchronized replacement, which (in some places) was using a Swift dictionary. I changed all the places to use an NSLock instead, and have been running it since, so far so good.
Topic:
App & System Services
SubTopic:
Networking
Tags:
Ever since updating to Xcode 16.3, auto-completing variable names in lldb does not work. Is this a known bug? Is there a workaround to get it do auto-complete again?
It's possible that this is caused by the presence of old runtimes as mentioned in the Release Notes:Xcode processes may quit unexpectedly if older iOS Simulator runtimes (Xcode 6.x) are present on diskTo see if that's the case (or to rule it out as a cause), delete all (old) runtimes from /Library/Developer/CoreSimulator/Profiles/Runtimes.
Topic:
Programming Languages
SubTopic:
Swift
Tags:
Thanks for the reply. I recommend that you do what Jim suggested on that thread you referenced [1], namely file a bug. Please post your bug number, just for the record. I have immediately reported the bug. Here is the number. FB13382646 In terms of workarounds, if you modify your assert macro to not use abort but rather invoke __builtin_trap(), that seems to make LLDB much happier. I tried __builtin_trap. As a result, LLDB stopped when the app crashed. Thank you very much.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
There is no output, it crashes during the constructor: (lldb) Thread 1: EXC_BREAKPOINT(code = 1, subcode=0x1000bc7f0); which is why the print is blank.And my bad, I read on the object type's page that, that was how it was initialized. Still stuck!
Topic:
Programming Languages
SubTopic:
Swift
Tags:
I was able to fix this by adding settings set plugin.process.gdb-remote.packet-timeout 300 to my ~/.lldbinit file Process still takes an abnormal time to launch, but at least lldb isn't crashing and the app is running as before.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Trying to apply a blueprint to over 100 devices right now and get the same error message every time. At first thought it was the apps because it seemed to be hanging while downloading them. So I removed them from the blueprint and attmepted to apply again only to get the same errorAn underlying service (ACUInternetServiceContext) unexpectedly quit. [ConfigurationUtilityKit.error – 0x68 (104)]
Topic:
Developer Tools & Services
SubTopic:
General
Tags: