Closed kenji21 closed 11 years ago
There's an issue with install script on latest Xcode, compile from within Xcode yourself and replace installed binary (not sure where exactly it's copied - the script was contribution of a user and I never used it, but take a look into the script itself).
Tom
On Fri, Aug 10, 2012 at 10:54 AM, kenji21 notifications@github.com wrote:
Just clone the repo, and executed the script to install, first launch with --help led to :
Process: bash [55139] Path: /bin/bash Identifier: bash Version: ??? (???) Code Type: X86-64 (Native) Parent Process: bash [54531]
Date/Time: 2012-08-10 10:53:12.275 +0200 OS Version: Mac OS X 10.7.4 (11E53) Report Version: 9
Interval Since Last Report: 139114 sec Crashes Since Last Report: 4 Per-App Crashes Since Last Report: 4 Anonymous UUID: CE117AE7-E495-45E9-BF3C-AD5E6E9D79E2
Crashed Thread: Unknown
Exception Type: EXC_BAD_ACCESS (SIGILL) Exception Codes: KERN_INVALID_ADDRESS at 0x00007fff5fc01028
Backtrace not available
Unknown thread crashed with X86 Thread State (64-bit): rax: 0x0000000000000055 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000 rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000000000000000 rsp: 0x0000000000000000 r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000000 r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000 rip: 0x00007fff5fc01028 rfl: 0x0000000000010203 cr2: 0x00007fff5fc01028 Logical CPU: 2
Binary images description not available
I opened the xcode project and setted the OSX_DEPLOYMENT_TARGET to OS X 10.7. Re-runned the install script, now it works.
— Reply to this email directly or view it on GitHubhttps://github.com/tomaz/appledoc/issues/236.
Got same crash with launching from xcode (reverting Deployment target to 10.8) :
Process: debugserver [55536] Path: /Volumes/VOLUME/*/appledoc Identifier: debugserver Version: ??? (???) Code Type: X86-64 (Native) Parent Process: debugserver [55535] Date/Time: 2012-08-10 11:01:39.905 +0200 OS Version: Mac OS X 10.7.4 (11E53) Report Version: 9 Interval Since Last Report: 139621 sec Crashes Since Last Report: 5 Per-App Crashes Since Last Report: 1 Anonymous UUID: CE117AE7-E495-45E9-BF3C-AD5E6E9D79E2 Crashed Thread: Unknown Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x00007fff5fc01028 Backtrace not available Unknown thread crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000 rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000000000000000 rsp: 0x0000000000000000 r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000000 r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000 rip: 0x00007fff5fc01028 rfl: 0x0000000000010202 cr2: 0x00007fff5fc01028 Logical CPU: 1 Binary images description not available
The script is ok, it just use xcodebuild (like we use it in continous integration). Just fixed it by setting the OSX_DEPLOYMENT_TARGET build setting to OSX 10.7. As I'm running on a 10.7 mac, seems to be the origin of the issue.
There's no 10.8 specific code in appledoc, so it should compile on 10.7 without issues. Setting deployment target to 10.7 should work on Lion. Some folks had trouble using install script though, that's why I suggested compiling directly within Xcode. Furthermore, you can run appledoc from within Xcode too - either without cmd line arguments to at least see missing arguments message, or you can set whatever arguments you wish inside scheme editor in Xcode. If this is working, then make sure you copy the binary from DerivedData folder to whatever location install script uses.
Got the crash above (debugserver) when running appledoc from within xcode (via Product -> Run). I use Xcode 4.4, and it setted the Base SDK to 10.8 (latest one).
Hm, works for me on Xcode 4.4 and 10.8. Don't have Lion machine with dev tools installed to test there...
I'd recommend setting a breakpoint into main function and see where it fails.
On Fri, Aug 10, 2012 at 11:19 AM, kenji21 notifications@github.com wrote:
Got the crash above (debugserver) when running appledoc from within xcode (via Product -> Run). I use Xcode 4.4, and it setted the Base SDK to 10.8 (latest one).
— Reply to this email directly or view it on GitHubhttps://github.com/tomaz/appledoc/issues/236#issuecomment-7637789.
Hmm, curiously after setting the break point, I got an error from Xcode :
"Your Mac runs a version of OS X which is lower than your project's minimum deployment target. Change your project's minimum deployment target or upgrade your version of Mac OS X."
So that's it - make sure you set deployment target to 10.7. That's an aspect of Xcode that may be confusing: there are two settings that control compiling target: deployment and base. Base is the one that's on top in the settings list for the project, while deployment is "burried" towards the bottom. To find it quickly, just search for "deployment target".
Closing this issue, there doesn't seem to be additional info and it's getting old :) Feel free to reopen or comment in case there's additional development.
Just clone the repo, and executed the script to install, first launch with --help led to :
I opened the xcode project and setted the OSX_DEPLOYMENT_TARGET to OS X 10.7. Re-runned the install script, now it works.