Build failed - symbol(s) not found for architecture armv7 - zxing

I am using the library ZXingWidget, CocoaTouchBarcodes and I have an error when i try to build my project, it worked before Xcode 4.5 but now it trashes.
If i try with an armv6 architecture only it works but with armv7 it doesn't work...
Here the error log :
Undefined symbols for architecture armv7:
"_OBJC_METACLASS_$_UIControl", referenced from:
_OBJC_METACLASS_$_UIDickBar in UIDickBar.o
"_UIGraphicsGetCurrentContext", referenced from:
-[MBProgressHUD drawRect:] in MBProgressHUD.o
-[MBRoundProgressView drawRect:] in MBProgressHUD.o
-[RoundedUITableViewMask drawRect:] in RoundedUITableView.o
-[GradientButton drawRect:] in GradientButton.o
-[UIDickBar drawRect:] in UIDickBar.o
-[Radar drawRect:] in Radar.o
-[RadarViewPortView drawRect:] in RadarViewPortView.o
...
(...)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have already searched on those links but they don't work for me.
Linking Error in Xcode
ZxingWidget archive error on ios6.0
Undefined symbols for architecture armv7
Undefined symbols for architecture armv7, ld: symbol(s) not found for architecture armv7 - what to do?

Related

Compilation error: ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I am facing this error in compiling a project. Basically its showing error for Material components pod. Here is the detail error:
ld: warning: ignoring file /Users/rj/Library/Developer/Xcode/DerivedData/ProjectName/Build/Products/Stage-iphonesimulator/MDFInternationalization/MDFInternationalization.framework/MDFInternationalization, missing required architecture i386 in file /Users/rj/Library/Developer/Xcode/DerivedData/ProjectName/Build/Products/Stage-iphonesimulator/MDFInternationalization/MDFInternationalization.framework/MDFInternationalization (2 slices)
Undefined symbols for architecture i386:
"_MDFInsetsMakeWithLayoutDirection", referenced from:
-[MDCCollectionViewTextCell contentWrapperFrame] in MDCCollectionViewTextCell.o
-[MDCNavigationBar layoutSubviews] in MDCNavigationBar.o
"_MDFTrailingMarginAutoresizingMaskForLayoutDirection", referenced from:
-[MDCCollectionViewCell updateInterfaceForEditing] in MDCCollectionViewCell.o
-[MDCCollectionViewTextCell commonMDCCollectionViewTextCellInit] in MDCCollectionViewTextCell.o
"_MDFInsetsFlippedHorizontally", referenced from:
-[MDCFloatingButton insetBoundsForBounds:] in MDCFloatingButton.o
"_MDFLeadingMarginAutoresizingMaskForLayoutDirection", referenced from:
-[MDCCollectionViewCell updateInterfaceForEditing] in MDCCollectionViewCell.o
"_MDFRectFlippedHorizontally", referenced from:
-[MDCAlertControllerView layoutHorizontalButtons:actionSize:] in MDCAlertControllerView+Private.o
-[MDCAlertControllerView layoutVerticalButtons:] in MDCAlertControllerView+Private.o
-[MDCChipFieldTextField textRectForBounds:] in MDCChipField.o
-[MDCChipField layoutSubviews] in MDCChipField.o
-[MDCChipView layoutSubviews] in MDCChipView.o
-[MDCCollectionViewCell layoutForegroundSubviews] in MDCCollectionViewCell.o
-[MDCCollectionViewCell drawSeparatorIfNeeded] in MDCCollectionViewCell.o
...
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
As a solution i tried removing and reinstalling pods, clearing derive data and some other solutions from google. Still facing this same error.
Any help is appreciated.
Xcode 13.2, Swift

Issue in adding google Analytics to iOS

After adding the libGoogleAnalytics.a CFNetwork and libsqlite3.0.dylib frameworks, and added the GANTracker.h into my AppDelegate.m
I get this error:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_GANTracker", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
and the app won't even compile. My app is aimed at iOS 5.0

