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.
Related
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!
I'm trying to link a custom react native library which has a pod installed. When I install the pod in the custom library, xcworkspace is generated and I need to use the workspace there after, and I'm able to access the pods there. But, this custom library is linked as a xcodeproj to the ios project. So, it is unable to recognize the pod headers when it is linked.
Is there a way to link this custom library which has pods installed?
I want to use the react native firebase starter template and add react navigation.
I have got the react-native-firebase-starter project up and running and have linked it to firebase. But now when I follow the steps to add react-navigation I come into problems with react-native link react-native-gesture-handler.
I guessed because the project uses cocoa pods and this command adds a line to the Podfile, that I should cd ios and run pod install.
The problem then is that I get an error: [!] React has been deprecated and the project won't build.
Has anyone successfully used this starter project and added react-navigation to it?
Please tell me what I'm doing wrong or what to do to get it sorted.
I figured this out.
You need to add these lines into your app target in the Podfile...
pod 'React', :path => '../node_modules/react-native'
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
And then at the very bottom of the Podfile you need to add the following...
post_install do |installer|
installer.pods_project.targets.each do |target|
targets_to_ignore = %w(React yoga)
if targets_to_ignore.include? target.name
target.remove_from_project
end
end
end
This removes React & Yoga from the Pods project, as it is already included in the main project.
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
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?