cocoapods

Firebase.h file not found with CocoaPods

杀马特。学长 韩版系。学妹 提交于 2020-08-24 09:13:41
问题 I am trying to add Firebase into my project. I just added below pods into my Xcode project. pod 'Firebase' pod 'Firebase/Core' pod 'Firebase/Messaging' pod 'Firebase/Database' pod 'Firebase/Auth' After installing podfile, I try to import firebase into my project. But it gives me an error that Firebase.h is not found. Above issue will occur when I uncheck the Run script only when installing from [CP] Check pods Manifest.lock . After that I will installed pod using pod install . And then issue

CDN: trunk Repo update failed

笑着哭i 提交于 2020-08-19 13:44:11
1. podfile文件中指定source源为master: source 'https://github.com/CocoaPods/Specs.git' 添加在最上面即可 target 'DemoApp' do source 'https://github.com/CocoaPods/Specs.git' pod 'Alamofire', '~> 4.7' pod 'PKHUD', '~> 5.0' pod 'Toaster' pod 'Qiniu', '~> 7.2' end 2.执行 pod repo remove trunk 移除trunk源 3.pod install 耐心等待下就好 来源: oschina 链接: https://my.oschina.net/u/4389078/blog/4281475

pod安装和使用

▼魔方 西西 提交于 2020-08-16 22:19:27
cocoapods 是一个第三方代码管理工具。使用起来非常方便,自动配置项目中的配置。 pod 的安装和使用 Apple电脑本身自带Ruby,如果是第一次安装,需要升级 ruby ruby -v 查看版本 使用 RVM 对 Ruby 进行升级 安装 RVM curl -L get.rvm.io | bash -s stable 让 rvm安装生效 source ~/.bashrc 或者 source ~/.bash_profile rvm -v 查看版本 用RVM 升级 Ruby rvm list known 列出ruby版本 rvm install 2.7.0 安装ruby指定版本 安装 xcode command line 命令行安装 xcode-select --install pod安装 cocoapods镜像: https://gems.ruby-china.com 更换 ruby镜像源 gem sources -remove https://rubygems.org/ 删除ruby源 gem sources -add https://gems.ruby-china.com/ 添加ruby源 sources -l 查看ruby 镜像位置 下载安装 CocoaPods sudo gem install -n /usr/local/bin cocoapods pod

iOS小技巧总结,绝对有你想要的(持续更新)

爱⌒轻易说出口 提交于 2020-08-12 03:42:40
最近在这里总结一些iOS开发中的小技巧,能大大方便我们的开发。 UITableView的Group样式下顶部空白处理 //分组列表头部空白处理 UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 0.1)]; self.tableView.tableHeaderView = view; UITableView的plain样式下,取消区头停滞效果 - (void)scrollViewDidScroll:(UIScrollView *)scrollView { CGFloat sectionHeaderHeight = sectionHead.height; if (scrollView.contentOffset.y<=sectionHeaderHeight&&scrollView;.contentOffset.y>=0) { scrollView.contentInset = UIEdgeInsetsMake(-scrollView.contentOffset.y, 0, 0, 0); } else if(scrollView.contentOffset.y>=sectionHeaderHeight) { scrollView.contentInset = UIEdgeInsetsMake(

Error installing Alamofire in Mac Using Pod

依然范特西╮ 提交于 2020-08-11 03:58:23
问题 I am trying to install Alamofire for iOS app development using pod. My podfile looks like below: # Uncomment the next line to define a global platform for your project # platform :ios, '9.0' target 'AlamoFireBackgroundTask' do # Comment the next line if you're not using Swift and don't want to use dynamic frameworks use_frameworks! pod 'Alamofire' # Pods for AlamoFireBackgroundTask end when I run pod install I get the following error message: [!] Error installing Alamofire [!] /usr/bin/git

Error installing Alamofire in Mac Using Pod

允我心安 提交于 2020-08-11 03:58:07
问题 I am trying to install Alamofire for iOS app development using pod. My podfile looks like below: # Uncomment the next line to define a global platform for your project # platform :ios, '9.0' target 'AlamoFireBackgroundTask' do # Comment the next line if you're not using Swift and don't want to use dynamic frameworks use_frameworks! pod 'Alamofire' # Pods for AlamoFireBackgroundTask end when I run pod install I get the following error message: [!] Error installing Alamofire [!] /usr/bin/git

Error: Could not build Objective-C module 'Firebase' with Swift 5

浪子不回头ぞ 提交于 2020-08-10 20:13:06
问题 I want to use Firebase with Swift 5, but error message appears. Could not build Objective-C module 'Firebase' I tried all resolutions on below pages, but I can't solve it: Error: Could not build Objective-C module 'Firebase' https://github.com/firebase/quickstart-ios/issues/672 import UIKit import Firebase @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:

CocoaPods could not find compatible versions for pod “GoogleDataTransportCCTSupport”

一世执手 提交于 2020-08-09 09:19:26
问题 I've installed Firebase In App Messaging according to the guide: https://rnfirebase.io/in-app-messaging/usage When I run pod install , I get this: Using firebase.json from '/../app/firebase.json' Adding a custom script phase for Pod RNFBApp: [RNFB] Core Configuration Adding a custom script phase for Pod RNFBCrashlytics: [RNFB] Crashlytics Configuration Detected React Native module pods for RNFBAnalytics, RNFBApp, RNFBCrashlytics, RNFBDynamicLinks, and RNFBInAppMessaging Updating local specs