-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Dave;=0D
=0D
First question, is that I've just posted the release 2.2.2 of the =0D
framework which should solve a #import problem (not related at all with =
=0D
your question, but might help to try, if you have another trouble =0D
later... I guess indeed you either have 2.2.2 or already solved the =0D
#import problem by yourself)...=0D
=0D
Answer to your question now:=0D
the framework (SMySQL_bundled.framework) should be copied in your =0D
application's bundle, for that to be made automatically by Xcode, you =0D=
have to add a 'New Copy Files Buidl Phase' (sub-menu of Project -> New =0D=
Build Phase).=0D
In this build phase you should make the destination 'Frameworks', and =0D=
drag/drop the framework icon (from the left pane in Xcode file list) to =
=0D
the path text-field. This will make Xcode copy the framework in the =0D
frameworks folder of your application bundle.=0D
=0D
(small explanation of the error message you get is that dyld (the =0D
dynamic library linker, started at launch of your application) is =0D
looking for the framework where it should be =0D
- -@executable_path/../Frameworks/SMySQL_bundled.framework/Versions/A/ =0D=
SMySQL_bundled-, but cannot find it because Xcode have not copied it =0D=
there).=0D
=0D
Hope this helps and will solve your problem.=0D
=0D
Post back to the list if you have further questions/problems.=0D
=0D
Serge.=0D
=0D
=0D
Le 29 f=E9vr. 04, =E0 22:06, Dave Winter a =E9crit :=0D
=0D
> Sorry to Serge as I just e-mailed you directly - I just found this =0D=
> mailing list on the Source-Forge page.=0D
>=0D
> I'm trying to built a Cocoa application that will connect to a MySQL =0D=
> database over the Internet.=0D
>=0D
> I'd like to bundle the framework in with my application - however, =0D=
> after adding the framework to my project in Xcode, I immediately try =0D=
> to build the project (before starting any other work at all - this is =
=0D
> a blank Cocoa application with only the framework added).=0D
>=0D
> When I do so, I get the following error:=0D
>=0D
> -----------=0D
>=0D
> dyld: =0D
> /Users/davidwinter/Projects/cbn_cw/build/cbn_cw.app/Contents/MacOS/ =0D=
> cbn_cw can't open library: =0D
> @executable_path/../Frameworks/SMySQL_bundled.framework/Versions/A/ =0D=
> SMySQL_bundled (No such file or directory, errno =3D 2)=0D
>=0D
> cbn_cw has exited due to signal 5 (SIGTRAP).=0D
>=0D
> -----------=0D
>=0D
> I noticed on the mailing list archive that someone else had this =0D
> problem - but I didn't see a clear resolve for it.=0D
>=0D
> Is it me?=0D
>=0D
> I don't have MySQL installed - as I'd like to connect to a database =0D=
> over the Internet - not on my local machine. So I don't think that's =0D=
> the problem.=0D
>=0D
> Am I adding the framework correctly in Xcode? I go to Project > Add =0D=
> Frameworks. I then use the Default settings.=0D
>=0D
> The framework itself I have copied into my project directory.=0D
>=0D
> I'm lost :( And I'm new to Cocoa - so that probably makes things more =
=0D
> difficult. I usually work with PHP and MySQL for web applications. =0D=
> However, I'd really like to make a front-end in Cocoa for one of my =0D=
> web applications.=0D
>=0D
> Any help anyone can give will be much appreciated. Especially if =0D
> someone has had this problem and found a way to get it working.=0D
>=0D
> Thanks.=0D
>=0D
> Dave Winter.=0D
>=0D
>=0D
>=0D
> -------------------------------------------------------=0D
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.=0D
> Build and deploy apps & Web services for Linux with=0D
> a free DVD software kit from IBM. Click Now!=0D
> http://ads.osdn.com/?ad_id=3D1356&alloc_id=3D3438&op=3Dclick=0D
> _______________________________________________=0D
> Mysql-cocoa-users mailing list=0D
> Mys...@li...=0D
> https://lists.sourceforge.net/lists/listinfo/mysql-cocoa-users=0D
>=0D
>=0D
- ----------------------------------------------------=0D
Serge Cohen=0D
=0D
GPG Key ID: 9CBB58FB=0D
- ----------------------------------------------------=0D
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)
iD8DBQFAQm7a5EPeG5y7WPsRAumwAKDR4iVAZ1rgkKERSh8qSCQvRsAFCgCgngQq
Il6VYSVNAxz7nDeJ2yrWgFA=3D
=3DwBr6
-----END PGP SIGNATURE-----
|