• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Build cocoa framework issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Build cocoa framework issue


  • Subject: Build cocoa framework issue
  • From: "Cloud.Student" <email@hidden>
  • Date: Mon, 1 Oct 2007 05:37:19 +0800

Hi list.
I want to build a customized cocoa framework.I want to package the GSL science library into a framework for an easy use. I have builded the gsl library from unix command line. Now it can run perfectly well.
However, when I package the builded library to a framework, the issue came.


At first, I created a cocoa framework and included all external library with headers. The framework was finished.
Then I created an application for testing. I imported the framework created previously. Without a line of code, the console prompted like these: " /usr/bin/ld: warning can't open dynamic library: /Developer/ SDKs/MacOSX10.4u.sdk/usr/local/lib/libgsl.0.dylib referenced from: / Users/Tiger/Project/GSLTesting/../../Desktop/GSL/gsl.framework/gsl (checking for undefined symbols may be affected) (No such file or directory, errno = 2)"
It is very odd, for I have included the requested lib files into the gsl.framework.


The I write some code to test the framework:
#import <gsl/gsl_math.h>
int main(int argc, char *argv[])
{
double result = gsl_max(10.0,50.0);
return NSApplicationMain(argc, (const char **) argv);
}
The application ended abnormally:
dyld: Library not loaded: /Users/Tiger/Library/Frameworks/ gsl.framework/Versions/A/gsl
Referenced from: /Users/Tiger/Project/GSLTesting/build/Debug/ GSLTesting.app/Contents/MacOS/GSLTesting
Reason: image not found


GSLTesting has exited due to signal 5 (SIGTRAP).
There must be something wrong when I builded the framework. So anyone can tell me what is wrong here, or is willing to give me any instruction to build a good framework?
Thank you in advanced.
PS: I am a student who is learning Mac OS X programming now. So some help is really needed. Any help is appreciated.
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Build cocoa framework issue
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: nstextfield subclass in nsslider subclass won't allow editing
  • Next by Date: What cause EXC_BAD_ACCESS?
  • Previous by thread: nstextfield subclass in nsslider subclass won't allow editing
  • Next by thread: Re: Build cocoa framework issue
  • Index(es):
    • Date
    • Thread