Kentzo / F-Script

Unofficial fork
http://www.fscript.org
166 stars 27 forks source link

Problem loading framework into lldb #7

Closed mts749 closed 10 years ago

mts749 commented 10 years ago

Environment: OSX 10.9.2, Xcode 5.1 command line tools. lldb is attached to TextEdit

I am using the FScript framework from the 10.9 distribution at: https://github.com/Kentzo/F-Script/releases/tag/v2.2

When I attempt to load the 2.2 framework into lldb it fails. At first I thought it was that some files were marked with "com.apple.quarantine" so I eliminated all the extended attributes using xattr checked the permission. lldb still refuses to load the framework:

(lldb) attach 25300
Process 25300 stopped
Executable module set to "/Applications/TextEdit.app/Contents/MacOS/TextEdit".
Architecture set to: x86_64-apple-macosx.
(lldb) p (BOOL)[[NSBundle bundleWithPath:@"/Library/Frameworks/FScriptFramework.framework"] load]
(BOOL) $0 = NO

However, it works when I use the older framework from http://www.fscript.org/download/download.htm. Here is the output from lldb:

(lldb) p (BOOL)[[NSBundle bundleWithPath:@"/Library/Frameworks/FScript.framework"] load]
(BOOL) $1 = YES

Any ideas on why the newer framework won't load?

Kentzo commented 10 years ago

Have you tried https://github.com/Kentzo/F-Script/releases/tag/v2.2.1 ?

mts749 commented 10 years ago

I hadn't. Worked like a charm. Thanks for the pointer,