-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set debug point #20
Comments
I tried that and not working. The only change i made is to change signing's Team and use "Automatically manage signing" and change target of debug-objc's min target version to 10.14 to match mine. What's your tested os & xcode version? Maybe I need to update xcode and os? |
Unfortunately updating to Catalina did not fix it either. |
This is the output: |
the path of the runtime told that your app loaded the system version of the binary, so the breakpoint didn't make sense, check the snapshot of my screen, you can see the demo loaded the binary which was compiled from the project. maybe you can check the build location of the runtime and your demo app, make sure the location of these two was same. |
How are you doing this? The |
I don’t know how to use Xcode. I just did |
maybe you can check the build location of the runtime and your demo app, make sure the location of these two was same. |
They are the same both pointing to "build" path.
[image: image.png]
[image: image.png]
…On Wed, Apr 1, 2020 at 5:05 AM RetVal ***@***.***> wrote:
I don’t know how to use Xcode.
I just did
‘’’
DYLD_INSERT_LIBRARIES=path/to/libobjc.A.dylib lldb path/to/debug-objc
‘’’
maybe you can check the build location of the runtime and your demo app,
make sure the location of these two was same.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABIWVZEYWZGYZ7JKVRUBJSDRKMUXVANCNFSM4LSEBUYA>
.
|
I have the same problem, try everything i can do but none of them worked, so I give up the newest version,and try compile 756.2 which Git commit is 20d965f,and it worked!hope it can help |
|
ba21fe7 this commit worked for me on Mojave and Catalina. (756.2 20d965f did not). Thanks @programingHaozi for the idea to try other commits. |
Maybe you can check the SIP status of your machine, typing |
After I set SIP disabled and compile, compile 799.1 an error occurred dyld: lazy symbol binding failed: Symbol not found: _task_restartable_ranges_register dyld: Symbol not found: _task_restartable_ranges_register and commit 20d965f compile successed which failed when SIP was enabled by the way ,can I debug on iOS platform? |
is a new macOS 10.15 symbol. I'm guessing you just need to update your OS + Xcode. |
@wsdwsd0829 any update? |
I am good with a previous commit for now.
Did not want to disable this: csrutil status
Thanks.
…On Tue, Apr 14, 2020 at 5:32 AM RetVal ***@***.***> wrote:
Maybe you can check the SIP status of your machine, typing csrutil status
in your terminal, please make sure the status was disabled. I tested this
using an empty machine and couldn't load the custom version of the runtime
when the SIP was enabled, hope it make sense.
@wsdwsd0829 <https://github.com/wsdwsd0829> any update?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABIWVZH3GN4AJSGIVLX6GFDRMRJVPANCNFSM4LSEBUYA>
.
|
This worked for me. 799.1 and 756.2, but not for objc.750 |
Mac OS 10.15.4,Xcode 11.4. I have the same problem,how to solved? |
TARGETS -> debug-objc -> Build Settings -> Enable Hardened Runtime = NO |
thanks |
unfortunately�, it does not work for me. 😞 |
work for me by disable csrutil😀 |
Good solution |
save my day time |
really really thanks, I almost give up... |
|
It's worked on Catalina, but not on Big Sur. |
kyson老师的小专栏里说的很清楚了:https://xiaozhuanlan.com/runtime |
When I run debug-objc binary e.g. id obj = [[NSObject alloc] init];
the debug point +alloc is not triggering in NSObject.mm
Mac version:10.14.6 Xcode: Version 11.3.1
Do you know why and how I can fix it? Thanks.
The text was updated successfully, but these errors were encountered: