Cordova + Xcode8 = Linker command failed with exit code 1 - xcode

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.

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.

AFNetworking - ld: library not found for -lAFNetworking

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.

Flutter library not found for -ldevice_info, can't archive the ios app with xcode

when I try to archive the app or run in a real device, I always get below errors:
ld: library not found for -ldevice_info
clang: error: linker command failed with exit code 1 (use -v to see invocation)
but if I just run in a simulator, everything is ok, if I try to remove the device_info package, then it will also show another package not found:(
I am using the latest flutter dev sdk, and I have setup a valid iOS developer certificates.
Thanks!
It seems that the solution here in this SO post as mentioned in the comment works for this case:
In new projects, in the iOS part is necessary to adjust a few
parameters, such as signing, and that you can only do in Xcode.
So, try to open the iOS project with Xcode and try to build it from
there. You'll see better warning and error messages there, specially
regarding signing.
You can open Xcode and locate your project ios folder, or:
cd yourproject/ios
open -a Xcode .
Then select Product > Run in the menu.
Also, this GitHub post discussion could also be a possible reason for other cases. Try to check the following:
I was able to successfully archive with your pubspec.yaml.
Can you confirm you opened ios/Runner.xcworkspace and NOT ios/Runner.xcodeproj? See Better handle case where a developer
opens Runner.xcodeproj instead of Runner.xcworkspace
#10770.
Did you run flutter build ios before you Archived? See https://flutter.dev/docs/deployment/ios#create-a-build-archive.

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.

Resources