what could be the reason not called completionHandler in uploadTaskWithRequest:fromFile:progress:completionHandler: iOS8 - ios7

AFNetworking pods:
platform :ios, '7.0'
pod 'AFNetworking', '~> 2.2'
When I upload some file via AFURLSessionManager -uploadTaskWithRequest:fromFile:progress:completionHandler: and was lost internet connection on iOS 7 completionHandler called with error, but in iOS 8 - not at all called.
What could be the reason?

Related

Use Pod library for only development not for production

I have pod library which helps developer at development time but no use when the application is released, So is there anything which helps me.
any changes in setting at the consumer side, which consume pod library.
or
any changes in setting in the pod library itself, because library is also created by me.
In podfile we need to add configuration to debug
pod 'podname', :configurations => ['Debug']
and below for release
pod 'podname', :configurations => ['Release']
In Xcode, open the project settings, in the "Targets" list column, right click on your main iOS target and duplicate it to create one just for development.
In your Podfile, list up the your development-purposed pods under your new development target name. A rough example:
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
target 'Your_App_Development' do
pod 'SomeDevOnlyPod', '~> 5.6'
end
Hope that helps!

How to reduce size of app with arcgis dependency?

I'm starting to work on an iOS app, which should use ArcGIS. I've added a hello world style (1 screen, 1 map without any extra stuff) basic implementation, and now my app size is trough the roof. I've followed this tutorial for the setup.
A development build app size on the iPhone X used to be 50Mb (it's not a very complex app), now it's 510Mb. An archive is 750Mb.
I'm not sure if the release process (Appstore upload) would reduce that (I guess not).
Here is my Podfile
platform :ios, '10.0'
use_frameworks!
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings.delete('CODE_SIGNING_ALLOWED')
config.build_settings.delete('CODE_SIGNING_REQUIRED')
end
end
target 'AppName' do
pod 'Kingfisher', '~> 4.8.0'
pod 'RxSwift', '~> 4.2.0'
pod 'RxCocoa', '~> 4.2.0'
pod 'HockeySDK', '~> 5.1.2'
pod 'XCGLogger', '~> 6.0.4'
pod 'Floaty', '~> 4.0.1'
pod 'CTPanoramaView', '~> 1.1'
pod 'Alamofire', '~> 4.7.3'
pod 'ArcGIS-Runtime-SDK-iOS', '100.3'
end
The app size of the SDK Sample in the appstore is 100Mb on my iPhone X, so I guess that would be a more reasonable size for my app too.
What steps could I do to reduce the app size?
The impact should be about 65-70Mb. You're probably looking at the Universal ipa. Please see this answer to a similar question and let us know if that helps: iOS ArcGIS.framework too large, hence large .ipa size

Parse Errors in pod files in iOS Push Notification app in xcode 6.1.1

I am developing a push notification app for iOS in xcode 6.1.1.
I am using cocoapods and Firebase Cloud Messaging in Objective-C.
I have Performed all the steps properly but on compiling the project I get lot of parse issues in pod files(pod files like GPBCodedInputStream.h, GPBArray.h, GPBDictionary.h,etc).
What is the solution for this??
for Firebase Cloud Messaging prerequisites, you need a few things set up in your environment:
Xcode 7.0 or later
An Xcode project targeting iOS 7 or above
The bundle identifier of your app
CocoaPods 1.0.0 or later

Alamofire 2.0 Compiler Issues - Swift 2 / Xcode 7

I'm having trouble converting my project to Xcode 7 Beta related to the Alamofire 2.0 as shown on the screenshot below. Even created a test project with the following podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'Alamofire', '~> 2.0'
I also reinstalled cocoapods. Still same problem. Anyone have some idea how to fix this?
You need to upgrade to the official Xcode 7.0 GM release. The Xcode 7 betas are no longer working with the Alamofire 2.x releases. They only worked with the betas. To run Alamofire 2.0.2, you need to be using Xcode 7 (7A220).

Integrating cocoa pods with App extension

I am working in a project, with cocoa pods integration.
My pod file's content as pasted below
platform :ios, '8.0'
pod 'AFNetworking'
pod 'MBProgressHUD'
pod 'HDTableDataSource'
pod 'HDCollectionDataSource'
pod 'HDAlertShortkut'
pod 'TouchXML'
pod 'ARAutocompleteTextView'
pod 'AMTagListView'
link_with 'ApplicationName', 'ExtensionName'
My code is in Objective C, The problem that I am currently facing is I can not import AFNetworking library in Extension's view controller.
Kindly help me to solve the problem.