I'm making some weather app. and i want to show weather info on widget too
So i tried to import Alamofire in Widget's ViewController but it couldn't find module
I also check tutorial from other blog or website, but in my project i cannot find Alamofire in `Linked Frameworks and Libraries like this
This is my Podfile
platform :ios, '10.0'
target 'From Yesterday' do
use_frameworks!
pod 'Alamofire'
pod 'SVProgressHUD'
pod "ScalingCarousel"
end
I also edit Pod file like below
platform :ios, '10.0'
use_frameworks!
target 'From Yesterday' do
use_frameworks!
pod 'Alamofire'
pod 'SVProgressHUD'
pod "ScalingCarousel"
end
target 'From Yesterday Widget' do
pod 'Alamofire'
end
but it gaves me some warning not error, I think that means i installed Pods twice so I think this is wrong
How can i use Alamofire correctly in Widget
Related
I am refactoring a monolithic codebase and want to split it into frameworks, my current situation is as follows:
App Project, depends on A, B and C
Framework A
Framework B, depends on A
Framework C, depends on A and B
All the above are in the same workspace, and each has his own pods:
App uses Firebase, Cryptoswift and RxSwift
Framework A uses Firebase and RxSwift
Framework B and C use RxSwift
Everything works fine, but at app launch, I see in the log that there are multiple (two) definitions for each framework, for example:
RxSwift is implemented in both 'app' and 'frameworka', which implementation will be used is undefined
(Tried both "Do no Embed" and "Embed & Sign")
Any ideas?
I am also fine switching to some other package manager if it helps solve the problem...
Thanks in advance!
My Podfile looks something like this:
platform :ios, '11.0'
use_frameworks!
workspace 'App'
project 'App/App'
project 'FrameworkA/FrameworkA'
project 'FrameworkB/FrameworkB'
project 'FrameworkC/FrameworkC'
target 'Appp' do
project 'App/App'
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics'
pod 'Firebase/RemoteConfig'
pod 'CryptoSwift'
pod 'RxSwift'
pod 'RxCocoa'
end
target 'FrameworkA' do
project 'FrameworkA/FrameworkA'
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Analytics'
pod 'Firebase/RemoteConfig'
pod 'RxSwift'
pod 'RxCocoa'
end
target 'FrameworkB' do
project 'FrameworkB/FrameworkB'
pod 'RxSwift'
pod 'RxCocoa'
end
target 'FrameworkC' do
project 'FrameworkC/FrameworkC'
pod 'RxSwift'
pod 'RxCocoa'
end
After some trial and error I did not find a solution to this.
I just ended up moving to Swift Package Manager, which does throw a compiler error (instead of just a line in the console log) when duplicated dependencies are found.
I then realized I could remove the dependencies and that's it.
We are trying to integrate FireBase SDK in Unity Project for iOS platform. For testing, we imported FireBaseAnalytic.unitypackage in an empty project, and put GoogleService-Info.plist on Assets folder.
Once we export XCode project from Unity and build in XCode we are getting few errors about missing few classes from:
we also tried to install Cocoapods file and place Podfile in XCode Project. Cocoapod file contains information as below:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'Unity-iPhone' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for Unity-iPhone
target 'Unity-iPhone Tests' do
inherit! :search_paths
# Pods for testing
pod 'Firebase/AdMob'
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Crash'
pod 'Firebase/Database'
pod 'Firebase/DynamicLinks'
pod 'Firebase/Invites'
pod 'Firebase/Messaging'
pod 'Firebase/Performance'
pod 'Firebase/RemoteConfig'
pod 'Firebase/Storage'
end
end
even these all changes do not help to build test project even just with Firebase Analytic.
I wonder if anyone of you have tried the database quickstart sample provided by Firebase.
https://github.com/firebase/quickstart-ios/tree/master/database
I am able to run the Objective-C part but when I tried to target the Swift part, there is this error message: Firebase module is not available.
I am not too sure what I did wrong and if you have successfully targeted and ran the Swift part, may be you could give me some hints.
The pod file was included in the sample which is as shown below:
# DatabaseExample
use_frameworks!
platform :ios, '7.0'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'FirebaseUI'
target 'DatabaseExample' do
end
target 'DatabaseExampleSwift' do
end
target 'DatabaseExampleTests' do
end
The pod declarations should be inside your target like so:
platform :ios, '7.0'
target 'DatabaseExample' do
use_frameworks!
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'FirebaseUI'
end
target 'DatabaseExampleSwift' do
end
target 'DatabaseExampleTests' do
end
I have been working with googles map SDK and I haven't had any problems until I added another dependency in my podfile. I get this error in Xcode saying, "Module 'Google Maps' not found" where I have '#import GoogleMaps'. If I take out the new pod the error goes away and everything works fine. I just recently started using cocoaPods, Is there something I'm missing in my podfile?
platform :ios, '6.1'
pod 'SDWebImage', '~>3.7'
source 'https://github.com/CocoaPods/Specs.git'
pod 'GoogleMaps'
You just have to add
target 'Your Project' do
pod 'SDWebImage', '~>3.8'
pod 'GoogleMaps'
target 'Your ProjectTests' do
# Pods for testing
end
The project will run fine now..
I'm recently learn iOS and I want to install the GoogleMap SDK for iOS in my project.
But when I installed with pod install it got an error say that the 'GoogleMaps' doesn't have concrete dependency ... or some thing like that.
I did as the instruction on the GoogleMapsAPI web source and this is my Podfile
'https://github.com/CocoaPods/Specs.git'
pod 'GoogleMaps'
Please tell me where do I did wrong. Thanks
You have to specify a target for each pod.
e.g. if before you had your Podfile written like this:
pod 'GoogleMaps'
just change it to
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.1'
target "TargetName" do
pod 'GoogleMaps'
end
When you are working with latest pod you need to write Target in Pod file
Like below.
Currently your pod file looking like
pod "YOUR_POD"
Change To
target "Your_Target_Name" do
pod "YOUR_POD"
end