Hi Andrew, Sorry to say, but I've not played around with binding third-party frameworks. I'd have to run this under gdb to have any hope of answering this question :-(
What I would do in this situation is to start up the app, then switch to a terminal and attach gdb to the simulator process, type "continue" and wait for the crash, hoping that the backtrace I get from gdb would provide some clues. If that doesn't help you figure it out, please submit a bug report so that one of us can look into helping you debug this further. Hope that helps, Jeff On Mon, Oct 24, 2011 at 5:57 PM, Andrew Young <[email protected]>wrote: > Ok. So I've figured out that in order to bind to a 3rd party framework you > need to add these extra args. > > -F{path to frameworks} -framework {framework name} > > But now that the app can compile and deploy to the phone, it is crashing > after I click a button which in turn performs an async web call using > RestSharp saying: > > "Job appears to have crashed: Segmentation fault: 11" > > RestSharp seems like a pretty unrelated place in the code to crash in and > the project doesn't crash when I remove all traces of the 3rd party > framework. Crash reports seen in Xcode shows a different Exception Type > varies each time I run it making debugging difficult. > > EXC_BAD_ACCESS (SIGSEGV) KERN_PROTECTION_FAILURE at 0x2fd00fe0 > EXC_CRASH (SIGBUS) 0x00000000, 0x00000000 > EXC_BAD_ACCESS (SIGSEGV) KERN_INVALID_ADDRESS at 0x00000000 > > Am I missing any extra args here? > > On Monday, October 24, 2011 at 11:34, Andrew Young wrote: > > I noticed that the MonoTouch docs only describe how to bind to a static > lib but not how to bind to a .framework. Is this possible? > > On Monday, October 24, 2011 at 11:11, ayoung wrote: > > Jeff, > > I think my problem is not knowing how to bind to 3rd party frameworks. The > static lib is dependent on another .framework that isn't part of the normal > frameworks provided by apple. What are the extra args that I need to put in > for linking? > > Also, how would I write bindings against this 3rd party framework? Would it > be the same? > > Andrew. > > On Monday, October 24, 2011 at 7:45, Jeff Stedfast [via MonoTouch] wrote: > > Hi Andrew, > > I'm not sure where that error is coming from, but it sounds like maybe the > .a you are linking against is meant only for device. Does the native library > you bound include i386 symbols? > > You can use `file libMyThirdPartyLibrary.a` to find out if it is a > universal binary with support for multiple architectures (and which archs > those are). > > Jeff > > On Fri, Oct 21, 2011 at 7:48 PM, Andrew Young <[hidden > email]<http://user/SendEmail.jtp?type=node&node=3933364&i=0> > > wrote: > > I'm building a static lib in Xcode that links to a 3rd party framework > (not a native iOS .framework). After creating the bindings and adding it to > my MonoTouch proj, I get a "Undefined symbols for architecture i386" from > mtouch. It is trying to reference a header that belongs to the 3rd party > framework. > > How should I handle this? > > _______________________________________________ > MonoTouch mailing list > [hidden email] <http://user/SendEmail.jtp?type=node&node=3933364&i=1> > http://lists.ximian.com/mailman/listinfo/monotouch > > > > _______________________________________________ > MonoTouch mailing list > [hidden email] <http://user/SendEmail.jtp?type=node&node=3933364&i=2> > http://lists.ximian.com/mailman/listinfo/monotouch > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://monotouch.2284126.n4.nabble.com/Binding-to-3rd-party-frameworks-tp3927102p3933364.html > To start a new topic under MonoTouch, email [hidden > email]<http://user/SendEmail.jtp?type=node&node=3934038&i=0> > To unsubscribe from MonoTouch, click here. > > > > ------------------------------ > View this message in context: Re: Binding to 3rd party > frameworks<http://monotouch.2284126.n4.nabble.com/Binding-to-3rd-party-frameworks-tp3927102p3934038.html> > Sent from the MonoTouch mailing list > archive<http://monotouch.2284126.n4.nabble.com/>at > Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch > > > > > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch > >
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
