guys,
I have this pod file from a not too old project
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'MyApp' do
# Comment the next line if you're not using Swift and don't want to use
dynamic frameworks
use_frameworks!
# Pods for MyApp
pod 'Alamofire', '~> 4.0'
pod 'SwiftyJSON'
pod 'KeychainSwift', '~> 7.0'
pod 'KeychainSwift', '~> 7.0'
pod 'FacebookCore'
pod 'FacebookLogin'
pod 'FacebookShare'
pod 'Fabric'
pod 'Crashlytics'
pod 'RSKImageCropper'
pod 'Koloda', :git => 'https://github.com/Yalantis/Koloda.git', :branch => 'swift-3'
pod 'MBAutoGrowingTextView'
pod 'CCBottomRefreshControl'
pod 'SDAVAssetExportSession', :git => 'https://github.com/rs/SDAVAssetExportSession.git'
pod 'Firebase/Core'
pod 'IQKeyboardManagerSwift'
target 'MyAppTests' do
inherit! :search_paths
end
target 'MyAppUITests' do
inherit! :search_paths
# Pods for testing
end
end
and when I run
pod install
XCode doesn't recognize ProfileHandle variable. I think ProfileHandle is from an older version from any of the pods.
Anyone of you know how to solve it?
Thanks in advance!
Related
The main problem is am using currently Moya on my app, but I want to use some functions from "Moya/RxSwift" pod, the problem I am having is when i change the pod the Alamofire downgrades to 4.9.1 and produce a lot of error in the code, there is a way to edit the pod file to keep using Alamofire 5?
My PODS in the podfile:
# Uncomment this line to define a global platform for your project
# platform :ios, ’10.0’
platform :ios, '10.0'
use_frameworks!
inhibit_all_warnings!
def core_pods
#core
pod 'ZXingObjC'
pod 'Moya/RxSwift'
pod 'RxSwift'
pod 'RxCocoa'
pod 'RxViewModel'
pod 'XCGLogger', '~> 6.1.0'
pod 'SwiftyJSON'
pod 'CryptoSwift', :git => "https://github.com/krzyzanowskim/CryptoSwift", :branch => "master"
pod 'AFDateHelper'
#pod 'Fabric'
#pod 'Crashlytics'
end
def ui_pods
pod 'SVProgressHUD'
pod 'CropViewController'
pod 'lottie-ios'
end
examples of some errors i got on the code because of the downgrade:
I'm getting the following error when trying to archive my IOS code
#include "db/version_edit.h"
'db/version_edit.h' file not found
I have the following in my Podfile:
# Uncomment the next line to define a global platform for your project
platform :ios, '11.2'
target 'test' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Minuteapp
pod 'FBSDKLoginKit'
pod 'Firebase/Database'
pod 'Firebase/Core'
pod 'Firebase'
pod 'AppAuth','~> 1.2.0'
pod 'SwiftMessages' , '7.0.0'
pod 'GoogleSignIn'
pod 'Promises'
pod 'Firebase/Auth'
pod 'Firebase/Analytics'
pod 'Flurry-iOS-SDK/FlurryAds' #Advertising Pod (requires Analytics)
pod 'Flurry-iOS-SDK/FlurryMessaging'
pod ‘Flurry-iOS-SDK/FlurrySDK’
pod 'ApphudSDK'
pod 'FittedSheets', '2.1.1'
pod 'SideMenu'
pod 'ColorThiefSwift', '>= 0.4.1'
pod "SwiftChart"
pod 'SDWebImage', '~> 5.0'
pod 'AQPlayer'
pod 'DeviceKit'
pod "SwiftRater"
# pod 'SwiftyStoreKit'
pod "STPopup"
pod 'Firebase/Analytics'
pod 'OptimizelySwiftSDK', '~> 3.3.2'
pod 'Firebase/DynamicLinks'
end
Here's how the leveldb headers get found in my version of the FirebaseDatabase quickstart:
I'm trying to update my pods, I list the pods updates through
pod outdated
podfile ( Further more I have even tried to out 'Firebase/Auth', '6.3.1' in podfile to specify the version but no use ["-" used in place of app, NDA -_- ] )
# Uncomment the next line to define a global platform for your project
use_frameworks!
platform :ios, '9.0'
def extension_pod
# pod 'ReadabilityKit', '0.7.1'
pod 'SDWebImage', '~> 4.0'
pod 'Firebase'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'FirebaseUI/Database'
pod 'Firebase/Storage'
pod 'Firebase/Core'
end
target '-' do
extension_pod
pod 'LGSideMenuController'
pod 'Firebase/MLVision'
pod 'Firebase/MLVisionTextModel'
#pod 'FirebaseUI', '~> 5.0'
pod 'Firebase/Messaging'
pod 'TOCropViewController'
# [START google_pod]
pod 'GoogleSignIn', '4.1.2'
pod 'ARSLineProgress'
#pod 'TesseractOCRiOS', '4.0.0'
# [END google_pod]
pod 'TwitterKit'
pod 'DateTools'
pod 'Fabric'
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for -
target '-Tests' do
inherit! :search_paths
# Pods for testing
end
target '-UITests' do
inherit! :search_paths
# Pods for testing
end
target '-E' do
extension_pod
end
end
Commands that I have done so far to update my Firebase/Auth repo,
pod update 'Firebase'
pod update 'Firebase/Auth'
pod install --no-repo-update
pod repo update && pod update 'Firebase/Auth'
All of these show as follow, but does not update to the specific version shown by pod outdated, am I missing some command for update process to occur?
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Generating Pods project
Integrating client project
Pod installation complete! There are 17 dependencies from the Podfile and 33 total pods installed.
Another dependency requires FirebaseAuth to be a lower version. See the Podfile.lock to get the details.
Note that you want to update the FirebaseAuth pod - not Firebase/Auth which is the Auth subspec in the Firebase pod.
It might be related to locking the GoogleSignIn pod to an old version.
Change platform :ios, '9.0' to platform :ios, '10.0'
A project was created in Objective-C language and later I used Swift in it. In my pod-file I have couple of Objective-C pods. I tried using RxSwift pod, it didn't allow me to have Swift pods and moreover I can't use use_frameworks! because I have Objective-C pods in it.
platform :ios, '8.0'
# use_frameworks!
target 'MyProject' do
pod 'STPopup'
pod 'AFNetworking', '~> 3.1.0'
pod 'Reachability'
pod 'SVProgressHUD'
pod 'CCHMapClusterController'
pod 'SDWebImage', '~> 3.8.2'
pod 'DateTools'
pod 'Fabric'
pod 'TwitterKit'
pod 'Crashlytics'
pod 'SpinKit', '~> 1.1'
pod 'GPUImage'
pod 'LLSimpleCamera', '~> 5.0'
pod 'MGSwipeTableCell'
pod 'JSONModel'
pod 'ASIHTTPRequest'
pod 'PEPhotoCropEditor', :git => 'https://github.com/luyzdeleon/PEPhotoCropEditor'
pod 'RSKImageCropper', :git => 'https://github.com/luyzdeleon/RSKImageCropper'
pod 'MXParallaxHeader'
pod 'Toast', '~> 3.0'
pod 'TransformerKit'
pod 'FBSDKLoginKit'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FRHyperLabel', '~> 1.0.1'
pod 'STTweetLabel', :git => 'https://github.com/pabelnl/STTweetLabel.git', :branch => 'master'
pod 'STTwitter'
pod 'YSTutorialViewController'
pod 'CTAssetsPickerController', :git => 'https://github.com/pabelnl/CTAssetsPickerController', :branch => 'master'
pod 'RDHCollectionViewGridLayout', '~> 1.2'
pod 'AFNetworking+RetryPolicy'
pod 'AWSMobileAnalytics', '~> 2.4'
pod 'CHTCollectionViewWaterfallLayout'
pod 'BBBadgeBarButtonItem'
pod 'FMDB'
pod 'APAddressBook'
pod 'CTVideoPlayerView'
pod 'IBProgressButton'
pod 'VIMVideoPlayer', :git => 'https://github.com/pabelnl/VIMVideoPlayer', :branch => 'master'
pod 'ICGVideoTrimmer'
pod 'CRGradientNavigationBar', :git => 'https://github.com/luyzdeleon/CRGradientNavigationBar', :branch => 'master'
pod 'KILabel', '~> 1.0.1'
pod 'Firebase/Auth'
pod 'GoogleSignIn'
pod 'SwiftTryCatch'
pod 'libPhoneNumber-iOS', '~> 0.8'
pod 'IGListKit'
pod 'SDWebImage-CircularProgressView'
pod 'RxSwift'
end
Error i am getting with out use_frameworks!:
[!] Pods written in Swift can only be integrated as frameworks; add use_frameworks! to your Podfile or target to opt into using it. The Swift Pod being used is: RxSwift
Error with use_frameworks!:
[!] Unable to integrate the following embedded targets with their respective host targets (a host target is a "parent" target which embeds a "child" target like a framework or extension):
MyProject (true) and share (false) do not both set use_frameworks!.
You can use use_frameworks! even if you have Objective-C pods in it.
Here is my PodFiles, as apple watch extension only need part of the library in the main app.
# Uncomment this line to define a global platform for your project
platform :ios, '7.0'
######################
source 'https://github.com/CocoaPods/Specs.git'
#source 'https://github.com/albertodebortoli/ADBCocoaPodsRepository.git'
target 'MyAppDev WatchKit Extension', :exclusive => true do
pod 'MagicalRecord/Core+Logging', :git => 'https://github.com/magicalpanda/MagicalRecord.git'
pod 'BlocksKit'
pod 'EncryptedCoreData'
end
# Logging
pod 'CocoaLumberjack' #2.0.0-beta4 at the moment
# Networking
pod 'AFNetworking', '~> 2.0'
#pod 'IADownloadManager'
#pod 'TCBlobDownload'
#pod 'ObjectiveCDM', '~> 1.0.5'
#pod 'librabbitmq-objc'
# Database
pod 'MagicalRecord/Core+Logging', :git => 'https://github.com/magicalpanda/MagicalRecord.git'
#pod 'couchbase-lite-ios'
######################
pod 'StompKit'
######################
#pod 'MQTTKit', :git => 'https://github.com/iosphere/MQTTKit'
# Utilities
pod 'XMLDictionary'
pod 'THObserversAndBinders'
pod 'CocoaSecurity'
pod 'KVOController'
pod 'INTULocationManager'
pod 'zipzap'
pod 'libextobjc'
pod 'ReactiveCocoa'
pod 'EncryptedCoreData'
pod 'LPGoogleFunctions'
# UI
pod 'BFPaperButton', '~> 1.5.7'
pod 'SWTableViewCell', '~> 0.3.6'
pod 'FXImageView', '~> 1.3.5'
pod 'MZFormSheetController' , '~> 2.4.1'
pod 'SVProgressHUD'
#pod 'UITableView-AnimationControl'
#pod 'SlackTextViewController'
pod 'QBImagePickerController'
pod 'MWPhotoBrowser'
pod 'SDWebImage', '~>3.6'
pod 'BlocksKit'
pod 'SIAlertView'
pod 'SZTextView'
pod 'ACEDrawingView'
pod 'PEPhotoCropEditor'
pod 'RBStoryboardLink'
pod 'AMPPreviewController'
when I build the target, I got the following error
library not found for -lPods-EncryptedCoreData
but I did include EncryptedCoreData Library in both targets.
any idea?