I just updated my cocoa pods library and when I compile the project I am getting the error.
Duplicate interface definition of class Parse
Here is my Podfile
platform :ios, '7.0'
use_frameworks!
target 'Alfred' do
pod 'Stripe'
pod 'SDWebImage', '~>3.7'
pod 'Parse'
pod 'ParseFacebookUtils'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'CMMapLauncher'
pod 'Fabric'
pod 'Crashlytics'
pod 'SinchVerification', '0.9-beta1'
pod 'TWMessageBarManager'
pod 'MaterialControls', '~> 1.0.2'
pod 'PubNub/Fabric'
end
Any clue on this?
Update
This are the version of each library
Using Bolts (1.7.0)
Using CMMapLauncher (1.1.0)
Using CocoaLumberjack (2.2.0)
Using Crashlytics (3.7.0)
Using FBSDKCoreKit (4.10.1)
Using FBSDKLoginKit (4.10.1)
Using Fabric (1.6.7)
Using Facebook-iOS-SDK (3.24.4)
Using MaterialControls (1.0.2)
Using Parse (1.13.0)
Using ParseFacebookUtils (1.10.0)
Using PubNub (4.3.0)
Using SDWebImage (3.7.5)
Using SinchVerification (0.9-beta1)
Using Stripe (6.2.0)
Using TWMessageBarManager (1.8.1)
Ok I fixed it this way:
for objC
just remove use_frameworks! or comment it #use_frameworks!
then clean, build, and run..
Related
Upon upgrading the Facebook SDK, I get an error.
The resulting pods are:
Using FBSDKCoreKit (5.0.0)
Using FBSDKLoginKit (5.2.3)
Using FBSDKMarketingKit (5.0.0)
Using FBSDKMessengerShareKit (1.3.2)
Using FBSDKPlacesKit (5.2.3)
Using FBSDKShareKit (5.2.3)
Using Fabric (1.10.2)
Using FacebookSDK (5.0.2)
I have upgraded the SDK like so in the Podfile and ran pod install:
pod 'FacebookSDK'
pod 'FacebookSDK/LoginKit'
pod 'FacebookSDK/ShareKit', '~> 5.0.0'
pod 'FacebookSDK/PlacesKit'
pod 'FBSDKMessengerShareKit'
Expected:
The project compiles.
Actual:
/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/Internal/FBSDKVideoUploader.m:78:11: Receiver type 'FBSDKError' (aka 'enum FBSDKError') is not an Objective-C class
There's a build-breaking bug in Facebook's iOS SDK again. Sigh.
Relevant thread:
https://developers.facebook.com/support/bugs/355323518445227/
Summary: change your Podfile to manually force dependency on version 5.2 like this:
pod 'FBSDKLoginKit', '~> 5.2'
pod 'FBSDKCoreKit', '~> 5.2'
The thread signaled by Xaphod https://developers.facebook.com/support/bugs/355323518445227/ did help me fix the problem
The solution was:
1 - First erase the pod files
2 - change pod 'FacebookSDK' for pod 'FacebookSDK/CoreKit'
Now my pod file looks like this:
pod 'FacebookSDK/CoreKit'
pod 'FacebookSDK/LoginKit'
pod 'FacebookSDK/ShareKit'
pod 'FacebookSDK/PlacesKit
3- Run pod update
After the update everything run fine again for me.
Hope it helps
I try to install the latest version of Firebase pod. I know that the latest version of this pod is 4.1.1 from cocoa pods official site https://cocoapods.org/pods/Firebase
But when I call pod update command from iOS terminal, I see that this pod was installed as 3.17.0.
This is what I see in iOS terminal after pod update command execution:
Downloading dependencies
Using Alamofire (4.5.0)
Using Bolts (1.8.4)
Using Crashlytics (3.8.5)
Using Digits (3.0.2)
Using FBSDKCoreKit (4.26.0)
Using FBSDKLoginKit (4.26.0)
Using FBSDKMessengerShareKit (1.3.2)
Using FBSDKShareKit (4.26.0)
Using Fabric (1.6.12)
Using Firebase (3.17.0)
Using FirebaseAnalytics (3.9.0)
Using FirebaseAuth (3.1.1)
Using FirebaseCore (3.6.0)
Using FirebaseCrash (1.1.6)
Using FirebaseDatabase (3.1.2)
Using FirebaseDynamicLinks (1.4.0)
Using FirebaseInstanceID (1.0.10)
Using FirebaseInvites (1.3.0)
Using FirebaseMessaging (1.2.3)
Using FirebaseStorage (1.1.0)
Using FirebaseUI (4.1.1)
Using GTMOAuth2 (1.1.4)
Using GTMSessionFetcher (1.1.11)
Using Google (3.1.0)
Using GoogleAPIClientForREST (1.3.0)
Using GoogleSignIn (4.0.2)
Using GoogleToolboxForMac (2.1.1)
Using IQKeyboardManagerSwift (4.0.13)
Using MBProgressHUD (1.0.0)
Using Protobuf (3.4.0)
Using SwiftyStoreKit (0.10.7)
Using TwitterCore (3.0.0)
Using TwitterKit (3.1.0)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 23 dependencies from the Podfile and 33 total pods installed.
This is content of my Podfile in project:
use_frameworks!
target 'PrayerDeck' do
pod 'Firebase'
pod 'Firebase/Auth'
pod 'Firebase/Crash'
pod 'FirebaseUI/Database'
pod 'Fabric'
pod 'Crashlytics'
pod 'Digits'
pod 'TwitterCore'
pod 'Firebase/Database'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'IQKeyboardManagerSwift'
pod 'Firebase/Storage'
pod 'MBProgressHUD'
pod 'Google/SignIn'
pod 'Firebase/Invites'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
pod 'FBSDKMessengerShareKit'
pod 'Alamofire', '~> 4.0'
pod 'TwitterKit'
pod 'SwiftyStoreKit'
end
target 'PrayerDeckTests' do
end
target 'PrayerDeckUITests' do
end
UPDATE:
When I try to update Podfile and set more specific version like this pod 'Firebase', '~> 4.0' I get next error in iOS terminal:
- `FirebaseAnalytics (= 4.0.3)` required by `Firebase/Core (4.1.1)`
- `FirebaseAnalytics (~> 3.2)` required by `Google/Core (3.0.3)`
- `GoogleSignIn (~> 3.0)` required by `Google/SignIn (2.0.4)`
- `GoogleSignIn (~> 4.0)` required by `FirebaseInvites (2.0.1)`
- `Firebase/Invites` required by `Podfile`
Your Podfile is using the deprecated 'Google/SignIn' which forces the Firebase 3.x dependencies.
Change it to
pod 'GoogleSignIn'
I'm needing to add Alamofire to my main iOS app and the iOS Today Extention. With Alamofire just being in my iOS app target, it works great! But now, I'm trying to add Alamofire to my today extention. This is my Podfile
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'The Main iOS App' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'Canvas'
pod 'Firebase/Core’
pod 'Firebase/Messaging’
pod 'Alamofire', '~> 4.4'
# Pods for The Main iOS App
end
target 'Today' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'Alamofire', '~> 4.4'
# Pods for Today
end
Whenever using pod install in terminal, I get this:
Analyzing dependencies
Downloading dependencies
Using Alamofire (4.5.0)
Using Canvas (0.1.2)
Using Firebase (4.0.3)
Using FirebaseAnalytics (4.0.2)
Using FirebaseCore (4.0.3)
Using FirebaseInstanceID (2.0.0)
Using FirebaseMessaging (2.0.0)
Using GoogleToolboxForMac (2.1.1)
Using Protobuf (3.3.0)
[!] The 'Pods-iFunnyVlogger' target has frameworks with conflicting names: alamofire.
How do I properly do this?
UPDATE - Still Not Working
Some information that you may need is that I'm on cocoapods version 1.2.0 and I've tried pod update, but I'm still getting that error
[!] The 'Pods-iFunnyVlogger' target has frameworks with conflicting
names: alamofire.
Try this
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
def other_pods
pod 'Canvas'
pod 'Firebase/Core’
pod 'Firebase/Messaging’
end
def shared_pods
pod 'Alamofire', '~> 4.4'
end
target 'The Main iOS App' do
shared_pods
other_pods
end
target 'Today' do
shared_pods
end
My podfile has:
# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
# Uncomment this line if you're using Swift
use_frameworks!
target 'CoChat' do
pod 'Firebase', '>= 2.5.0'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
pod 'AFNetworking', '~> 3.0'
#pod 'MobileDeepLinking-iOS'
end
I run pod install and get:
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Using AFNetworking (3.0.4)
Using Bolts (1.6.0)
Using FBSDKCoreKit (4.10.0)
Using FBSDKLoginKit (4.10.0)
Using FBSDKShareKit (4.10.0)
Using Firebase (2.5.1)
Installing FirebaseUI (0.3.2)
Installing Google (1.3.2)
Installing GoogleAppUtilities (1.0.0)
Installing GoogleAuthUtilities (1.0.1)
Installing GoogleInterchangeUtilities (1.1.0)
Installing GoogleNetworkingUtilities (1.0.0)
Installing GoogleSignIn (2.4.0)
Installing GoogleSymbolUtilities (1.0.3)
Installing GoogleUtilities (1.1.0)
[!] The 'Pods-CoChat' target has transitive dependencies that include static binaries: (/Users/Nathan/Library/Mobile Documents/com~apple~CloudDocs/Desktop/CoChat/Pods/Google/Libraries/libGGLCore.a and /Users/Nathan/Library/Mobile Documents/com~apple~CloudDocs/Desktop/CoChat/Pods/Google/Libraries/libGGLSignIn.a)
When you open the XCWorkspace, nothing has changed. The FirebaseUI pod/framework is not there. Not a clue why this isn't installing.
I'm facing the same problem. The problem is with FirebaseUI/Auth and Google Sign in.
Solution
comment out use_frameworks!
Use bridging headers files by creating
a cocoa touch file, remember to check the box for 'Create a bridging
header file' and then after creation only deleting the .m .h files
as you want the bridging header file. Manually call out the headers
files from there.
If you read the posts on https://github.com/firebase/FirebaseUI-iOS/issues?q=is%3Aissue+is%3Aclosed, some seem to have similar issue. One possible fix is to get the 0.2.6 version of FirebaseUI by including '~>0.2.6' beside the firebaseUI pod
Hope this helps and hopefully this bug is fixed.
I'm developing an swift iOS app and at this "final" stage I'll add Google Analytics.
I'm following their Guide
But it failed at pod install command...
Error Log
Downloading dependencies
Using Alamofire (1.2.2)
Using Bolts (1.2.0)
Using CryptoSwift (0.0.10)
Using FBSDKCoreKit (4.2.0)
Using FBSDKLoginKit (4.2.0)
Using FBSDKShareKit (4.2.0)
Installing Google (1.0.7)
Installing GoogleAnalytics (3.13.0)
Using GoogleMaps (1.10.1)
Installing GoogleNetworkingUtilities (1.0.0)
Installing GoogleSymbolUtilities (1.0.0)
Installing GoogleUtilities (1.0.1)
Using ImageLoader (0.3.2)
Using SQLite.swift (0.1.0.pre)
Using SwiftyJSON (2.2.0)
[!] The 'Pods-<My-Project>' target has transitive dependencies that include static binaries: (<path-to-project-dir>/Pods/Google/Libraries/libGGLAnalytics.a, <path-to-project-dir>/iOS/Pods/Google/Libraries/libGGLCore.a, <path-to-project-dir>/iOS/Pods/GoogleAnalytics/Libraries/libGoogleAnalytics.a, (...)
As stated in this tutorial, "pods written in Swift must be created as dynamic frameworks" (and that's why the use_frameworks! in the Podfile).
As it seems, this new Google Analytics pod is a static binary.
I tried to change the pod the same as this answer but the pod install command warned me that (obviously) [!] GoogleAnalytics-iOS-SDK has been deprecated in favor of GoogleAnalytics. And I'm not sure it's a good idea to add an already deprecated library to a new project instead of getting the right one to work.
My project has a target dependecy to iOS 8.0+ and the podfile is:
```
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
target 'MyProject' do
pod 'Alamofire', '~> 1.2'
pod 'SwiftyJSON', '~> 2.2.0'
pod 'GoogleMaps'
pod 'ImageLoader', '~> 0.3.0'
pod 'SQLite.swift', git: 'https://github.com/stephencelis/SQLite.swift.git'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
pod 'CryptoSwift'
pod 'GoogleAnalytics', '~> 3.13'
end
target 'MyProjectTests' do
end
```
Is anyone having the same problem or know how to solve this using the v3 GA pod?
Replace the line
pod 'GoogleAnalytics-iOS-SDK', '~> 3.10'
in your Podfile with
pod 'GoogleAnalytics', '~> 3.13'
Clean project and run pod install again. The pod you're currently using is the one that is deprecated.