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'
Related
Working on a react-native(version 0.59.5) project, just installed cocoapods(version 1.7.5)
Installation process:
(from within project directory)
-sudo gem install cocoapods
(from within iOS directory of project)
-pod init
-pod install --repo-update
Result:
Analyzing Dependencies
[!] The Target 'ProjectName-tvOSTests' is declared multiple times.
then tried pod update which resulted in the same 'Analyzing Dependencies' warning. There is only a Podfile and a 'Pods' directory in iOS directory. the pods directory has three sub-directories which are all empty. It seems there was a hangup during pod install but I don't know where to look for the duplicate declaration.
I'm aware you should be working from within the ProjectName.xcworkspace file after a installing cocoapods, but there is no .xcworkspace file in my iOS directory of project. How do I fix this?
EDIT:
Podfile
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'TicTacWHOA' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for TicTacWHOA
pod 'Google-Mobile-Ads-SDK'
target 'TicTacWHOA-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
target 'TicTacWHOATests' do
inherit! :search_paths
# Pods for testing
pod 'Google-Mobile-Ads-SDK'
end
end
target 'TicTacWHOA-tvOS' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for TicTacWHOA-tvOS
target 'TicTacWHOA-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
The issue was that the "Target" was literally declared twice in the Podfile. so simple and right in front of your face potentially. I Just didn't think anything of it because it was a completely generated file except the one line I added.
All you need to do is go to podfile and look for the code in the error
for example my error was
[!] The target fifty-tvOSTests is declared multiple times.
now i have deleted this piece of code from the podfile once.
target 'fifty-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
fifty is the name of my project you know well what is yours
the above piece of code was twice in the Podfile so delete if you find multiple just keep only once
I am integrating push notification in my app. After following instructions 2 times (from here) again I am stuck in errors.
Podfile
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'placementScript' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
use_frameworks!
# Pods for placementScript
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
target 'placementScript-tvOSTests' do
#inherit! :search_paths
# Pods for testing
pod 'react-native-fcm', :path => '../node_modules/react-native-fcm'
pod 'RNReactNativeDocViewer', :path => '../node_modules/react-native-doc-viewer'
pod 'RNFS', :path => '../node_modules/react-native-fs'
pod 'BVLinearGradient', :path => '../node_modules/react-native-linear-gradient'
pod 'RNViewShot', :path => '../node_modules/react-native-view-shot'
end
target 'placementScriptTests' do
inherit! :search_paths
# Pods for testing
end
end
target 'placementScript-tvOS' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for placementScript-tvOS
#target 'placementScript-tvOSTests' do
# inherit! :search_paths
# Pods for testing
#end
end
When i build .xcodeproj
- Errors are
and when i build using .xcworkspace
Can anybody help? Any reference to video/blog will also be helpful.
I think you should set the search path to recursive. Click on your project in Xcode and follow this please:
build Settings > header search path > double click on it and click on + sign,
then add the following path to it:
$(SRCROOT)/../../../ios/Pods
Also keep in mind that you have to make your push notification toggle on in capabilities in the Xcode.
finally close your terminals, clear(command+k) and rebuild it(command+R).
Here are some sources:
https://medium.com/yale-sandbox/react-native-push-notifications-with-https://medium.com/yale-sandbox/react-native-push-notifications-with-firebase-cloud-functions-74b832d45386
https://ilirhushi.me/reactnative-push-notifications-firebase-ios/
I hope I could help. :)
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..
Is it possible to do pod install #targetName?
I stuck with a problem that I do not have an option to update pods for my project but I have to install new pods for my unit tests target.
I don´t think there is any pod update #targetName command in CocoaPods. What you can do is to add the desired pod in your unit test target only and then run a pod update, since there is not any changes in the other targets then they will not be affected by this update.
And if you add targets after you have made your pod init you can just append these targets to your podfile, like this:
target 'ANewTargetAdded' do
inherit! :search_paths
pod 'SomePOD'
end
If you now add a new pod to ANewTargetAdded and run pod update, then this will only affect ANewTargetAdded if you haven´t made any changes to your other targets in your podfile.
There isn't any like pod update #targetName but you can specify different pods for different targets and unit tests and run pod update.
Something like this.
target 'TestProject' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for TestProject
target 'TestProjectTests' do
inherit! :search_paths
# Pods for testing
end
target 'TestProjectUITests' do
inherit! :search_paths
# Pods for testing
end
end
I'll make it short.
I added Firebase to my app via cocoa pods and now I get this warning.
I've tried everything on the net please help.
file:///Users/.../Desktop/game/Pods/GoogleAnalytics/Libraries/libGoogleAnalytics.a: warning: Missing file: /Users/.../Desktop/game/Pods/GoogleAnalytics/Libraries/libGoogleAnalytics.a is missing from working copy
This is my pod file code
platform :ios, '10.0'
target 'game' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
#Pods for game
pod 'Firebase/Core'
pod 'Firebase/AdMob'
pod 'Firebase/Messaging'
pod 'Firebase/Crash'
pod 'GoogleToolboxForMac/Logger'
target 'gameTests' do
inherit! :search_paths
# Pods for testing
end
target 'gameUITests' do
inherit! :search_paths
# Pods for testing
end
end
solved it by creating a new project and copying all the files to there.