cocoapods

Xcode/Cocoapods: I can't access a dependency that's in a framework linked to my project

做~自己de王妃 提交于 2019-12-23 19:37:44
问题 I want to embed several projects and frameworks in only one workspace. Here is the structure in Xcode: Project1 and Project2 are application projects, and BaseFramework is a Cocoa Touch framework. Now what I want to do is to add a pod dependency to the framework, then link this framework to one of the projects and access the dependency in this project. Here is what I tried with my Podfile: platform :ios, '12.1' use_frameworks! inhibit_all_warnings! workspace 'BaseWorkspace' def shared_pods

NSLocalizedStringFromTable not working in CocoaPod dependency

时间秒杀一切 提交于 2019-12-23 19:14:35
问题 I've installed REActivityViewController as a pod. Here's the picture of the Resources folder in the pod: And here's one of the lines trying to pull the strings: [_cancelButton setTitle:NSLocalizedStringFromTable(@"button.cancel", @"REActivityViewController", @"Cancel") forState:UIControlStateNormal]; The button titles come out not-localized. In this example it shows button.cancel . It's also not just this button title but all the buttons in this dependancy. EDIT So in my Main Project under

Proper way of editing a CocoaPod Library

妖精的绣舞 提交于 2019-12-23 18:29:40
问题 I experienced before that manipulating CocoaPod installed. Let's assume I have TheLibrary.swift installed via CocoaPod. Now it's under Pods > Libray > TheLibrary.swift . It's very bad practice to edit that file. So what is the proper way of editing it? I think I read that it may be done with extension(?), but I am completely unsure about how it is done. What should I do if I need to edit just one function from that file, for example? Extending my question, if there are other Supporting Files

Include “.framework” file to cocoapods

老子叫甜甜 提交于 2019-12-23 18:04:26
问题 I'm trying to add "Custom.framework" to my pod (cocoapods). And I'm a bit stuck with pod spec setup. I've done following: s.resources = ['Resources/Custom.framework'] s.preserve_paths = "Resources/Custom.framework" s.frameworks = "UIKit", "Custom" But in project where I'm using this pod, I'm getting error <Custom/Custom.h> not found or something similar. I'm stuck already for a few hours and I can't find answer to my question in google. BR, Pavlo. 回答1: What you want is the vendored_frameworks

Parse Cocoapod breaks localization

一世执手 提交于 2019-12-23 18:04:15
问题 In an iOS project, I've updated this morning my pods to add a new one. The Parse iOS SDK also got updated in the process, and it seems like it broke my app's localization. Now, when I try to call NSLocalizedString(@"A_LOCALIZED_STRING", nil) , I always get @"A_LOCALIZED_STRING" in return. Even if I use the longer version of NSLocalizedString with a specific bundle (here, [NSBundle mainBundle] ), I get the same results. I've noticed that the only string that gets localized properly is the

Been getting ld: library not found for -lBolts while using xcworkspace

纵饮孤独 提交于 2019-12-23 17:25:07
问题 Hello here is my Podfile # Uncomment this line to define a global platform for your project platform :ios, '8.4' # Uncomment this line if you're using Swift # use_frameworks! target 'APP' do pod 'Parse' pod 'ParseUI' pod 'Stripe' pod 'JVFloatLabeledTextField' pod 'Fabric' pod 'RKDropdownAlert' pod 'LGAlertView' pod 'Crashlytics' pod 'CHTCollectionViewWaterfallLayout' pod 'TwitterKit' pod 'CardIO' pod 'Reachability' pod 'DZNPhotoPickerController/Editor' pod 'FBSDKCoreKit' pod 'MGInstagram' pod

iOS Undefined symbols for architecture x86_64 Xcode

落爺英雄遲暮 提交于 2019-12-23 15:44:00
问题 I have installed some third party frameworks in my app. Every thing was working fine and suddenly one day i started to get the following errors. Please note that these linker errors appear only when i try to run my app on iOS Simulator. Undefined symbols for architecture x86_64: "_AFNetworkingOperationFailingURLResponseDataErrorKey", referenced from: ___61-[DataManager signupWithEmail:password:name:success:failure:]_block_invoke.127 in DataManager.o ___46-[DataManager favoriteLesson:success

Xcode 6 doesn´t find cocoapods libraries

你离开我真会死。 提交于 2019-12-23 13:20:48
问题 I am trying to build a Xcode 5 project that uses CocoaPods. The POD file is following: target "MyProjectName" do pod 'AFNetworking', '2.2.1' pod 'SVProgressHUD', '0.9' pod 'MDHTMLLabel', :head pod 'CCBottomRefreshControl' pod 'EXPhotoViewer', '~> 1.1.2' pod 'NHBalancedFlowLayout', '~> 0.2' pod 'SevenSwitch', '~> 1.3.0' pod 'REFormattedNumberField', '~> 1.1.5' end The cocoapods is installing and updating correctly. The error is: Did not find the libraries, like the one highlighted in my .pch:

Are all these Cocoapod files supposed to be red after installing?

半城伤御伤魂 提交于 2019-12-23 13:04:22
问题 I just started a new project from scratch and tried to install Parse with Cocoapods for the first time. I'm using Xcode 6.4 and Cocoapods 0.37.2. I did the standard Cocoapods install with Terminal: sudo gem install cocoapods pod setup --verbose cd ~/Documents/"Application Development"/VeilApp pod init open -a Xcode Podfile In my Podfile: platform :ios, '8.0' use_frameworks! target 'VeilApp' do pod 'Parse' pod 'ParseUI' end target 'VeilAppTests' do end And then again in Terminal: pod install I

Cocoapods and Xcode, ld: library not found for -lAFNetworking

僤鯓⒐⒋嵵緔 提交于 2019-12-23 12:51:33
问题 I have this pod file contains all of these libs platform :ios, "7.0" target "PP for iPad" do pod 'AFNetworking', '1.1' pod 'RaptureXML', '1.0' pod 'NoticeView' pod 'iVersion' pod 'iRate' pod 'Facebook-iOS-SDK', '3.13.1' pod 'StackMob' pod 'SSZipArchive' pod 'ODRefreshControl' pod 'SDWebImage' pod 'TPKeyboardAvoiding' pod 'LXPagingViews' pod 'AQGridView' pod 'Google-Mobile-Ads-SDK', '~> 7.0' end I ran it successfully with 'pod install' ... but when I try to run my project i get this error ld: