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.
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.
I started from scratch and added the frameworks more carefully, and now it works. (AVFoundation and MediaPlayer frameworks, and in AppDelegate.h, added: #import ).
Replies
Follow the instructions here https://developer.apple.com/library/ios/#recipes/xcode_help-project_editor/Articles/AddingaLibrarytoaTarget.html#//apple_ref/doc/uid/TP40010155-CH17-SW1
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesomeand in AppDelegate.h, added: #import ).
So your post did help. Thanks.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome