cocoapods

CocoaPods not updating Firebase SDK to Version 4.0.0

纵饮孤独 提交于 2019-11-27 14:37:38
问题 I am trying to update my Swift project to Firebase's new SDK Version 4.0.0 using CocoaPods (as suggested by the documentation) but the updated SDK does not seem to be installing even when I follow the steps in the documentation. Can anyone help my understand why this is not working and what I can do to update to the new Firebase SDK? My Podfile # Uncomment this line to define a global platform for your project platform :ios, '9.2' # Uncomment this line if you're using Swift use_frameworks!

“No such module 'Alamofire'” Xcode won't recognize Alamofire framework

ⅰ亾dé卋堺 提交于 2019-11-27 14:25:07
I realize that the same error was asked in other questions (like here ), but their solutions are not working for me. I keep getting a build failure in my app: "No such module 'Alamofire'". I followed the cocoadocs installation instructions ( here ) for installing Alamofire and it still is not working. I made sure everything has the same deployment target. Embedded Binaries and Frameworks Here's my podfile text. source 'https://github.com/CocoaPods/Specs.git' platform :ios, ‘9.2’ use_frameworks! target 'MyApp' do pod 'Alamofire', '~> 3.0' end target 'MyAppTests' do end target 'MyAppUITests' do

Cannot Import Firebase Into Swift Class

十年热恋 提交于 2019-11-27 13:57:07
I am totally new to Firebase and building iOS apps. In Xcode 7, I am trying to import Firebase into my Swift class. In a swift file, I have typed "import Firebase". I am getting an error that says "No such module 'Firebase'" Any help would be greatly appreciated. David East There are two ways to install Firebase: manually, and with CocoaPods. I recommend using CocoaPods. In your Podfile , make sure you specify use_frameworks! : platform :ios, "9.0" use_frameworks! target 'MyProject' do pod 'Firebase' end Then after you pod install and open the MyProject.xcworkspace , you should be able to use

Added pod files and pushed. How to undo? how to use gitignore in Xcode & github?

本小妞迷上赌 提交于 2019-11-27 12:59:56
问题 This is a two part question: 1) I have added committed and pushed all pod files to github. Is there a way I can remove them and not push them again to github? 2) I know gitignore can help, but I don't know how to use it. Can anyone please walk me through the process of using gitignore? so I think what I can do is, get the project from github, add gitignore, and then push again. is that correct? Please help, new to github & Xcode. 回答1: That's correct, you need to add the Pods directory to your

CocoaPods dependency only on debug/release build

跟風遠走 提交于 2019-11-27 12:47:00
问题 I'm using a pod as an internal library for my project. I want to have some pods included only on release/debug builds, like Reveal/Sparkinspector. Is there any way to define podspec dependencies depending on the currently selected build configuration (build/release)? 回答1: With the recent release it's officially available now: http://blog.cocoapods.org/CocoaPods-0.34/ Use pod 'Lookback', :configurations => ['Debug'] 回答2: For anyone just finding this, this looks to be scheduled in the next

React Native XCode Project Product Archive Fails with duplicate symbols for architecture arm64

时间秒杀一切 提交于 2019-11-27 12:23:45
Strangely, I can't seem to get Archive to work in XCode but the build succeeds without the errors on duplicate symbols if I do not attempt to Archive but simply build a release version. The project builds properly on devices as well. I have searched up on this topic and tried disabling testability, and setting the 'No Common Blocks' in the project settings to NO as well but no luck so far. The Project is a React Native 0.40 based project with CocoaPods installed as well. PodFile is this # You Podfile should look similar to this file. React Native currently does not support use_frameworks!

Mac 安装 Flutter

痴心易碎 提交于 2019-11-27 12:09:23
设置镜像地址 打开终端配置环境变量 sudo vi ~/.bash_profile 添加以下设置,并保存退出 export PUB_HOSTED_URL=https://pub.flutter-io.cn export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn 执行 source ~/.bash_profile ,让配置生效 获取Flutter cd flutter安装目录,执行 git clone -b beta https://github.com/flutter/flutter.git 将flutter安装目录地址写入环境变量 $ sudo vi ~/.bash_profile export PATH=${You Path}/flutter/bin:$PATH :wq 保存退出 $ source ~/.bash_profile 执行flutter检测 执行 flutter doctor ,根据提示安装缺失依赖 安装依赖失败问题 安装 cocoapods 找不到问题 $ sudo gem install cocoapods pod setup 错误信息: ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why: Unable to

Add cocoapods to tests target too? [duplicate]

旧城冷巷雨未停 提交于 2019-11-27 12:06:47
This question already has an answer here: Libraries not found when using CocoaPods with iOS logic tests 14 answers I have default project template with tests and cocoapods installed ( pod install ). Pods works fine with main target, but when I try to import something in tests, I get something like Time.m:11:9: 'NSDate-Utilities.h' file not found Does this mean that I should add pods directory to header search path in tests target? Can this be done via cocoapods CLI automatically somehow? That question by suggested link had WRONG answer until yesterday. Ok, there is a simple solution, see

那些在学习iOS开发前就应该知道的事(part 2)

◇◆丶佛笑我妖孽 提交于 2019-11-27 12:04:41
英文原文: Things I wish I had known before starting iOS development—Part 2 如果你还没读这篇文章的第一部分,请先读完了再来看第二部分。 那些在学习iOS开发前就应该知道的事(part 1) : 设计师设计出来了一个不错的引导界面,然而当我看到设计稿的时候,我们的app也没几天就要上线了…… 在第一部分中,我讨论了学习iOS开发的一些基本问题。第二部分将更多地讨论一些实际问题,这些问题都是你在开发iOS应用时会遇到的。 Debugging 毋庸置疑,你在开发应用的过程中一定会遇到很多错误和异常。比如,你会遇到NSInvalidArgumentException,遇到NSInternalInconsistencyException,还会遇到“0xfaded322”这种错误代码。有时候你可以在Stack Overflow或Quora上找到答案,但大部分时候你得自力更生。 Xcode具有断点、视图调试和日志的功能,是debug的不二之选。但毕竟孤掌难鸣,你仍需为它找些得力的帮手。 1.Pony Debugger square/PonyDebugger : PonyDebugger - 使用Chrome Developer Tools,为你的native iOS应用进行远程网络和数据调试。 square开发了这个强大的开源工具

Pod Error in Xcode “Id: framework not found Pods”

≯℡__Kan透↙ 提交于 2019-11-27 11:47:09
I am trying to clone a project from a bitbucket repository and am getting an error Id: framework not found Pods clang: error: linker command failed with exit code 1 (use -v to see invocation) when trying to run an Xcode project in workspace. These are the steps I have followed, if anyone could let me know what I am doing wrong, that would be great! git clone (link to bitbucket) changed the configuration settings in the Xcode pods project to none for both debug and release performed pod install opened Xcode workspace file tried to build in Xcode and received the error Id: framework not found