Showing error on install Firebase/Messaging pod in xcode 11.3? - objective-c

enter image description here
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/RemoteConfig'
pod 'Firebase/Storage'
I am trying to install firebase/Messaging, with FirebaseAnalytics but it gives error shown in below. please suggest the solution.
!] Unable to find a specification for FirebaseAnalyticsInterop (~> 1.5) depended upon by FirebaseMessaging
You have either:
* out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.

I have been able to install the dependencies with below pod file without any issues.
use_frameworks!
platform :ios, '9.0'
install! 'cocoapods'
target 'PodTest' do
use_frameworks!
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/RemoteConfig'
pod 'Firebase/Storage'
end

Related

Can't install google map pod in react-native-map

I have an issue in installing google map pod in react-native-maps.
react-native-maps is working well without google map. But I have an issue when I add google map to iOS project.
Follow is my pod file
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/#react-native-community/cli-platform-ios/native_modules'
platform :ios, '10.0'
target 'sa' do
# React Native Maps dependencies
rn_maps_path = '../node_modules/react-native-maps'
pod 'react-native-google-maps', :path => rn_maps_path
pod 'GoogleMaps'
pod 'Google-Maps-iOS-Utils'
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
target 'saTests' do
inherit! :complete
# Pods for testing
end
end
target 'sa-tvOS' do
# Pods for sa-tvOS
target 'sa-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
when I start pod install, then shows following error:
JSON::ParserError - 416: unexpected token at '"Example/GoogleMapsDemos/Resources/ne'
Follow is my environment:
CocoaPods : 1.9.3
Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
RubyGems : 3.0.3
Host : Mac OS X 10.15.6 (19G73)
Xcode : 12.0.1 (12A7300)
Git : git version 2.24.3 (Apple Git-128)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/
I hope your help. Thanks.
Problem is pod. After pod upgrade the issue is fixed

After run pod install react get removed while upgrading react-native version

