Import GoogleWebRTC with pod but no header files - webrtc

use_frameworks!
install! 'cocoapods',
:preserve_pod_file_structure => true
platform :ios, '11.0'
source 'https://github.com/CocoaPods/Specs.git'
target 'WebRTCDemo' do
inherit! :search_paths
pod 'GoogleWebRTC'
end
Only static libraries have no header files
I have also downloaded the header file in the source code, but there are still other errors

Related

React-Native - iOS - CocoaPods could not find compatible versions for pod "OpenSSL-Universal":

I want to run a "pod install". I get the warning "[!] use_flipper is deprecated, use the flipper_configuration option in the use_react_native function"
So i replace the line "use_flipper!" to "use_flipper!({ 'Flipper-Folly' => '2.3.0' })" in my Podfile.
After this i removed the lock-File and run a "pod install" again.
I get the error
[!] CocoaPods could not find compatible versions for pod "OpenSSL-Universal":
In Podfile:
Flipper-Folly (= 2.3.0) was resolved to 2.3.0, which depends on
OpenSSL-Universal (= 1.0.2.20)
OpenSSL-Universal (= 1.1.1100)
Specs satisfying the `OpenSSL-Universal (= 1.1.1100), OpenSSL-Universal (= 1.0.2.20)` dependency were found, but they required a higher minimum deployment target.
My deployment target for iOS is "13.0". I have changed my deployment target but without any solution. Can someone help me?
My podfile:
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/#react-native-community/cli-platform-ios/native_modules'
platform :ios, '13.0'
install! 'cocoapods', :deterministic_uuids => false
target 'XXApp' do
config = use_native_modules!
# Flags change depending on the env values.
flags = get_default_flags()
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => flags[:hermes_enabled],
:fabric_enabled => flags[:fabric_enabled],
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
pod 'react-native-beacons-manager', :path => '../node_modules/react-native-beacons-manager'
target 'XXAppTests' do
inherit! :complete
# Pods for testing
end
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
use_flipper!({ 'Flipper-Folly' => '2.3.0' })
post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end
end
add this line in your pod file:
pod 'OpenSSL-Universal'
replace this line
use_flipper!({ 'Flipper-Folly' => '2.3.0' })
with
use_flipper!
delete podfile.lock and pods folder,
then run
pod install

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/

Clarification: Can anyone build app successfully with react-native latest (0.61.5) after upgrading to latest

I have a clarification. I am trying to upgrade my react-native version. But still, it shows the runtime errors. Can anyone able to build the react-native (0.61.5) without any issues.
React/RCTBridgeModule.h' file not found is faced by many of us. No solution yet. So I moving to 0.60.0. Anyone have any good solution.
In file included from /Applications/App/ios/helloworld/AppDelegate.m:11:
../node_modules/bugsnag-react-native/cocoa/BugsnagReactNative.h:3:9: fatal error: 'React/RCTBridgeModule.h' file not found
Note: pod install from ios folder, cleaning the pod and Xcode and also I tried with many solutions. Nothing worked for me.
My Podfile Before
# 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 'BugsnagReactNative', :path => '../node_modules/bugsnag-react-native'
#pod 'rn-fetch-blob', :path => '../node_modules/rn-fetch-blob'
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'
end
target 'AppTests' do
inherit! :search_paths
# Pods for testing
end
end
My Podfile now
# 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

No such module PDFReader

so i try to install PDF Reader. https://cocoapods.org/pods/PDFReader in installation guide i follow the instruction
target 'thePDF' do
pod 'PDFReader', '~> 2.1'
end
after pod install
i try so many option like only pod 'PDFReader' or try different version but still doesn't work.
EDIT:
i try
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, ‘8.0’
use_frameworks!
target ‘thePDF’ do
pod 'PDFReader', :git => 'https://github.com/Alua-Kinzhebayeva/iOS- PDF-Reader.git'
end
and it works, but when build, it shows some errors