I am developing an iphone application using "AVAudioPlayer" for playing a ".wav" file . For this i am adding header file "#import " . But while compiling i am getting error like :
".objc_class_name_AVAudioPlayer", referenced from:
literal-pointer#__OBJC#__cls_refs#AVAudioPlayer in WebviewController.o
ld: symbol(s) not found collect2: ld returned 1 exit status" .
So can you please tell me the solution for this type of error....
Thanks & Regards,
KamalBhr
"
You need to add the AVFoundation.framework framework to your project.
Related
ld: warning: in /Users/kunwarhanda/Documents/Augmented/WikitudeAPI/libWikitudeAPI.a, missing required architecture i386 in file
Undefined symbols:
"_OBJC_CLASS_$_WTPoi", referenced from:
objc-class-ref-to-WTPoi in AugmentedAppDelegate.o
objc-class-ref-to-WTPoi in CustomMenuButtonDelegateImpl1.o
"_OBJC_CLASS_$_WikitudeARCustomMenuButton", referenced from:
objc-class-ref-to-WikitudeARCustomMenuButton in AugmentedAppDelegate.o
"_OBJC_CLASS_$_WikitudeARView
Controller", referenced from:
objc-class-ref-to-WikitudeARViewController in AugmentedAppDelegate.o
objc-class-ref-to-WikitudeARViewController in CustomMenuButtonDelegateImpl1.o
objc-class-ref-to-WikitudeARViewController in CustomMenuButtonDelegateImpl3.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
**I have cross checked that libWikitudeAPI.a is imported still does'nt know about this error and by the way m new to iPhone
Please can some one help me in this Thanks in advance **
The problem is that the library is only for device not for simulator. Try debug your app and use NSZombieEnabled environment variable for finding actual crash reasons.
I using the code from Apple for MailComposer but when I try to run my app i get a error message and I can't build my app.
The message error I get:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_MFMailComposeViewController", referenced from:
objc-class-ref in InfoMailComposerViewController.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
Know anybody what this means??
thanks in advance
You have to include the MessageUI.framework in your project.
If you are using Xcode 4:
Select the Project then highlight your active Target.
Select the "Build Phases" Tab
Expand "Link Binary With Libraries"
Hit the '+' button
Select MessageUI.framework
The above answer by MarkPowell works like a charm.
I first tried it on the CordovaLib.xcodeproj file.
It did not work, then I tried it at Testing.xcodeproj. Then the errors disappeared and worked magically.
Im trying to use ALAssetsLibrary to load images fromthe photo album
of iphone/ipad.Im getting the following warning while doing build and archive.
ld: warning: in /Users/mark/Projects/Speech_Recognition/Protoype_Test1/AssetsLibrary.framework/AssetsLibrary, file was built for i386 which is not the architecture being linked (armv7)
Also i get the error
"_OBJC_CLASS_$_ALAssetsLibrary", referenced from:
objc-class-ref-to-ALAssetsLibrary in PhotoPuller.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
There is no error while running in simulator , but there im not getting any images returned to me
I have ran out of ideas about what to do
You haven't linked to the AssetsLibrary framework or your SDK setting isn't what you think it is.
please add the these two frame worksin to your project
<AssetsLibrary/AssetsLibrary.h>
<AVFoundation/AVFoundation.h>
I have to integrate Paypal API into my iPhone App. I have included required libraries also. But I am getting only one following error.
"_SecTrustEvaluate", referenced from:
-[PPMobileConnect connection:didReceiveAuthenticationChallenge:]
in libPayPalMEP.a(PPMobileConnect.o)
-[AdaptivePaymentsSOAP11BindingOperation
connection:didReceiveAuthenticationChallenge:]
in libPayPalMEP.a(AdaptivePayments.o)
ld: symbol(s) not found collect2: ld
returned 1 exit status
How could I resolve this.
I include libxml2,libz also.
What i am missing?
Thanks
karthik
Add the Security.framework. Hope it help!
I've been fighting this framework error for days now. I have included the MessageUI framework from the iphone3.0sdk and imported the header file(MessageUI/MessageUI.h)
Anyone know what this error means?
collect2: ld returned 1 exit status
symbol(s) not found
literal-pointer#_OBJC#__cls_refs#MFMailComposeViewController
".objc_class_name_MFMailComposeViewController", referenced from:
Here is some output from the build log:
ld warning: in /Users/me/iphone/myApp/MessageUI.framework/MessageUI, missing required architecture i386 in file
Undefined symbols:
".objc_class_name_MFMailComposeViewController", referenced from:
literal-pointer#__OBJC#__cls_refs#MFMailComposeViewController in myViewController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
You forgot to link to the MessageUI.framework or you're linking to the wrong version.
Here's the right way to add frameworks:
Double-click your target
Select the main tab
Add the framework by pressing the plus-button in the frameworks section
Now you should be able to build for the simulator and the device.
Edit:
The warning from ld looks like you copied the MessageUI.framework from the simulator SDK to your project directory. Delete it and ld should find the right one (the one in your current SDK).
You accidentally copied the iPhone SDK Framework into your project directory (on disk). Open your project directory (where you keep the project on disk) and delete the iPhone SDK Framework directory.
Rebuild.