I am trying to install the Facebook SDK using Cocaopod. I managed to install fine.
This is what is inside the Podfile.
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'Login-FB' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Login-FB
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
end
However, after installation, when I run Build in the App, I get the error shown below:
ld: framework not found Bolts
clang: error: linker command failed with exit code 1 (use -v to see invocation)
It seems like my Pod files are not really pulling the framework down from its source. I am not sure why. Because I think this Pod install command should create a folder called Framework and it should have the Frameworks readily available, but it is not so in my case.
Related
I have an app in which I am using cocoapods to download third party libraries. I have Salesforce sdk and also firebase. Both Salesforce's SmartStore and Firebase are dependent on FMDB. If I remove Firebase pod and do a pod update it is compiling fine without any error. But, if I add firebase libraries to Pod, I get
Library not found for -lFMDB
Linker command failed with exit code 1 (use -v to invocation)
# Uncomment the next line to define a global platform for your project
platform :ios, '11.0'
target 'App' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
use_modular_headers!
# Pods for App
source 'https://github.com/forcedotcom/SalesforceMobileSDK-iOS-Specs.git'
source 'https://github.com/CocoaPods/Specs.git'
pod 'Firebase/Analytics'
pod 'Firebase/Crashlytics'
pod 'SalesforceSDKCore','7.3.0'
pod 'SmartStore','7.3.0'
pod 'SmartSync','7.3.0'
pod 'SalesforceAnalytics','7.3.0'
pod 'SalesforceSDKCommon','7.3.0'
end
I am not sure what is the problem and how to resolve it. Any help is much appreciated.
In case if anyone else has the same problem, remove libraries from Other Linker Flags. As in pod file, I have use_frameworks! in pod file,I believe you don't have to mention them in Other Linker Flags.
I have just made a podfile for firebase in my app however I am getting this error and the podfile has everything in it. It is telling me Error Message: Showing Recent Errors Only ld: framework not found GoogleToolboxForMac clang: error: linker command failed with exit code 1 (use -v to see invocation)
I go onto the Pods.xcodeproj xcode project and GoogleToolBoxForMac is there.
I researched everything to fix it and nothing helped.
Podfile: firebase instructions said to put 'Firebase/Core'
target 'Game' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
pod 'Firebase/Core'
use_frameworks!
# Pods for Game
target 'GameTests' do
inherit! :search_paths
# Pods for testing
end
target 'GameUITests' do
inherit! :search_paths
# Pods for testing
end
end
I tried running on XCWorkSpace it ran however my app did not load like it always has. I also did every answer the possible duplicate had. I don't even see all my swift source files(like viewcontrolller gamescene and node files) on the XCWorkSpace for my game.
I have already raised this kind query, still I did not get any helpful answers, so that, I am posting this again.
I am installing firebase, googlesigin, twitterkit and fabric to my swift application by Cocoapods.
If I installed only Fabric I am able to compile and run the application. But, If I tried to install GoogleSignIn and TwitterKit, Fabric, its installing successfully, but, not able to run, getting compiler error of following.
ld: framework not found FileProvider for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
And my podfile is like following.
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'pod installation' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'Fabric'
pod 'TwitterKit'
pod 'Firebase/Database'
pod 'Fabric'
pod 'GoogleSignIn'
# Pods for sample pod
# Pods for pod installation
target 'pod installationTests' do
inherit! :search_paths
# Pods for testing
end
end
Attached screenshot, any help from anyone. I am trying to fix this from two days and Really thanks for who helping this fix.
Note : I am using Xcode 8.3.2 and I don't have any real device with me now, and I am not using any FileProvider framework in my application.
Perhaps your pods using FileProvider-framework.
FileProvider-framework is available from iOS11.0 + with Xcode 9 hence You should upgrade with Xcode 9 to avail this framework.
I am currently having problems installing Pure Layout using Cocoa Pods. Ive managed to install it fine in a blank project with no problems. But when installing into my project i keep getting the following error:
ld: framework not found PureLayout
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Ive had a search through stack overflow for any possible solutions and have tried adding the framework search path to the target, trying to delete cocoa pods and do a fresh install onto the project.
Initially before adding 'PureLayout' to the pod file i got a similar error:
ld: framework not found Pods
To resolve this i removed the red pod framework file from the linked library and framework folder. Which then built fine.
Thank you in advance for anyone who helps me solve this.
Below is my Podfile:
# Uncomment this line to define a global platform for your project
platform :ios, '8.1'
# Uncomment this line if you're using Swift
use_frameworks!
target '****' do
pod 'Google/Analytics'
pod 'Fabric'
pod 'Crashlytics'
pod 'PureLayout'
end
target '****Tests' do
end
Managed to solve this issue by:
-Select Pods Project
-Build Settings
-Set BaseSDK to iOS SDK (since pod install clears it)
-Set Build Valid Architecture Only to NO.
Following this process the project now builds. I was able to import Pure Layout into my Bridging Header and access the pure layout functions in any of my view controller classes.
I am getting the following error after installing the pop library using CocoaPods.
***ld: library not found for -lPods-MyApp-pop
clang: error: linker command failed with exit code 1 (use -v to see invocation)***
My Podfile looks like this
hash Uncomment this line to define a global platform for your project
hash platform :ios, '7.0'
target 'MyApp' do pod 'pop', '~> 1.0'
end
target 'MyAppTests' do
end
This is my first project using CocoaPods, any help would be appreciated.
Try closing the project, then open the the ".xcworkspace" file instead of your ".xcodeproj" file. I ran into the exact same issue you are running into and opening the ".xcworkspace" solved the problem and let me build and run my project.
Article discussing this issue