After i implement firebase Crashlytics on old project it has fabric.
i removed those pods :
pod 'Fabric'
pod 'Crashlytics'
and after
pod install
i see this error
ld: framework not found Fabric
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have tried many clean build folder and project. But It still stays in there. What should I do?
Solution
Goto your project target and Build Settings
search for "Other Linker Flags"
Delete :
-framework
"Crashlytics"
Crashlytics
If you want to upgrade, just follow the upgrade guide here:
https://firebase.google.com/docs/crashlytics/upgrade-sdk?platform=ios
If you want to just remove Crashlytics, use pod deintegrate
Related
I have added v0.8.5 of image_picker library in my project.
I have tried following things to solve the issue:
Deleted podfile.lock & Pods folder from iOS Directory
Deleted pubspec.lock file from Project Directory
pod deintegrate
flutter clean
flutter pub get
pod install
While building the project in iOS,It throws following error
ld: framework not found image_picker
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can anyone provide a solution to this?
for me change to image_picker: 0.8.0
after that,
flutter clean,
flutter pub get
cd ios
pod deintegrate; pod install
Due to the latest update, which includes migration of image_picker to Android and iOS federation packages, the naming convention of the iOS package has changed from "image_picker" to "image_picker_ios".
Solution:
Just make sure that in xcode, your app's project and target linker flags are set from "image_picker" to "image_picker_ios".
Navigate to xcode project, and then build settings
Find section Linking and then Other linking flags.
Change flag -framework "image_picker" to -framework "image_picker_ios"
Important: changes must be applied to both project and target linker flags.
Open Runner.xcodeproj/project.pbxproj and change image_picker to image_picker_ios in all places.
I'm trying to add the lightning framework to my Xcode project, and the project is not building with an error:
ld: framework not found Lightning
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
I'm working in the .xcworkspace, and I've tried to do use the commands pod deintegrate, pod install. I've also tried deleting the framework from Linked Frameworks and Libraries and readding but nothing is working
Try basic solutions like clean Xcode (press Cmd+Shift+K ), close Xcode and reopen If doen't help remove framework , do pod install and add again your framework and pod install ...
I installed Cocoapods. I used GoogleMaps. When I build workspace on my device i get this error: Error
I also tried all this instructions: Linker command failed with exit code 1 after installing CocoaPods and firebase pod
P.S. Building on simulator works
Probably you've already check if you've open the .xcworkspace created in your project folder.(NOT .xcodeproj)
If still doesn't work try
Go to Project Settings.
Go to Build Settings.
Change BUILD ACTIVE
ARCHITECTURE ONLY to NO.
In my project I got cocoapod installed. Here is the structure of Podfile
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
workspace 'TempWorkspace'
inhibit_all_warnings!
target 'proj1' do
pod 'ApplicationInsights', '1.0-beta.4'
pod 'Google/Analytics'
pod 'AFNetworking', '0.9.1'
pod 'MBProgressHUD'
pod 'Reachability'
end
target 'proj1Tests' do
end
target 'proj1UITests' do
end
In this, ApplicationInsights and GoogleAnalytics pod are not creating any issues. But if I add any pod except these 2 in this file, this is giving me following error
"ld: framework not found AFNetworking clang: error: linker command failed with exit code 1 (use -v to see invocation)"
Its not just about AFNetworking only if I write any other pod name also then also it is giving me same error with that pod name.
I tried looking for pod limitations but not it has not given me anything relevant.
If somebody has any idea please tell me.
Thanks in advance!!!
I hope it will help someone with a similar problem with Pods, this answer worked for me on XCode 8:
Delete all your Podfiles from the pods folder (Pods folder should
be empty)
Delete the xcworkspace file
run pod install
Change Build Active Architectures Only to NO for your target
and for all your pods (Click on Pods project and then on each single
Pod)
Add $(inherited) to the Framework Search Path setting of
your target
I run into this problem because I was trying to install the latest Atlas pod which is implicitly installing the latest LayerKit pod and a reference to a framework was missing. For those with a similar problem remember to add use_frameworks! to your podfile.
That same exact problem happened to me. The problem was that I was opening the .xcodeproj file instead of the .xcworkspace file. Once I opened the workspace file all my build errors were gone.
I had the same problems twice. I only use AFNetworking 3.0.4 or 3.1.0.
The method I handled with is to delete all the files:
podFile files, the Podfile.lock file, xcworkspace, the 'Copy Pods Resources' and 'Check Pods Manifest.lock' in Build phases of targets.
After deleting all these, I write the file of podFile and pod install. the problem is solved.
I am trying to add the Parse.com SDK to my Xcode 7 project. I have followed the getting started guide and I have managed to do it before in Xcode 6.
However this time I am being shown this error message when I try to build:
ld: framework not found Bolts
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Thanks
There seems to be an issue with Xcode 7 beta where the search path for manually added frameworks is missing.
To fix the issue add the search path by doing the following:
Select Project
Click on Targets
Click Build Settings
Search for: Framework Search Path
Add the following without the quotes: "$(PROJECT_DIR)" and choose recursive option.
The project should build now.
I suggest you integrate Parse using CocoaPods.
Cocoapods manages the library dependencies in a much better way.
The following is a sample PodFile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
inhibit_all_warnings!
target '**YourProjectName**' do
pod 'Parse', '~> 1.7.1'
pod 'AFNetworking', '2.2.3'
end