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>
Related
All,
I have installed the Stripe SDK and I have added :
PassKit.framework
Security.framework
Foundation.framework
QuartzCore.framework
When I build the application (its empty) all it has got is my public key.
I get :
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_Stripe", referenced from:
__TMaCSo6Stripe 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)
Have i got enough frameworks or am I missing any ?
Any help would be brilliant
It sounds like you're not properly #importing Stripe.h. You'll need to create a bridging header for your project that contains #import <Stripe/Stripe.h>. For more, see Apple's guide to Swift/Objective-C interoperability: https://developer.apple.com/library/ios/documentation/swift/conceptual/buildingcocoaapps/MixandMatch.html
Best,
Jack
I Have added Addmob sdk in my project and even added all framework needed. But m getting below error for StoreKit framework even i have added it in my project but still getting error..
ld: warning: directory not found for option '- L/Users/company/Downloads/projectname/GoogleAdMobAdsSdkiOS-6.4.2/Add- ons/GoogleAnalyticsiOS_2.0beta4/Library'
ld: warning: directory not found for option '-L/Users/company/Downloads/projectname/GoogleAdMobAdsSdkiOS-6.4.2'
ld: warning: ignoring file /Users/company/Downloads/StoreKit.framework/StoreKit, missing required architecture i386 in file /Users/company/Downloads/StoreKit.framework/StoreKit (2 slices)
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SKStoreProductViewController", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADOpener.o)
"_SKStoreProductParameterITunesItemIdentifier", referenced from:
-[GADOpener openInAppStore:fallbackURLString:] in libGoogleAdMobAds.a(GADOpener.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I search a lot but in every post its sid to add Storkit.. but i have already added it but still getting error. even i have cleaned the project a lot of time.
Just ensure that you have added the following libraries,
1.AudioToolbox
2.MessageUI
3.SystemConfiguration
4.CoreGraphics
Also the frameworks,
1.MessageUI.framework
2.StoreKit.framework
3.SystemConfiguration.framework
According to your error message there is a problem with StoreKit.framework...Please verify that...
Refer: build error when add Admob in iOS app
Add AdSupport.framework, also make it as optional
It says that your StoreKit binary is not build for i386. This should not happen with the default one. Did you download if separately from somewhere? You can find the default here:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks/StoreKit.framework
Use that.
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'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.
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.