using external frameworks
Hi, i'm developing an application which makes use of an external framework written in C.
I've been able to use the framework in my app just by adding the .ar archive into my project and my application in the simulator runs reasonably well.
The problem arises when I try to deploy the application onto the device. First, the external framework doesn't even gets copied... I've fixed thin just by adding another task to the building process. But when I run the application, it fails. I can see the crash report and what I can only see is that a thread in my application failed for no reason ( my framework runs in its own thread ):
"Unknown thread crashed with unknown flavor: 5, state_count: 1"
Taking a look at the stacktrace one can see that the problem is that several threads make use of my external framework and in the binary map of the loaded libraries I cannot find any reference to my framework. Seems that the application fails when trying to dynamically load it ( as it seems not finding it ).
I have the code of the framework and in theory I would be able to integrate the C code under my project in Xcode along with the obj-c part of the application ( i forsee a big effort for this ) ... but Isn't there a more convenient way of using my framework in a compiled way without having to mess my code with the framework code?
This way I would be able to reuse the compiled code in other applications. And would benefit from updates on my framework code...
Last edited by perfomante; 08-17-2010 at 11:01 AM.
|