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?
Related
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 am using the Socket IO-Swift library in my current project. After installing the Socket.IO-Client-Swift pod file into my project, my FMDB library path is not found, showing this error:
library not found for -lAFNetworking
I'm using the following pods in my podfile:
pod 'Socket.IO-Client-Swift', '~> 12.1.0'
use_frameworks!
pod 'AFNetworking', '~> 3.1.0'
pod 'CocoaLumberjack', '~> 3.2.0'
pod 'MBProgressHUD', '~> 1.0.0'
pod 'SDWebImage', '~> 4.0.0'
pod 'Reachability', '~> 3.2’
pod 'IQKeyboardManager', '~> 4.0.9’
pod 'CrittercismSDK', '~> 5.6.8’
pod 'SocketIO’, '~> 0.0.1’
pod 'GPUImage’, '~> 0.1.7’
pod 'iCarousel’, '~> 1.8.3’
pod 'TwitterKit'
pod 'GoogleMaps'
pod 'GooglePlaces'
pod 'GooglePlacePicker'
pod 'Google/SignIn'
pod 'Firebase/Core’
pod 'Firebase/Crash'
pod 'Fabric'
pod 'Crashlytics'
pod 'AWSCloudWatch'
pod 'AWSCognito'
pod 'AWSCognitoIdentityProvider'
pod 'AWSDynamoDB'
pod 'AWSEC2'
pod 'AWSIoT'
pod 'AWSKinesis'
pod 'AWSLambda'
pod 'AWSLex'
pod 'AWSMachineLearning'
pod 'AWSPinpoint'
pod 'AWSPolly'
pod 'AWSRekognition'
pod 'AWSS3'
pod 'AWSSES'
pod 'AWSSimpleDB'
pod 'AWSSNS'
pod 'AWSSQS'
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!
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.
I have updated cocoapods today to 1.0.0 version. I got this string when I update the pods:
[!] Invalid Podfile file: [!] The specification of link_with in the Podfile is now unsupported, please use target blocks instead..
I have removed link_with in my podFile but I can't build the project because I have many Match-O-Linkers. Any one knows how should I fix this problem?
This is my Podfile right now:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
inhibit_all_warnings!
pod 'pop', '~> 1.0'
pod 'AFNetworking', '~> 1.3'
pod 'SDWebImage', '~> 3.7'
pod 'GoogleAnalytics', '~> 3'
pod 'ARAnalytics' , :subspecs => ["Crashlytics", "Amplitude", "DSL"]
pod 'FBSDKCoreKit', '~> 4.10.1'
pod 'FBSDKLoginKit', '~> 4.10.1'
pod 'FBSDKShareKit', '~> 4.10.1'
pod 'Google/SignIn'
pod 'Branch'
pod 'Leanplum-iOS-SDK'
pod 'Fabric', '1.6.7'
pod 'Crashlytics', '3.7.0'
pod 'TwitterKit'
pod 'Digits'
target 'minubeTests' do
pod 'OCMockito'
end
Try this. Works for me with more than one target.
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
def myPods
pod 'pop', '~> 1.0'
pod 'AFNetworking', '~> 1.3'
pod 'SDWebImage', '~> 3.7'
pod 'GoogleAnalytics', '~> 3'
pod 'ARAnalytics' , :subspecs => ["Crashlytics", "Amplitude", "DSL"]
pod 'FBSDKCoreKit', '~> 4.10.1'
pod 'FBSDKLoginKit', '~> 4.10.1'
pod 'FBSDKShareKit', '~> 4.10.1'
pod 'Google/SignIn'
pod 'Branch'
pod 'Leanplum-iOS-SDK'
pod 'Fabric', '1.6.7'
pod 'Crashlytics', '3.7.0'
pod 'TwitterKit'
pod 'Digits'
end
target 'yourTargetOne' do
myPods
end
target 'yourTargetTwo' do
myPods
end
target 'minubeTests' do
pod 'OCMockito'
end
According to the new official CocoaPods specification since version 1.0 the new model is this:
Note that BasePods is not the actual name of any target in the project.
TargetNameOne and TargetNameTwo are the real names.
platform :ios, '8.1'
inhibit_all_warnings!
abstract_target 'BasePods' do
## Networking
pod 'AFNetworking', '~> 2.6'
# Twitter
pod 'TwitterKit', '~> 1.9'
pod 'Fabric'
# Specify your actual targets
target 'TargetNameOne'
target 'TargetNameTwo'
end
Edit - There is an implicit abstract target at the root of the Podfile now, so you could write the above example as:
platform :ios, '8.1'
inhibit_all_warnings!
## Networking
pod 'AFNetworking', '~> 2.6'
# Twitter
pod 'TwitterKit', '~> 1.9'
pod 'Fabric'
# Specify your actual targets
target 'TargetNameOne'
target 'TargetNameTwo'
This is for multiple targets which is the most common case, but can be used for single target as well and I like one universal pattern.
With the new specification. all your pod include should be specified target based.
Change your pod file to
platform :ios, '8.0'
# change minube to whatever name is of you main target
target 'minube' do
pod 'pop', '~> 1.0'
pod 'AFNetworking', '~> 1.3'
pod 'SDWebImage', '~> 3.7'
pod 'GoogleAnalytics', '~> 3'
pod 'ARAnalytics' , :subspecs => ["Crashlytics", "Amplitude", "DSL"]
pod 'FBSDKCoreKit', '~> 4.10.1'
pod 'FBSDKLoginKit', '~> 4.10.1'
pod 'FBSDKShareKit', '~> 4.10.1'
pod 'Google/SignIn'
pod 'Branch'
pod 'Leanplum-iOS-SDK'
pod 'Fabric', '1.6.7'
pod 'Crashlytics', '3.7.0'
pod 'TwitterKit'
pod 'Digits'
end
target 'minubeTests' do
pod 'OCMockito'
end