Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID
Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.

AVAudioPlayer in my AppDelegate

Custom BonbonsCustom Bonbons Posts: 12Registered Users
Hi,
I am trying to create a AVAudioPlayer in my AppDelegate, I am even referring - word for word - from an example from the iOS5 Programming Cookbook (quite a good book generally).

However, I am getting these 4 related Apple Mach-O Linker (Id) Error build errors.
The details look like this:
Undefined symbols for architecture i386:
\"_OBJC_CLASS_$_AVAudioSession\", referenced from:
objc-class-ref in AppDelegate.o
\"_OBJC_CLASS_$_AVAudioPlayer\", referenced from:
objc-class-ref in AppDelegate.o
\"_AVAudioSessionCategoryPlayback\", referenced from:
___57-[AppDelegate application:didFinishLaunchingWithOptions:]_block_invoke_0 in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)


I have added the framework and its #import.

Has anyone had this problem before, or know what it is referring to?

It's been bugging me all day, I would be very appreciative of an explanation from someone! Thanks.
Post edited by Custom Bonbons on

Replies

Sign In or Register to comment.