How to stop derive file from generating new info? - swift

I get the error ld: 89 duplicate symbols for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
and from what I've researched it seems the error is from the derived file but when I delete it new data gets created how do I stop it from creating new file, data etc? (it also seems related to Cocoapods or firebase)
my pod file:# Uncomment the next line to define a global platform for your project
target 'yeeeeeer' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for yeeeeeer
pod 'Firebase/Core', '3.2.1'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
pod 'Firebase/Database' end

Related

Kubernetes: "Liveness probe failed: rm: cannot remove '/tmp/healthy': No such file or directory"

After installing the helm charts of an application, I am getting the following error:
Liveness probe failed: rm: cannot remove '/tmp/healthy': No such file or directory
The command to remove is inside the pod definition wihtin the helm charts
The pod is created but the containers keeps on failing and displays the above error. But since the file doesn't exist, how can I create the file first or at least sort out the error ?
The apparent intent is that the flag file /tmp/healthy should no longer exist.
The code is buggy in that it fails when it tries to make not-existing something that is already not-existing.
The fix is probably to use 'rm -f'.
For background, the 'liveness probe' is a periodic check by kubernetes on the health or otherwise of a pod. There are a number of forms the check can take; a simple one is the presence or absence of a specified file.

Unable to find a target named `<Workspace Name>` in project `Xtreme.xcodeproj`

i'm working on swift 3 project with xcode 10.1, i have a requirement to install few pods (firebase/crashlytics), however when i trigger the pod install it seems to return the following error message. the previous used the same pod file and the project is running perfectly. the only issue is with installing new pods. anyone can help?
Get-R-Done -: Workspace name
Xtreme -: Project name
Pod File
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'Get-R-Done' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'SwiftyJSON', '~> 3.1'
pod 'RealmSwift', '~> 2.1'
pod 'ALCameraViewController'
pod 'ReachabilitySwift', '~> 3'
pod 'ILPDFKit', '~> 1.0'
pod 'Fabric'
pod 'Crashlytics'
pod 'ActiveLabel', '~> 0.7'
# Add the pod for Firebase Crashlytics
pod 'Firebase/Crashlytics'
# Recommended: Add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
# Pods for Get-R-Done
target 'Get-R-DoneTests' do
inherit! :search_paths
# Pods for testing
end
target 'Get-R-DoneUITests' do
inherit! :search_paths
# Pods for testing
end
end
Error message that i get
[!] Unable to find a target named `Get-R-Done` in project `Xtreme.xcodeproj`, did find `Xtreme`, `XtremeTests`, and `XtremeUITests`.
Updated to Swift 4 and resolved isseue

Unable to find a specification for a local (private) pod

I created two local pods: MainPods & ChildPod like this:
Create Framework (in Xcode)
pod init & pod install for MainPod & ChildPod
pod spec create MainPod & pod spec create MainPod (in their folders)
modify it
Then I inited pod in root folder of application:
platform :ios, '13.0'
target 'PrivatePodBugDemo' do
use_frameworks!
# pod 'ChildPod', :path => 'DevPods/ChildPod'
pod 'MainPod', :path => 'DevPods/MainPod'
end
MainPod.podspec
ChildPod.podspec
What did you expect to happen?
I expected to all run good when I include only MainPod which already includes ChildPod.
What happened instead?
This error happened
[!] Unable to find a specification for ChildPod depended upon by MainPod
It's disappears when I uncomment pod 'ChildPod', :path => 'DevPods/ChildPod' in app's Podfile.
But I need to not include ChildPod in app's Podfile.
Project that demonstrates the issue
https://github.com/ocbnishi/PrivatePodBugDemo
https://github.com/CocoaPods/CocoaPods/issues/9803

Use of unresolved identifier 'Braintree'

I am using the braintree using the cocoapods in my swift ios application. I successfully installed the braintree in my ios app. my pod file structure is:
target 'appName' do
pod 'GoogleMaps'
pod 'GooglePlaces'
# use_frameworks!
pod 'AFNetworking', '~> 2.6.0'
pod 'CardIO'
pod 'NSURL+QueryDictionary', '~> 1.0'
pod 'PureLayout'
pod 'FLEX'
pod 'InAppSettingsKit'
pod 'iOS-Slide-Menu'
# pod "BraintreeDropIn", :path => "./"
# pod 'Braintree/Apple-Pay'
pod 'Braintree/PayPal'
# pod 'Braintree/Venmo'
end
I added below header file in bridge file:
#import "BraintreeCore.h"
#import "BraintreePayPal.h"
#import "Braintree.h"
Now when I try to use in my code it says
Braintree.setReturnURLScheme("com.your-company.Your-App.payments")
Use of unresolved identifier 'Braintree'
So please suggest.
You don't need to import anything in bridging header file. After the installation from cocoapods, you can import it in any swift file as below,
import Braintree
And to set returnUrlScheme, you can use BTAppSwitch as below
BTAppSwitch.setReturnURLScheme("com.your-company.Your-App.payments")

Link one target with multiply other targets

I've this setup in my Podfile file
target "A" do
pod "Pod1"
target "ATests" do
pod "Pod2"
end
end
target "B" do
pod "Pod3"
target "BTests" do
pod "Pod4"
end
end
target "SharedTests" do
pod "Pod5"
end
How do I link targets ATests and BTests with SharedTests but not A and B. Was hoping to use something like link_with, but that seems to be long gone.
My goal is to share code, not necessarily pods, between the test targets in my application.