Frameworks on Cocoapods using old iOS version - ios

When I run pod install Cocoapods Frameworks are referring to iOS 8.3 I can't find the way to change them to iOS 9
--Screenshots
http://1drv.ms/1iTSswC
I'm currently using Xcode 7. My Podfile:
platform :ios, '9.0'
#source 'https://github.com/CocoaPods/Specs.git'
# ignore all warnings from all pods
inhibit_all_warnings!
xcodeproj 'Conversa'
link_with 'Conversa', 'ConversaTests'
pod 'AFNetworking', '~> 2.5'
pod 'JSQMessagesViewController', '~> 7.2.0'
pod 'JSQSystemSoundPlayer', '~> 2.0'
pod 'CocoaLumberjack'
pod 'Fabric'
pod 'Crashlytics'
#pod 'UIActionSheet+Blocks'
pod 'UIAlertView-Blocks'
pod 'YapDatabase/SQLCipher'
pod 'JVFloatLabeledTextField'
pod 'CRToast', '~> 0.0.7'
#pod 'Mantle', '~> 1.4'
#pod 'Navajo', '~> 0.0'
pod 'Appirater'
pod 'SIAlertView'
pod 'GCDWebServer', '~> 3.0'

Related

How to modify an existing podfile for the latest Xcode version?

Is there a way to format this pod file for the latest version of Xcode? Build errors with Afnetworking occur only after adding the below code to an existing application's pod file and running the pod install command from the terminal.
platform :ios, '9.0'
target 'PushChatStarter' do
use_frameworks!
pod 'AFNetworking', '~> 1.2.0'
pod 'MBProgressHUD', '~> 0.6'
pod 'MessageBanner', '~> 1.0'
pod 'Alamofire', '~> 4.5'
pod 'AlamofireImage', '~> 3.3'
pod 'Stripe'
pod 'Cards'
end
This is the original pod file of the application when everything with Afnetworking works.
platform :ios, '6.0'
pod 'AFNetworking', '~> 1.2.0'
pod 'MBProgressHUD', '~> 0.6'
platform :ios, '7.0'
pod 'MessageBanner', '~> 1.0'
Afnetworking is operating before the new gems are installed correctly. What is causing Afnetworking to fail at runtime after the pod file update ?

Library not found after installing Socket.IO-swift

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'

How to solve "Expected identifier for type name" caused by CryptoSwift addition

I have a codebase where I am adding CryptoSwift through pods, and after adding it it compiler has started throwing 20 odd errors of type
Expected identifier for type name
My PodFile looks like this
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
target 'TestApp' do
pod 'AWSIoT'
pod 'Fabric'
pod 'Digits'
pod 'Crashlytics'
pod 'PureLayout'
pod 'Amplitude-iOS', '~> 3.11.1'
pod 'SDWebImage', '~>3.8'
pod 'CryptoSwift'
pod 'AWSCognitoIdentityProvider', '~> 2.5.0'
pod 'AWSAPIGateway', '~> 2.5.0'
pod 'AWSS3', '~> 2.5.0'
pod 'PhoneNumberKit', '~> 1.3'
pod 'ReachabilitySwift', '~> 3'
pod 'libPhoneNumber-iOS', '~> 0.8'
pod 'SVProgressHUD'
pod 'Kingfisher', '~> 3.0'
pod 'AwesomeCache', '~> 5.0'
pod 'OHHTTPStubs/Swift'
pod 'SwiftyGif'
end
target 'TestAppRecents' do
pod 'AWSIoT'
pod 'Fabric'
pod 'Digits'
pod 'CryptoSwift'
end
target ‘TestAppTests’ do
pod 'AWSIoT'
pod 'Fabric'
pod 'Digits'
pod 'Crashlytics'
pod 'PureLayout'
pod 'Amplitude-iOS', '~> 3.11.1'
pod 'SDWebImage', '~>3.8'
pod 'AWSCognitoIdentityProvider', '~> 2.5.0'
pod 'AWSAPIGateway', '~> 2.5.0'
pod 'AWSS3', '~> 2.5.0'
pod 'PhoneNumberKit', '~> 1.3'
pod 'ReachabilitySwift', '~> 3'
pod 'libPhoneNumber-iOS', '~> 0.8'
pod 'SVProgressHUD'
pod 'Kingfisher', '~> 3.0'
pod 'AwesomeCache', '~> 5.0'
pod 'OHHTTPStubs/Swift'
pod 'SwiftyGif'
end
Pod gets installed just fine I have added the file to point me out if any conflict
Here is the additional info

