XmppFramework showing error - ios

I am creating chatting app in Objective-C using XMPPFramework,
I have installed XMPPFramework using pod... pods got installed successfully but when i build my app after install it shows me this error Redefination of module dnssd
I did some research but havn't found any thing related to this.
Here is my pod file:
# Uncomment the next line to define a global platform for your project
platform :ios, ‘8.0’
target 'JabberClient' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
use_frameworks!
pod ‘XMPPFramework’
# Pods for JabberClient
end
Please help me where i am making mistake?
Thanks in advance !!

Try removing/commenting the use_frameworks! line.
It should be used if you're using Swift.

Related

Module MapboxGeocoder not found Xcode 9 Swift 4

I'm trying to install the MapboxGeocoding framework with Cocoapods and Xcode9. Unfortunately Xcode can't find the module. It shows me the following error: Cannot load underlying module for 'MapboxGeocoder'
The pod file looks as the following:
# Uncomment the next line to define a global platform for your project
platform :ios, '11.0'
target 'FrameworkTest' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'MapboxGeocoder.swift', '~> 0.7'
# Pods for FrameworkTest
end
I checked also the build settings of the Xcode Project. It looks like the following:
Framework Search Path
Finally nothing worked for me. Any suggestions to solve this problem?
PS: The normal MapBox Framework works well with cocoapods
I guess your framework header search path is missing this path. Try adding $(inherited) $(PROJECT_DIR) $(PROJECT_DIR)/YourProjectFramework folder in Framework search path
Hope this helps you!

xcode error when compiling build failed

I'm doing an app using firebase, I've already done the set up with pod and today when I re-opened the project after a bit of time I have this problem in the picture, any help on how to fix it?
I've already tried to clean and deleting pod files and re-executing a "pod install" but it seems he can no longer see my "import Firebase"
Unfortunately there could be a number of reasons for your error. Here are a couple easily overlooked steps when installing Firebase with cocoapods:
The top of your pod file likely looks similar to the snippet below. It appears you're using swift so make sure you uncomment the "use_frameworks!" line as I've done here :
# Uncomment this line to define a global platform for your project
# platform :ios, '10.0'
# Uncomment this line if you're using Swift
use_frameworks!
Make sure from now on you open your project from the terminal:
$ open your-project.xcworkspace
If you still don't have any luck it may be worth carefully reviewing the getting started guide for Firebase: Add Firebase to your iOS Project

iOS: Wrong instruction in installing Google Mobile Ads SDK?

I'm following this tutorial to put Google Ad on my page: https://firebase.google.com/docs/admob/ios/quick-start
At the step:
GADMobileAds.configureWithApplicationID("ca-app-pub-8123415297019784~8909888406");
And the error occurred:
AppDelegate.swift:58:9: Type 'GADMobileAds' has no member 'configureWithApplicationID'
And after the checking, i see there is no member configureWithApplicationID.
What's wrong with this instruction?
And why i have to install Firebase/Core in this version?
Here are methods in GADMobileAds, there is no configureWithApplicationID like Objective C version. How stupid is that http://i.imgur.com/Od0vkPg.png
Remove the cocoapods line from the instruction and replace with this line:
pod 'Google-Mobile-Ads-SDK'
It will install the google sdk version 7.9.0 and you'll see the configureWithApplicationID method. This is the error from Google for Swift.
Xcode 7.3, iOS9.3.3
Followed the instructions above, but wanted to expand, in hopes of saving someone time. If you had 'Google-Mobile-Ads-SDK' pod already installed, then check the version to make sure it is 7.9.0+. Otherwise, you will keep installing the old version over and over.
To update the version, follow the instruction taken from Cocoapods website https://cocoapods.org/pods/Google-Mobile-Ads-SDK click "Installation Guide" (bottom right):
The '~> 7.9' bit will force an update.
What I had that did not work:
What it needs to be:
Again, note the version is 7.9.1
The Podfile looks like this:
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
target 'AppName' do
# Uncomment this line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for AppName
pod 'Firebase'
pod 'Google-Mobile-Ads-SDK', '~> 7.9'
target 'AppNameTests' do
inherit! :search_paths
# Pods for testing
end
end
Now you will be able to configure GADMobileAds with the Google prescribed method:
[GADMobileAds configureWithApplicationID:#""];
Or the Swift equivalent:
GADMobileAds.configureWithApplicationID("");
Hope this helps! Cheers.
Try to update Podfile to the following:
#pod 'Firebase/AdMob'
pod 'Google-Mobile-Ads-SDK'
I recently tried to update my pod to pod 'Google-Mobile-Ads-SDK', '~> 7.9' and it did not work for me. Because I already had a version of Google-Mobile-Ads-SDK in my file, I simply needed to run pod update. The problem was that Google has updated the SDK beyond 7.9 and updating versus naming a specific version ensures you get the latest one.
The instructions in the Google documentation are ok. I was running into the same issue with CocoaPods installing the old version. Use the Cocoa Pods update command and it fetches the latest version of Admob and the error goes away.
I see it right here in GADMobileAds.h. Check to see if you have the most up to date version.
//
// GADMobileAds.h
// Google Mobile Ads SDK
//
// Copyright 2015 Google Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#interface GADMobileAds : NSObject
/// Returns the shared GADMobileAds instance.
+ (GADMobileAds *)sharedInstance;
/// Configures the SDK using the settings associated with the given application ID.
+ (void)configureWithApplicationID:(NSString *)applicationID;

Getting started with Firebase, iOS and Swift

Perhaps this is a n00b question but I'm going to ask it anyways. I followed the instructions for adding Firebase to a Swift app via CocoaPods. Everything seems to have worked fine. Here is my Podfile:
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
target 'FirebaseDemo2' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for FirebaseDemo2
pod 'Firebase'
end
When trying to import the Firebase module into the AppDelegate, at first Xcode complains it cannot find it but the project builds just fine. However, when trying to add the FIRApp it then fails to build because it cannot find the class.
The Podfile is in the same directory as the .xcodeproj and I am opening the .xcworkspace file in Xcode. This is really confusing me. Can someone see what I am doing wrong? Is CocoaPods misconfigured?
I had the same problem, it installed 2.5.1 but you need 3.2.0
Try running
pod update Firebase
You should now have Firebase 3.2.0
I think your Podfile should look like this:
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
use_frameworks!
target 'FirebaseDemo2' do
pod 'Firebase'
end
Make sure to open the Xcodeworkspace and not the Project

Header files are not found after updating an existing application with the salesforce-ios-sdk

I've followed the steps described by salesforce and installed the iOS-mobile-sdk via cocoa pods to an existing iOS Swift project. Unfortunately the header files are not found.
Is a reference to a path missing?
Thanks for your help.
I was able to solve this issue:
The current SalesForceMobileSDK does not support Frameworks. Don't uncomment
# use_frameworks!
in the podfile:
# 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 'ApproverApp' do
pod 'SalesforceMobileSDK-iOS'
end

Resources