Crash in unpacked sandboxed app

I have a sandboxed app (Grace) that runs really well in Xcode as developer  (no crashes or  assertions) , it passes the archive validation step that apple forces Apps to go through before pushing to the app store but when I unpack that archive and attempt to run the unpacked app  I get a crash at the very start when the main window constructor is call that the constrcutor calls setUsingNativeTItleBar (see trace)

I would really appreciate any pointers or idea that might help me figure out whats going wrong, I've never seen this problem in all the months ive been developing and have no idea what could be going wrong

ConsoleWindow::ConsoleWindow ()
  : juce::DocumentWindow (juce::String::empty , juce::Colour (227,227,227),     juce::DocumentWindow::allButtons, true )



Crashed Thread:  0  Juce Message Thread  Dispatch queue:

Exception Codes: EXC_I386_GPFLT

Thread 0 Crashed:: Juce Message Thread  Dispatch queue:
0   org.commonmusic.grace.mac         0x0000000100475f02 juce::DocumentWindow::getContentComponentBorder() + 34 (juce_DocumentWindow.cpp:257)
1   org.commonmusic.grace.mac         0x0000000100477012 juce::TopLevelWindow::recreateDesktopWindow() + 82 (juce_TopLevelWindow.cpp:256)
2   org.commonmusic.grace.mac         0x000000010046f984 juce::TopLevelWindow::setUsingNativeTitleBar(bool) + 84 (juce_TopLevelWindow.cpp:247)
3   org.commonmusic.grace.mac         0x000000010003708d ConsoleWindow::ConsoleWindow() + 173 (Console.cpp:389)
4   org.commonmusic.grace.mac         0x0000000100036fd5 ConsoleWindow::ConsoleWindow() + 21 (Console.cpp:429)
5   org.commonmusic.grace.mac         0x000000010006f0ba Grace::initialise(juce::String const&) + 1162 (Main.cpp:131)
6   org.commonmusic.grace.mac         0x00000001002be765 juce::JUCEApplicationBase::initialiseApp() + 197 (juce_ApplicationBase.cpp:256)
7   org.commonmusic.grace.mac         0x000000010047d675 juce::JUCEApplication::initialiseApp() + 21 (juce_Application.cpp:88)
8   org.commonmusic.grace.mac         0x00000001002be4de juce::JUCEApplicationBase::main() + 286 (juce_ApplicationBase.cpp:229)
9   org.commonmusic.grace.mac         0x00000001002be322 juce::JUCEApplicationBase::main(int, char const**) + 114 (juce_ApplicationBase.cpp:213)
10  org.commonmusic.grace.mac         0x0000000100070243 main + 51 (Main.cpp:329)
11  org.commonmusic.grace.mac         0x0000000100002074 start + 52



Rick Taube
Assoc. Prof. Composition/Theory
Chair, Composition/Theory Division
School of Music
University of Illinois at Urbana-Champaign
Fax: 1 217 244 7767
Vox: 1 217 244 2684


Are you overriding getBorderThickness() and doing something in there that could crash?

Ok after poking around I think this was caused by the Archive release command actually linking to  debug libs. WHen I remade those the error stopped.  THank you very much for your help, Jules!


best RIck