Error with cocoapods link_with after update to 1.0.0

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

ld: framework not found Box

I'm getting this error every time when I try to compile the project.
This started happening after adding to pods "use_frameworks!" and updating to use :
#import <MBProgressHUD/MBProgressHUD.h>
Insted of:
#import "MBProgressHUD.h"
for all frameworks.
There is no framework named "box" so I do not understand what this even refer to..
This error shows after all the project compiles, really at the end.
Did any one manage to fix this issue?
Edit
My podfile:
platform :ios, '8.0'
# ignore all warnings from all pods
inhibit_all_warnings!
use_frameworks!
xcodeproj 'Stox'
pod 'FLEX', '~> 2.0', :configurations => ['Debug']
pod 'FBSDKCoreKit', '~> 4.5'
pod 'DCIntrospect-ARC', '~> 0.0.4'
pod 'FiksuSDK', '~> 4.5.0'
pod 'Raven'
pod 'PKRevealController'
pod 'UIImage+BlurredFrame'
pod 'SDWebImage'
pod 'PEPhotoCropEditor'
pod 'Reachability'
pod 'HPGrowingTextView', '~> 1.0.1'
pod 'MBProgressHUD'
pod 'pop', '~> 1.0'
#pod 'UIActionSheet+Blocks'
pod 'AZSocketIO', '0.0.5'
pod 'TSMessages'
#pod 'ReactiveCocoa' , '~> 2.5.0'
pod 'ReactiveCocoa', '3.0'
pod 'NJKWebViewProgress'
pod 'ActionSheetPicker-3.0', '~> 1.2.0'
pod 'Underscore.m'
pod 'Mantle', '~> 1.5'
pod 'RSKImageCropper'
pod "AFNetworking", "~> 1.3.4"
pod 'GoogleAnalytics-iOS-SDK', '~> 3.10'
pod 'AHKActionSheet', '~> 0.5'
pod 'WYPopoverController', '~> 0.2.2'
pod 'XLPagerTabStrip', '~> 1.0'
pod 'SwipeView', '~> 1.3.2'
pod 'Masonry'
pod 'YLMoment', '~> 0.2.0'
pod 'YIInnerShadowView', '~> 1.1'
pod 'LinqToObjectiveC', '~> 2.0'
pod 'Typhoon'
pod 'CDRTranslucentSideBar'
pod "ZFDragableModalTransition"
pod 'LVDebounce'
pod 'AsyncDisplayKit', '~> 1.2'
pod 'PhotoTweaks', '~> 1.0.1'
pod 'Shimmer', '~> 1.0'
pod 'IHKeyboardAvoiding'
pod 'Parse', '~> 1.8.4'
pod 'DBPrivacyHelper'
pod 'AppsFlyer-SDK'
pod 'KLCPopup', '~> 1.0'
pod 'Vertigo'
pod 'iRate', '~> 1.11'
target 'StoxUITests' do
use_frameworks!
pod 'Nocilla'
pod 'OHHTTPStubs', '~> 4.3'
end
Workaround to resolve this issue (Temporary fix :) )
Create a folder called "Box.framework" anywhere on your computer. Note the full path to this folder.
Create an empty file called "Box" inside of "Box.framework"
Click on your project and go to the "Build Settings" tab.
Find "Framework Search Paths" in your Build Settings (you can search for
"Framework Search Paths" in the search bar at the top)
Double click on the Framework Search Path and press the "+" button.
Add the path which points to the "Box.framework" folder that you created in step1.
Let me know if that resolves your issue.

Resources