AFNetworking - ld: library not found for -lAFNetworking - xcode

I have an Xcode project with Cocoa Pods installed which I added a tvOS single view app target. I shared with the tvOS target all the pod installed. When I build and run my iOS target everything is ok, but when I run the tvOS target I get this error
"ld: library not found for -lAFNetworking clang: error: linker command failed with exit code 1 (use -v to see invocation)"
So after searching on the web I found a solution to this error. If I go to the Build Settings for the tvOS target and under Valid Architectures I remove arm64 and type armv7 the error disappears but then when i run the project i get this: the file couldn't be opened because you don’t have permission to view it.

First, you must sure you're opening the .xcworkspace file, not the .xcodeproj file.
Then, open your project folder and run command pod install and reopen .xcworkspace file it will fix your issue.

Related

ld: library not found for -lAnalytics error for expo bare workflow app on iOS

I'm getting the following error from xcode when I try to build a project I ejected from expo:
ld: library not found for -lAnalytics
I have the expo Segment package installed, and have gone through the regular ejection process, installing and configuring unimodules, and running npx install
Where should I start looking for this error? - Analytics (4.1.3) appears in my podfile.lock and I have an Analytics folder in the Library folder. I'm at a complete loss
The fix was exactly as #brentvatne said, I had opened the project via xcodeproj NOT xcworkspace. Xcode remembers your choice so on subsequent openings of xcode it had defaulted to xcodeproj.
Solution: open project with xcworkspace.

Adding Facebook SDK to a project without CocoaPods in Xcode 10

I'm not able to build my app with the Facebook SDK in iOS 10. I've included both the "Bolts.framework" and "FBSDKCoreKit.framework" frameworks to my projects. I've also added my Facebook SDK folder to the "Framework Search Paths" in "Build Settings". This is the folder that contains these frameworks.
I'm getting this error and I'm not sure how to resolve it. My project compiled fine in Xcode 9 but won't compile in Xcode 10. Is there another step I'm missing in Xcode 10?
'FBSDKCoreKit/FBSDKCoreKit.h' file not found
UPDATE: Xcode seems to not be able to find the frameworks. This is the error I'm getting. I dragged the frameworks into Xcode from that folder. If I right-click on the framework and click "Show in Finder" it goes right to the frameworks so I don't understand my Xcode can't locate them.
ld: warning: directory not found for option '-F~/MY_FOLDER/FacebookSDK'
ld: framework not found FBSDKCoreKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
UPDATE 2: Even if I remove that folder from my build options Xcode still complains it can't find the frameworks. I have to completely delete them from my project in order to build successfully.

xcode librarby not found for -IRCTNetwork

I have react native project that I'm trying to run with xcode.
when i run it shows me the error
ld: library not found for -lRCTNetwork
clang: error: linker command failed with exit code 1 (use -v to see invocation)
actually, i don't know what is -RCTNetwork,
it's not any plugin I installed.
This error occurs because you haven't added or linked the network library to your Build Phases in Xcode.
Drag the file, RCTNetwork.xcodeproj from node_modules/react-native/Libraries/Network/
to the libraries file in Xcode.
Then click on Build Phases on the top right-hand corner in Xcode.
Click the drop down of Link Binary With Libraries, then the + sign to add the libRCTNetwork.a
Run the build and restart your emulator or device.

Cordova + Xcode8 = Linker command failed with exit code 1

Everything was working fine until I updated the iPad and now I can't build/install my app any more. I get the error message:
ld : framework not found Pods_myproject
clang: error: linker command failed with exist code 1
I tried to add/remove ios platform, clean ios both in cordova and xcode, remove pods folder and files, did a pod deintegrate, redid pod init and pod install, quit xcode, nothing works.
Check your Xcode project, you probably link to "Pods_myproject" somewhere.
Open Xcode
Click on your project
See the 'General' tab.
Remove Pods_myproject from Linked Frameworks and Libraries and Embedded Binaries
If still not resolved, search for Pods_myproject on the top right.

xcode build error framework not found

Okay, using xcode7, swift and ios7 target.
I installed cocoapods
I change terminal to my project file folder and ran pod setup
Now Podfile is in the same directory as my .xcodeproj file and loks like this:
plaform :ios, '7.0'
use_frameworks!
pod 'OAStackView'
I change terminal to my project file folder and run pod install
Now, if I try build I get:
Frame not found OAStackView clang: error: linker command failed with
exit code 1 (use -v to see invocation)
Am I supposed to do anything else to get OAStackView working? (I verified the problem also happens wih other pods) I have not yet imported it to any unit or anything, just trying to compile
I think you might be opening the .xcodeproj instead of opening .xcworkspace. With CocoaPods we have to open .xcworkspace file.

Resources