I have MySDK framework that contains mediasop. When i import SDK to my project, i have to duplicate mediasoup too. If i don't duplicate, there is an error: No such module ‘WebRTC’.
I'm using mediasoup 1.5.3 version from there: https://github.com/ethand91/mediasoup-ios-client
Ready to give any additional info.
Have been trying to solve it for week, but can't find a way to fix it.
here is SDK podfile:
target ‘MySDK’ do
use_frameworks!
pod “mediasoup_ios_client”, ‘1.5.3’
end
post_install do |pi|
pi.pods_project.targets.each do |t|
t.build_configurations.each do |config|
config.build_settings[‘BUILD_LIBRARY_FOR_DISTRIBUTION’] = ‘YES’
config.build_settings[‘ONLY_ACTIVE_ARCH’] = ‘NO’
end
end
end
here is project podfile:
platform :ios, ‘12.1’
target ‘MyProject’ do
use_frameworks!
pod ‘MySDK’
pod “mediasoup_ios_client”, ‘1.5.3’
end
tried to add mediasoup to SDK locally but without success
Related
I have upgrade react-native to 0.64 and I'm getting this error after I run pod install.
No podspec found for `FBReactNativeSpec` in `../node_modules/react-native/Libraries/FBReactNativeSpec`
I have tried to remove the node_module, remove the pod file, deintegrate, but still got this issue.
Any help?
The newer version of ReactNative (starting from 0.64) store FBReactNativeSpec in another folder.
You will need to replace the legacy FBReactNativeSpec path with the new one in the Pod declaration.
Open your Podfile and find this line :
pod 'FBReactNativeSpec', :path => "./node_modules/react-native/Libraries/FBReactNativeSpec"
And fix the path by replacing with this one :
pod 'FBReactNativeSpec', :path => "../node_modules/react-native/React/FBReactNativeSpec"
While I am updating to the new react-native version 0.64.1,then I got the above-mentioned error when I tried pod install.I have fixed the issue by replacing the content on my podfile like the following
https://raw.githubusercontent.com/react-native-community/rn-diff-purge/release/0.64.1/RnDiffApp/ios/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, '10.0'
target 'RnDiffApp' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => false
)
target 'RnDiffAppTests' 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!()
post_install do |installer|
react_native_post_install(installer)
end
end
I changed my podfile like the above.Then I tried pod install on my terminal.Its working fine.
Try npx react-native-clean-project
Input 'Y' for all the prompts asked.
I had the same question these days and found out it was because of the command npm audit fix i ran. It automatically updated react native version, which made podfile somehow confused. Downgrade your rn package or reset your version control should work
I am currently adding monogodb to my ios project. Just after following the instruction stitch mongodb offered, I am stuck at when pod installing StitchCoreSDK. It supposed to create a xcworkspace file, but it didn't. Instead, I got the following message.
enter image description here
The podfile I create is like following
# Uncomment the next line to define a global platform for your project
platform :ios, '11.4'
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
target 'paotuaniOS' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
# Pods for paotuaniOS
pod 'Nexmo-Stitch'
pod 'StitchSDK', '~> 4.0.5'
target 'paotuaniOSTests' do
inherit! :search_paths
# Pods for testing
end
target 'paotuaniOSUITests' do
inherit! :search_paths
# Pods for testing
end
end
Can any one help me with this issue?
Thanks!!!
I had this issue before. The repo had problems. The repo has been updated. Please use
pod 'StitchSDK', '~> 4.1.1'
Hey I was able to instal the web3swift pod using pod install but afterwards I can't import it in the project, so I can't start using it. Any tips?
Here is the Podfile code
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'Hello' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'web3swift', '~> 0.8.0'
# Pods for Hello
target 'HelloTests' do
inherit! :search_paths
# Pods for testing
end
target 'HelloUITests' do
inherit! :search_paths
# Pods for testing
end
end
Here is what my Xcode looks like
I have managed to fix it myself, deleted everything, started from scratch. Then I have build the project and somehow everything works now..
I'm new to ios development. For some reason I need to manually set podfile for my Cordova app. There are GoogleCloudMessaging and GGLInstanceID in my podfile, now I want to install a brightcove video player library, the source is https://github.com/brightcove/BrightcoveSpecs.git. However when I add the source on the top of podfile, it seems cocoapods also try to install GoogleCloudMessaging from that source.
My podfile:
source 'https://github.com/brightcove/BrightcoveSpecs.git'
use_frameworks!
platform :ios, '8.0'
target 'myapp' do
pod 'Brightcove-Player-Core/dynamic'
pod 'GoogleCloudMessaging'
pod 'GGLInstanceID'
end
Error:
Analyzing dependencies
[!] Unable to find a specification for `GoogleCloudMessaging`
You need to include the official CocoaPods source:
https://github.com/CocoaPods/Specs.git
Docs:
The official CocoaPods source is implicit. Once you specify another source, then it will need to be included.
So your file should work like this I believe:
source 'https://github.com/brightcove/BrightcoveSpecs.git'
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
platform :ios, '8.0'
target 'myapp' do
pod 'Brightcove-Player-Core/dynamic'
pod 'GoogleCloudMessaging'
pod 'GGLInstanceID'
end
Try by giving like:
pod "Brightcove-Player-FreeWheel", :git => 'https://github.com/brightcove/BrightcoveSpecs.git'
i am using Xcode 7 Beta3.
I tried to include one dependency, so this is my podfile:
platform :ios, '8.0'
use_frameworks!
target 'Test' do
pod 'Alamofire', '1.2.3'
end
target 'TestTests' do
end
target 'TestUITests' do
end
But when i import this class:
import Alamofire
i get:
No such module Alamofire
Anybody had this issue before?
Thanks and Greetings!
I ran into issues where Xcode 7 Beta 5 (7.1)(newest at the time) mixed with a Podfile would not recognize any of the pods I wanted to import.
Cocoapods updated to fix these issues.
[sudo] gem update cocoapods
Once that was up to date, I checked the git repositories that were included in my Podfile to see if any of them had Swift 2 branches.
After adding the :branch => 'swift-2' to the Podfile for the pod I am using, I was able to make the error in Xcode go away, and import the module.
Based on the comments on your question, Alamofire does have this branch and you should use that.
Run pod update on your project after saving your Podfile.