Frameworks not found for CocoaPods with Xcode 6.3.2? - ios

My Podfile is as follows:
platform :ios, '8.0'
use_frameworks!
target 'podtest' do
pod 'SwiftyJSON', '~> 2.1'
end
And I definitely am opening up the Xcworkspace file, not the xcodeproj file. It throws a Mach-O linker error in even the simplest project I could possibly make, with the -F flag.

Related

library not found for -lFirebaseAuth clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have added Firebase to my podfile and pod installed. Get the error above.
I then delete PodFile and Podfile.lock and try again. Same error.
Did again but first did pod repo update. And again with pod update then pod install. Same error
Added all Firebase to my Linker Library and same Error.
platform :ios, '10.0'
target 'myApp' do
pod 'RestKit', '~> 0.27.3'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'SDWebImage', '~> 5.0'
end
All answers on Stackoverflow say open .workspace instead or project. I am doing this and same error.
Is there a chance something was edited when someone opened the project file instead of the workspace file?
Not sure where to go from here.

Error GoogleMaps SDK from CocoapPods iOS Swift

When i did install a Google Maps framework from CocoaPods
platform :ios, "8.0"
use_frameworks!
target 'BeNaved' do
pod 'TNImageSliderViewController', '~> 0.1'
pod 'SCLAlertView', '~> 0.4'
pod 'HanekeSwift'
pod 'GoogleMaps'
end
But when im running the app it appears an error.
ld: framework not found GoogleMaps
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Very need your help, thank you so much
You're writing the syntax of the podfile wrong. It is:
platform :ios, '8.0'
You were writing it as "8.0" (notice the single quotes which I've changed).

Swift error after using pod install (clang: error: linker command failed with exit code 1 )

I've been trying to resolve this issue for 3 hours and I tried everything that's on the web but nothing seems to work, I'm just trying to add the (login in with Facebook) button on an app connected to parse.
I even started a new project from scratch to see if the same issue would appear and it did.
the error: (clang: error: linker command failed with exit code 1 (use -v to see invocation))
It appeared after doing 'pod install' in both apps, this is what I have in my Podfile:
platform :ios, '8.1'
xcodeproj 'carpoolup'
target :carpoolup, :exclusive => true do
pod 'Parse'
pod 'ParseUI'
pod 'ParseFacebookUtilsV4'
pod 'ParseTwitterUtils'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
end
please help, what does this error mean?
Try adding use_frameworks! after the platform line to force cocoapods to use frameworks.
Example from cocoapods.org:
platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
pod 'AFNetworking', '~> 2.6'
pod 'ORStackView', '~> 3.0'
pod 'SwiftyJSON', '~> 2.3'
end

Cocoapods framework not found - mixed objective c and swift pods

tl;dr; how to use old (what shouldn't use use_frameworks!) and new pods together in podfile?
I had working podfile:
platform :ios, '8.0'
use_frameworks!
target 'myApp' do
pod 'Alamofire', '1.3.1'
pod 'SwiftyJSON', '~> 2.2.1'
end
Then I added OneSignal pod according to documentation link
So my pod file changed to:
platform :ios, '8.0'
use_frameworks!
target 'myApp' do
pod 'Alamofire', '1.3.1'
pod 'SwiftyJSON', '~> 2.2.1'
pod 'OneSignal'
end
I updated pods and run build - got error:
ld: framework not found OneSignal
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I checked OneSignal pod and it looks differently compared to others:
Thats probably because is old style objective-c framework.
I can add this framework manually to my project but I wonder how to make it work properly with cocoapods?
This issue relates to my problem I think https://github.com/CocoaPods/CocoaPods/issues/3338
Update
I'm currently using Xcode 6.4
What version of Xcode are you using?
If update to the latest release versions of both Alamofire and SwiftyJSON and build with Xcode 7 it should fix your build errors.
platform :ios, '8.0'
use_frameworks!
target 'myApp' do
pod 'Alamofire', '2.0.2'
pod 'SwiftyJSON', '~> 2.3.0'
pod 'OneSignal'
end

CorePlot 1.5.1 pod install failed

I can install AFNetworking with the Podfile below,
platform :ios, '7.0'
pod 'AFNetworking', '~> 2.0'
but failed to install CorePlot, here is my Podfile,
source 'https://github.com/CocoaPods/Specs.git'
platform : ios, "8.0"
target "CorePlotTest" do
pod 'CorePlot', '~> 1.5.1'
end
Here is my error codes,
What should I do?
There is a syntax error in your podfile. Remove the space between the colon (:) and "ios" on the platform line.
platform :ios, "8.0"
The contents in the file are no problems, just open the Podfile in vim or Xcode, not other things like TextEdit !
We can use
open -a Xcode Podfile
to open and edit the file in Xcode.

Resources