errors in Sending email in iPhone

I'm trying to create application that sends email
I used classes like
SKPSMTPMessage , NSStream+SKPSMTPExtensions, NSData+Base64Additions, HSK_CFUtilities, Base64Transcoder
but it gives me the following errors
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SKPSMTPMessage", referenced from:
objc-class-ref in MFViewController.o
"_kSKPSMTPPartContentTransferEncodingKey", referenced from:
-[MFViewController sendMail:] in MFViewController.o
"_kSKPSMTPPartContentTypeKey", referenced from:
-[MFViewController sendMail:] in MFViewController.o
"_kSKPSMTPPartMessageKey", referenced from:
-[MFViewController sendMail:] in MFViewController.o
"_CFHostCreateWithName", referenced from:
+[NSStream(SKPSMTPExtensions) getStreamsToHostNamed:port:inputStream:outputStream:] in NSStream+SKPSMTPExtensions.o
+[NSStream(SKPSMTPExtensions) getStreamsToHostNamed:port:inputStream:outputStream:] in SKPSMTPMessage.o
"_CFStreamCreatePairWithSocketToCFHost", referenced from:
+[NSStream(SKPSMTPExtensions) getStreamsToHostNamed:port:inputStream:outputStream:] in NSStream+SKPSMTPExtensions.o
+[NSStream(SKPSMTPExtensions) getStreamsToHostNamed:port:inputStream:outputStream:] in SKPSMTPMessage.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
keep in mind that I'm using Xcode 4.3 ,
what shall I do to solve this??
After adding the CFNetwork framework and SystemConfiguration framework ,
the number of errors decreased from 6 to 4 and it is now
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SKPSMTPMessage", referenced from:
objc-class-ref in MFViewController.o
"_kSKPSMTPPartContentTransferEncodingKey", referenced from:
-[MFViewController sendMail:] in MFViewController.o
"_kSKPSMTPPartContentTypeKey", referenced from:
-[MFViewController sendMail:] in MFViewController.o
"_kSKPSMTPPartMessageKey", referenced from:
-[MFViewController sendMail:] in MFViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This error message means that those classes search some objects in a framework that you haven't linked to your project. Here you can found what framework do you need: the CFNetwork framework.
I hope it helps!
EDIT
The other 4 errors might be caused by the incorrect importation of the SKPSMT classes. If that classes are downloaded as a library, you'll also need to link your app with that library.
Try adding the following linker flags:
OTHER_LDFLAGS = -lz -lxml2 -ltidy -ObjC

Undefined symbols for architecture i386: "_objc_assign_ivar". Error when open existed Xcode 3 iPhone project in iOS 4 by Xcode 4

I have one iPhone project worked fine using Xcode 3. But at that time I opened it by Xcode 4, it raised errors on my first project rebuilding. That error said that:
Undefined symbols for architecture i386:
"_objc_assign_ivar", referenced from:
-[myAppDelegate application:didFinishLaunchingWithOptions:] in myAppDelegate.o
-[myAppDelegate DoAsynchronousCommand:PARAM_ARRAY:Delegate:] in myAppDelegate.o
-[myAppDelegate connection:didReceiveData:] in myAppDelegate.o
-[myAppDelegate connectionDidFinishLoading:] in myAppDelegate.o
etc.
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation).
(Edit: All of necessary libraries were imported and Garbage Collection option was disabled)
I don't know where I have to begin, please show me what wrong? Any help is appreciated. Thanks

+ (Class)layerClass won't work

I'm building an OpenGL application and on eaglview.m + (Class)layerClass wont work.
If i try to run it I get:
"Undefined symbols for architecture i386:
"_OBJC_CLASS_$_CAEAGLLayer", referenced from:
objc-class-ref in GLView.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status"
How can I fix this?
You need to add the OpenGL and potentially the QuartzCore frameworks to the target to link them.