Professional Web Applications Themes

MySQL-Cocoa Framework by Serge Cohen in Xcode? - Mac Programming

Has anyone here been able to bundle the MySQL-Cocoa framework into Xcode and build a working app? http://mysql-cocoa.sourceforge.net/ I'm trying to build a Cocoa application that will connect to a MySQL database over the Internet. I'd like to bundle the framework in with my application - however, after adding the framework to my project in Xcode, I immediately try to build the project (before starting any other work at all - this is a blank Cocoa application with only the framework added). When I do so, I get the following error: ----------- dyld: /Users/davidwinter/Projects/cbn_cw/build/cbn_cw.app/Contents/MacOS/cbn_cw can't open library: executable_path/../Frameworks/SMySQL_bundled.framework/Versions/A/SMySQL_bundled (No such ...

  1. #1

    Default MySQL-Cocoa Framework by Serge Cohen in Xcode?

    Has anyone here been able to bundle the MySQL-Cocoa framework into
    Xcode and build a working app?

    http://mysql-cocoa.sourceforge.net/

    I'm trying to build a Cocoa application that will connect to a MySQL
    database over the Internet.

    I'd like to bundle the framework in with my application - however,
    after adding the framework to my project in Xcode, I immediately try to
    build the project (before starting any other work at all - this is a
    blank Cocoa application with only the framework added).

    When I do so, I get the following error:

    -----------

    dyld:
    /Users/davidwinter/Projects/cbn_cw/build/cbn_cw.app/Contents/MacOS/cbn_cw
    can't open library:
    executable_path/../Frameworks/SMySQL_bundled.framework/Versions/A/SMySQL_bundled
    (No such file or directory, errno = 2)

    cbn_cw has exited due to signal 5 (SIGTRAP).

    -----------

    I noticed on the mailing list archive (for the project on SourceForger)
    that someone else had this problem - but I didn't see a clear resolve
    for it.

    Is it me?

    I don't have MySQL installed - as I'd like to connect to a database
    over the Internet - not on my local machine. So I don't think that's
    the problem.

    Am I adding the framework correctly in Xcode? I go to Project > Add
    Frameworks. I then use the Default settings.

    The framework itself I have copied into my project directory.

    I'm lost :( And I'm new to Cocoa - so that probably makes things more
    difficult. I usually work with PHP and MySQL for web applications.
    However, I'd really like to make a front-end in Cocoa for one of my web
    applications.

    Any help anyone can give will be much appreciated. Especially if
    someone has had this problem and found a way to get it working.

    Thanks.

    Dave Winter.

    Dave Guest

  2. #2

    Default Re: MySQL-Cocoa Framework by Serge Cohen in Xcode?

    In article <2004022921471716807%davewintermaccom>,
    Dave Winter <com> wrote:
     

    That will cause XCode to link against that framework, but has no effect
    on whether the framework is included in the application bundle (consider
    that you're also presumably linking against Cocoa, but not including
    Cocoa with your application).

    I think you'll need to add a "copy files" build phase to copy the
    framework into the application bundle.

    --
    Tom "Tom" Harrington
    Macaroni, Automated System Maintenance for Mac OS X.
    Version 2.0: Delocalize, Repair Permissions, lots more.
    See http://www.atomicbird.com/
    Tom Guest

  3. #3

    Default Re: MySQL-Cocoa Framework by Serge Cohen in Xcode?

    On 2004-02-29 22:30:13 +0000, Tom Harrington
    <no.spam.dammit.net> said:
     
    >
    > That will cause XCode to link against that framework, but has no effect
    > on whether the framework is included in the application bundle
    > (consider that you're also presumably linking against Cocoa, but not
    > including Cocoa with your application).
    >
    > I think you'll need to add a "copy files" build phase to copy the
    > framework into the application bundle.[/ref]

    Thanks Tom - this was the problem.

    I however had trouble with adding this new build phase. I managed to
    contact the author of the framework who helped me get it working with
    Xcode.


    Dave Guest

Similar Threads

  1. Replies: 2
    Last Post: December 8th, 05:22 PM
  2. Cocoa + Xcode + GMP = What the?
    By M in forum Mac Programming
    Replies: 11
    Last Post: November 22nd, 11:46 PM
  3. How to add framework to a target in Xcode?
    By Eric in forum Mac Programming
    Replies: 4
    Last Post: October 29th, 04:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139