PDA

View Full Version : Using an ID3Tag Framework




bliblablo
Nov 9, 2008, 05:31 AM
Hey guys,

i just got an ID3 Framework to read out MP3 tags. The problem i have is, when i add the framework in xcode it wouldn't compile anymore.
Is there anything spezial i have to do? I downloaded the framework from here:
http://drewfamily.homemail.com.au/Cocoa_-_ID3Tag_framework.html
I unzipped it and put the ID3.framework folder to System->Library->Frameworks
In Xcode i added it by clicking the Frameworksfolder and choose "Add-> Existing Frameworks..." I chose the ID3.framework folder and it was there (And seemed to be ok)
As soon as it's there i get a compiler error:

Building target “AufgabenListe” of project “AufgabenListe” with configuration “Debug” — (1 error)
cd /Users/ - myname - /Documents/Xcode/AufgabenListe
/Developer/usr/bin/gcc-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/Users/ - myname - /Documents/Xcode/AufgabenListe/build/Debug -F/Users/ - myname - /Documents/Xcode/AufgabenListe/build/Debug -filelist /Users/ - myname - /Documents/Xcode/AufgabenListe/build/AufgabenListe.build/Debug/AufgabenListe.build/Objects-normal/i386/AufgabenListe.LinkFileList -mmacosx-version-min=10.5 -framework Cocoa -framework ID3 -o /Users/ - myname - /Documents/Xcode/AufgabenListe/build/Debug/AufgabenListe.app/Contents/MacOS/AufgabenListe
ld: framework not found ID3
collect2: ld returned 1 exit status

But the ID3.framework folder is there for sure... Do i need to register this framework somehow somewhere?
I tried to contact the author of the framework but his email is not working any more.
Would be great if somebody could help me (i'm new to mac and xcode ;) )

Greetings, BliBlaBlo



Sayer
Nov 9, 2008, 08:01 AM
You have to copy the framework into the Bundle of the app using a new build phase called "Copy files."

THen it will work.

bliblablo
Nov 9, 2008, 10:23 AM
Sorry, i'm not sure if i understood you correctly.
I should copy the ID3.framework folder into the directory where i have my app?
I'm new to macs and to XCode, so i'm not that familliar :) (and my english isn't perfekt ass well :) )
Would be great if you could give me a "dummy" explanation ;)

Greetings, BliBlaBlo

bliblablo
Nov 10, 2008, 11:43 AM
Ok, i managed to do that... no more compile Error.
I did it by right clicking "Target" and then ->Add->New Build Phase->New Copy Files Build Phase
As the path i draged in the "ID3.framework" and it filled in the path "/System/Library/Frameworks/ID3.framework"

Now compiling works...

But i still can't call:

#import <ID3/MP3Header.h>

What do i have to do to manage this?

Thx for helping :)

bliblablo
Nov 11, 2008, 01:50 PM
nobody knows how that works???

Greetings :)

bliblablo
Nov 14, 2008, 08:00 AM
So really nobody????
I guess for a pro this is no problem at all.... So i can't believe nobody can help me...

Greetings...

wojciechgabrys
Nov 14, 2008, 05:08 PM
I'm not a pro, but here it goes :P

Grab your ID3.framework, and drag it into your XCode window, directly to Frameworks > Linked Frameworks (in your project sidebar, as shown below):
http://img221.imageshack.us/img221/7100/picture5sa4.png

In the sheet, that rolls down after releasing your mouse, be sure to check Copy items to destination group's folder (if needed)
http://img371.imageshack.us/img371/5448/picture6zw7.png

The last thing to do is to include ID3.framework header file:

#import "ID3/TagAPI.h"

Final notes:
The ID3.framework is already in your project directory, so there's no need to create Copy Files Build Phase. Your compiled application folder structure should more or less like this:
http://img379.imageshack.us/img379/9892/picture7vd8.png


Drop me a line at: (skypeID: pixelique) or (ICQ: 85055819) and tell me how it worked. I'm developing an app based on ID3.framework right now, so we could help each other during development ;)

good luck, take care!
pixel

bliblablo
Nov 15, 2008, 07:06 AM
Thank you so much :)
Great!!!!!!!!