Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-17-2010, 10:27 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 1
perfomante is on a distinguished road
Default 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.
perfomante is offline   Reply With Quote
Reply

Bookmarks

Tags
dynamic, external, framework, xcode

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 348
5 members and 343 guests
freewind, givensur, lendo, Newbie123, PlutoPrime
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,894
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:52 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0