Can anyone explain why the pod install removing the React. Also it shows the React missing in product-->Edit scheme.
I need any good solution
RCTBrigeModule.h file not found error?
I dont have any idea how to fix this.
Before unlinking the package and not run pod install
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
require_relative '../node_modules/#react-native-community/cli-platform-ios/native_modules'
pod 'Fabric'
pod 'Crashlytics'
target 'App' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for App
target 'App-tvOSTests' do
inherit! :search_paths
# Pods for testing
pod 'rn-fetch-blob', :path => '../node_modules/rn-fetch-blob'
pod 'BVLinearGradient', :path => '../node_modules/react-native-linear-gradient'
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
pod 'RNImageCropPicker', :path => '../node_modules/react-native-image-crop-picker'
pod 'react-native-camera', :path => '../node_modules/react-native-camera'
pod 'RNImageRotate', :path => '../node_modules/react-native-image-rotate'
pod 'RNShare', :path => '../node_modules/react-native-share'
pod 'RNViewShot', :path => '../node_modules/react-native-view-shot'
pod 'RNFS', :path => '../node_modules/react-native-fs'
pod 'BugsnagReactNative', :path => '../node_modules/bugsnag-react-native'
pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler'
pod 'react-native-webview', :path => '../node_modules/react-native-webview'
end
target 'AppTests' do
inherit! :search_paths
# Pods for testing
end
end
After linking and run pod install
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
require_relative '../node_modules/#react-native-community/cli-platform-ios/native_modules'
pod 'Fabric'
pod 'Crashlytics'
target 'App' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for App
target 'App-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
target 'AppTests' do
inherit! :search_paths
# Pods for testing
end
end
If you trying to to upgrade to v0.60+, you have to do this manually with this tool.
(https://react-native-community.github.io/upgrade-helper/). There is many breaking changes including pod support and androidX support.
Update all libraries to latest version, remove all manual linked libraries before RN upgrade from Xcode, to avoid Xcode crashes.
This article may help https://reactnative.thenativebits.com/courses/upgrading-react-native/upgrade-to-react-native-0.60/

Trying to install XMPPFramework in my objective c Project using Podfile

I am trying to install XMPPFramework in my objective c Project using Podfile.I had write this in my Podfile:
platform :ios, ‘8.0’
use_frameworks!
target ‘XMPP’ do
pod 'XMPPFramework', :git =>"https://github.com/robbiehanson/XMPPFramework.git", :branch => 'master'
end
But I am getting this Error while pod install this error is show in console.This is the image of console::
Can some one please Help me.Thanks.
Add this in your pod file,
pod 'XMPPFramework'
Remove ,
pod 'XMPPFramework', :git
=>"https://github.com/robbiehanson/XMPPFramework.git", :branch => 'master'
Run,
pod install
Try this. Hope it will help you.

Merge SwiftyJSON.swiftmodule fails with error No such file or directory

I have upgraded to Xcode 7 and my project to Swift2. My project is a hybrid of ObjC and Swift code. I also upgraded to cocoa pods 0.38.2. After the upgrade, the project has failed to compile. Specifically, compilation is failing with the following error:
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
I have traced this problem to the following message:
MergeSwiftModule normal x86_64 /Users/murdockcrc/repos/HdV%20-%20iOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/SwiftyJSON.build/Objects-normal/x86_64/SwiftyJSON.swiftmodule
which fails with the following error:
<unknown>:0: error: error opening '/Users/murdockcrc/repos/HdV%20-%20iOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/SwiftyJSON.build/Objects-normal/x86_64/SwiftyJSON-Swift.h' for output: No such file or directory
The problem is not related to SwiftyJSON only. Even if I remove this library, another of my Swift dependencies will fail with the same error.
I am not knowledgeable in the way cocoa pods works with frameworks and mixed objc-swift projects, but I supposed something is wrong with the umbrella headers and making the dependencies accessible to the swift compiler.
Here is my podfile
# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
target 'Helden der Volksmusik' do
pod 'DateTools', '1.5.0'
pod 'UALogger', '~> 0.3'
pod 'KZPropertyMapper', '2.5.0'
pod 'AFNetworking', '2.5.4'
pod "MTJSONUtils"
pod "TTTAttributedLabel", "1.13.3"
pod 'PureLayout', '2.0.6'
pod 'Alamofire', '~> 2.0'
pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git', :branch => 'xcode7'
pod 'SwiftDate', :git => 'https://github.com/malcommac/SwiftDate.git', :branch => 'swift-2.0'
pod 'SwiftSpinner', '0.8.0'
end
target 'Helden der VolksmusikTests' do
pod 'DateTools', '1.5.0'
pod 'UALogger', '~> 0.3'
pod 'KZPropertyMapper', '2.5.0'
pod 'AFNetworking', '2.5.4'
pod "MTJSONUtils"
pod "TTTAttributedLabel", "1.13.3"
pod 'PureLayout', '2.0.6'
pod 'Alamofire', '~> 2.0'
pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git', :branch => 'xcode7'
pod 'SwiftDate', :git => 'https://github.com/malcommac/SwiftDate.git', :branch => 'swift-2.0'
end

cocoapods framework not found

I'm getting framework not found error when running my workspace with cocoa pod.
ld: framework not found AFNetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm looking in my build settings and I have $(inherited) set as the framework search path. Is that where cocoa pad generates the framework files?
here's my Podfile:
# Uncomment this line to define a global platform for your project
# platform :ios, '7.0'
use_frameworks!
target 'workouttracker' do
pod 'AFNetworking', '~> 2.5'
pod 'ORStackView', '~> 2.0'
pod 'SwiftyJSON', '~> 2.1'
pod "MagicalRecord"
end
target 'WorkoutTrackerTests' do
end
target 'workouttracker WatchKit Extension' do
pod 'AFNetworking', '~> 2.5'
pod 'ORStackView', '~> 2.0'
pod 'SwiftyJSON', '~> 2.1'
pod "MagicalRecord"
end
target 'workouttracker WatchKit App' do
pod 'AFNetworking', '~> 2.5'
pod 'ORStackView', '~> 2.0'
pod 'SwiftyJSON', '~> 2.1'
pod "MagicalRecord"
end
This is a linking issue.
What does your LD_RUNPATH_SEARCH_PATHS & OTHER_LDFLAGS look like in the Build Target? Make sure to use the $(inherited) flag. You might see that warning as the output during pod install.