i386 symbols not found - iphone

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?

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

Cannot figure out why it is failing to build

when trying to build my app it keeps failing due to this error.
Does anyone know how to perhaps fix this?
Thank you,
Nick
Undefined symbols for architecture x86_64:
"___isOSVersionAtLeast", referenced from:
-[AbstractActionSheetPicker createToolbarLabelWithTitle:titleTextAttributes:andAttributedTitle:] in AbstractActionSheetPicker.o
-[AbstractActionSheetPicker configureAndPresentPopoverForView:] in AbstractActionSheetPicker.o
-[SWActionSheet window] in SWActionSheet.o
-[SWActionSheet initWithView:windowLevel:] in SWActionSheet.o
ld: symbol(s) not found for architecture x86_64
clang-7: 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

Upgrade from Facebook iOS SDK 3.2.1 to 3.5 gave me an error with FBCrypto

After installing the new sdk I cleaned the project and build it. It fails with this message:
Undefined symbols for architecture i386:
"_SecRandomCopyBytes", referenced from:
+[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o)
-[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o)
"_kSecRandomDefault", referenced from:
+[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o)
-[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Same problem anyone? Solutions?
Well, you need to include the security framework and the libsqlite3.dylib as stated here.
It works now.
edit
Also found this now...
Jumping on this, im running into the same issue, I saw that the FBSDK needs the Security, AdSupport, etc. Here's my linked libraries:
My error is the same:
Undefined symbols for architecture i386:
"_SecRandomCopyBytes", referenced from:
+[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o)
-[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o)
"_kSecRandomDefault", referenced from:
+[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o)
-[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
All the other framework dependencies are good to go as far as I can tell. A Vlean->Build didn't fix it either. Thanks.
Edit: Got it. I needed to re Add Files to Project and check the Add to Target button.. basically XCode automagicka

Undefined symbols for architecture i386: "_PerformXMLXPathQuery"

I looked at all the others that had a similar title but none of those solutions worked for some reason... Hoping someone can help!
Undefined symbols for architecture i386:
"_PerformXMLXPathQuery", referenced from:
-[WeatherForecast connectionDidFinishLoading:] in WeatherForecast.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
"_PerformXMLXPathQuery", referenced from:
-[WeatherForecast connectionDidFinishLoading:] in WeatherForecast.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am new to iOS so any help would be greatly appreciated!!
Seems like you are compiling for the simulator (i386) with a library for the Device (ARM). Either compile for the device and run on it or get an i386 version of the library and run with it on the simulator.
For those who need it, the issue was that my XPathQuery.m file was not in the Complied Sources list. It was as simple as that!
Just posting this for future reference! Hope it helps someone!