We have an App built with a static Lib we are also building for distribution. The App and Lib run fine in Xcode debugger or when loaded on the device by Xcode debugging sess
The chance is very high that your build settings are different between AdHoc (Release) and Debug.
Did you double-check all build-settings values?
Especially look at the ARC (automatic reference counting) settings.