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

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

Related

I am getting an "Undefined symbol: _sampleTextMethod" error when archiving via xcode. I've been trying all day but still haven't found a solution

I've adjusted the arm64 settings properly, but I'm still getting an error.
Error 1 : Undefined symbol: _sampleTextMethod
Error 2 : Undefined symbol: _sampleMethod
ld: warning: arm64 function not 4-byte aligned: _unwind_tester from /Users/xxxxxx/Desktop/xxxxxx/Libraries/libiPhone-lib.a(unwind_test_arm64.o)
Undefined symbols for architecture arm64:
"_sampleTextMethod", referenced from:
_share_sampleTextMethod_m44B1FCFDBA728CA7A0D9FE1EAA24957D8575A8F3 in Assembly-CSharp4.o
_share_OniOSTextSharingClick_m685A2DF9E3A15CA3E071041B699A84CF9AA20BEC in Assembly-CSharp4.o
(maybe you meant: _share_sampleTextMethod_m44B1FCFDBA728CA7A0D9FE1EAA24957D8575A8F3)
"_sampleMethod", referenced from:
_share_sampleMethod_m8BEC2F040645B44AA6F065C2B02BC2CD329B4CE0 in Assembly-CSharp4.o
(maybe you meant: _share_sampleMethod_m8BEC2F040645B44AA6F065C2B02BC2CD329B4CE0)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Also, why are the pod files red, is it just me?
enter image description here

I'm trying to use 'Firebase/MLVision' pod but getting below error after installing the pod

Undefined symbols for architecture x86_64:
"_fEqual", referenced from:
-[FIRVisionPoint isEqual:] in FirebaseMLVision(FIRVisionPoint_ed9ba191dd39cfa4dcbfad6e343d54bb.o)
"_OBJC_CLASS_$_FBMLx_GMVFaceInitializationOptions", referenced from:
objc-class-ref in FirebaseMLVision(FIRVisionFaceDetectorOptions_7977a11f37f876d536fa69c1aa1d0436.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Trying to implement sharekit getting errors

Hello I am new to iphone development. I'm trying to implement share kit and am getting this error
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SSReadingList", referenced from:
objc-class-ref in libShareKit.a(SHKReadingList.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
dont know what to do i tried using https://github.com/ShareKit/ShareKit/wiki/Installing-sharekit this link and all the steps are done still what is this error about have no clue about

iphone:Urban airship libUAirship-1.1.1.a error occurs

I am implementing Push notification(urban airship) in my application. I have written the code and also added the necessary framework including libUAirship-1.1.1.a but it shows me following error.
Undefined symbols for architecture i386:
"_UTTypeCreatePreferredIdentifierForTag", referenced from:
+[UA_ASIHTTPRequest mimeTypeForFileAtPath:] in libUAirship-1.1.1.a(UA_ASIHTTPRequest.o)
"_UTTypeCopyPreferredTagWithClass", referenced from:
+[UA_ASIHTTPRequest mimeTypeForFileAtPath:] in libUAirship-1.1.1.a(UA_ASIHTTPRequest.o)
"_kUTTagClassFilenameExtension", referenced from:
+[UA_ASIHTTPRequest mimeTypeForFileAtPath:] in libUAirship-1.1.1.a(UA_ASIHTTPRequest.o)
"_kUTTagClassMIMEType", referenced from:
+[UA_ASIHTTPRequest mimeTypeForFileAtPath:] in libUAirship-1.1.1.a(UA_ASIHTTPRequest.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I can't understand why this error generated.
Check out this document it may help you : Push Notification Client Library

i386 symbols not found

Am getting this error, when using CFReadStreamRef
Undefined symbols for architecture i386:
"_CFReadStreamCreateWithFTPURL", referenced from:
-[FtpTestViewController clickMeToStart:] in FtpTestViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Am getting no where, can someone please help?
Thanks !
In your target's "link binary with libraries" build phase is "CFNetwork.framework" included?