cocoapods

Mac上搭建Flutter开发环境(Android模拟器和IOS模拟器开发)

五迷三道 提交于 2019-12-03 01:18:52
前言 最近公司要求使用跨平台语言开发新的应用,这几天也对比了ReactNative和Flutter,最终决定入坑Flutter,今天刚配置完Flutter的开发环境, Flutter中文网也有相应的安装开发环境的介绍 ,这里主要是站在一个Android开发者的角度详细的记录在MAC电脑上配置的步骤和遇到的坑; 达到的目的 这篇博客的目的很简单,搭载可运行在Android模拟器和IOS模拟器的环境,看大图: 搭建要求 设备:Mac电脑 系统:macOS Majave 10.14.4 已经安装好JDK以及环境变量(自行百度安装) 需要开发IOS端应用时,必须使用MAC系统,因为只能在MAC上打ipa安装包 搭建步骤 一、安装Android Studio 1、下载Android Studio 可以到 中文社区 下载最新版本的Android Studio,有安装版和绿色版可下载; 2、配置Android SDK 可以到 中文社区 下载最新提供的SDK,然后进入Android Studio进行SDK路径配置; SDK配置位置:Android Studio ->Preferences…->搜索‘SDK’->找到Android SDK,比如我的配置路径: 3、创建Android模拟器 二、Android Studio下载Flutter插件 我这边已经下载过了,所以没有install按钮

FacebookShare causing compiler error after update

。_饼干妹妹 提交于 2019-12-03 01:08:02
I just ran pod update for my app, and now it won't compile, giving these issues from LinkShareContent.swift in FacebookShare . Cannot assign to property: 'contentDescription' is a get-only property Cannot assign to property: 'contentTitle' is a get-only property Cannot assign to property: 'imageURL' is a get-only property These were the Facebook-related lines in my pod update: Installing FBSDKCoreKit 4.23.0 (was 4.22.0) Installing FBSDKLoginKit 4.23.0 (was 4.22.0) Installing FBSDKShareKit 4.23.0 (was 4.22.0) Using FacebookCore (0.2.0) Using FacebookLogin (0.2.0) Using FacebookShare (0.2.0)

The file “Pods.xcconfig” couldn’t be opened because there is no such file

戏子无情 提交于 2019-12-03 01:04:42
How to solve this issue. I have downloaded the iOS project from the Git repo and when I try to build, it gives an error: Check dependencies The file “Pods.xcconfig” couldn’t be opened because there is no such file. (/Users/YoGesh/Desktop/Xy-3/Pods/Pods.xcconfig) PhaseScriptExecution Check\ Pods\ Manifest.lock /Users/YoGesh/Library/Developer/Xcode/DerivedData/Xy-bmwkojrwthnvzdfxthnxeqgesekm/Build/Intermediates/Xy.build/Debug-iphonesimulator/Xy.build/Script-C0451AB63D7F4B73830000BA.sh cd /Users/YoGesh/Desktop/Xy-3 /bin/sh -c /Users/YoGesh/Library/Developer/Xcode/DerivedData/Xy

How do I use Cocoapods in an embedded framework?

微笑、不失礼 提交于 2019-12-03 01:04:38
问题 I'm using an embedded framework for my custom views in a new project to take advantage of the new @IBDesignable stuff in Xcode 6 and I'd like to animate said views with Facebook's Pop. I've added Pop to the project using Cocoapods but the embedded framework doesn't have access to those files ( 'POP/pop.h' file not found ). I tried copying the Cocoapods-related build phases from the app target to the custom framework target but they don't work as-is. What does work is copying the Pop folder

Cocoapods `Embed pod frameworks` took long time to execute

一笑奈何 提交于 2019-12-03 00:38:04
Environment: Macbook Pro With Retina Display 2013 late with 8G Ram, 256GB ssd. Cocoapods 1.1.1 macOS Sierra 10.12.1 Xcode 8.0 iPhone 6s Installed Pods inhibit_all_warnings! use_frameworks! def import_common_pods pod 'AFNetworking', '~> 2.6.3' pod 'GoogleAnalytics', '~> 3' pod 'SVProgressHUD', '~> 1.1.3' pod 'CocoaLumberjack', '~> 2.3.0' pod 'SVWebViewController', '~> 1.0' pod 'Crashlytics', '~> 3' end def import_project_common_pods pod 'FDFullscreenPopGesture', '1.1' pod 'ImagePicker', :git => 'git@github.com:hyperoslo/ImagePicker.git' pod 'Mixpanel', '~> 3.0.4' pod "YoutubePlayer-in-WKWebView

Cocopods Search失败的坑

匿名 (未验证) 提交于 2019-12-03 00:36:02
最近看了下如何使用cocopods来制作自己的公有库,然后果断的按照教程做了一遍,然后提交审核。完成之后意外的发现使用pod search xxx的时候报了一大堆的日志出来,pod的其他功能可以使用,就这个报错,如下所示: MARKDOWN TEMPLATE ### Command ``` /Users/user/.rvm/gems/ruby- 2.2 . 2 /bin/ pod search AFNetworking ``` ### Report * What did you do ? * What did you expect to happen ? * What happened instead ? ### Stack ``` CocoaPods : 1.5 . 3 Ruby : ruby 2.2 .2p95 ( 2015 - 04 - 13 revision 50295 ) [x86_64- darwin14] RubyGems : 2.6 . 14 Host : Mac OS X 10.13 . 5 (17F77) Xcode : 9.4 . 1 (9F2000) Git : git version 2.15 . 2 (Apple Git- 101.1 ) Ruby lib dir : /Users/user/.rvm/rubies/ruby- 2.2 . 2 / lib

How to remove specific pod without touching other dependencies

天大地大妈咪最大 提交于 2019-12-03 00:32:05
I want to remove specific dependency using cocoapods. if I execute pod install, other dependencies are getting updated before removing the dependency I want to delete. I just want to remove specific pod without touching any others. And I know deleting, updating any dependency also updates others. Is there any way to solve this problem? Actually my problem is when I modify some dependency (AFNetworking for example) and run pod install it reverts back to its original version. But I don't want to lose my changes. Remove specific pod from podfile and run below command in terminal: pod install --no

解决CocoaPods库图片无法显示的问题-通过修改github第三方库源代码

匿名 (未验证) 提交于 2019-12-03 00:30:01
CocoaPods很好很强大,在使用的时候兼容性和契合度都非常好,极少有出错的情况。但凡事没有绝对,这不本猫在使用TWMessageBarManager库的时候就出现了一段小插曲。 TWMessageBarManager库是一个iOS中的显示通知提示栏的库,非常简洁,虽然该库已经很多年没有更新了,但并不影响其在github的star数量。 我基本上在使用一个较复杂的库之前,尤其是其文档略模糊,用法不明的库之前,都会先下载然后运行一下它的demo试一下。 So,从github克隆TWMessageBarManager到本地,然后编译运行,一切都很完美:确认过眼神,这是我想要的”码” ;) 于是将TWMessageBarManager集成到我的项目中,编写调用代码,运行… 等等!!这好像和demo中的不太一样哎…通知栏里怎么没有图片??? TWMessageBarManager对于通知栏分了3种类型,分别是:success,failed和info。对于每种类型在显示的时候都会有一张对应的修饰图片显示在通知栏。这个在demo中没问题,但集成到我的项目之后,图片呢??? 到github该项目的issue分类中找了下,貌似没有人遇到该类问题,又到SO里转了一圈,还是一无所获,所以这下不能再“懒”了,得自己动脑细胞了 ;) 打开TWMessageBarManager的源代码

CocoaPods安装和使用教程

匿名 (未验证) 提交于 2019-12-03 00:26:01
Code4App 原创文章。转载请注明出处: http://code4app.com/article/cocoapods-install-usage Ŀ¼ CocoaPods是什么? 如何下载和安装CocoaPods? 如何使用CocoaPods? 场景1:利用CocoaPods,在项目中导入AFNetworking类库 场景2:如何正确编译运行一个包含CocoPods类库的项目 CocoaPods是什么? 当你开发iOS应用时,会经常使用到很多第三方开源类库,比如JSONKit,AFNetWorking等等。可能某个类库又用到其他类库,所以要使用它,必须得另外下载其他类库,而其他类库又用到其他类库,“子子孙孙无穷尽也”,这也许是比较特殊的情况。总之小编的意思就是,手动一个个去下载所需类库十分麻烦。另外一种常见情况是,你项目中用到的类库有更新,你必须得重新下载新版本,重新加入到项目中,十分麻烦。如果能有什么工具能解决这些恼人的问题,那将“善莫大焉”。所以,你需要 CocoaPods。 CocoaPods应该是iOS最常用最有名的类库管理工具了,上述两个烦人的问题,通过cocoaPods,只需要一行命令就可以完全解决,当然前提是你必须正确设置它。重要的是,绝大部分有名的开源类库,都支持CocoaPods。所以,作为iOS程序员的我们,掌握CocoaPods的使用是必不可少的基本技能了

Pod Install使用清华大学的源

匿名 (未验证) 提交于 2019-12-03 00:22:01
特么众所周知的原因,伟大的GFW让码农欲仙欲死。有时候VPN的不稳定造成一个嗷嗷大的东西下载一半就断,心里已经真的千万只草泥马奔腾而过。闲话少叙,今天找到了一个清华大学的镜像,非常不错。(感谢清华!), 传送门 CocoaPods 镜像使用帮助 CocoaPods 是一个 Cocoa 和 Cocoa Touch 框架的依赖管理器,具体原理和 Homebrew 有点类似,都是从 GitHub 下载索引,然后根据索引下载依赖的源代码。 对于旧版的 CocoaPods 可以使用如下方法使用 tuna 的镜像: $ pod repo remove master $ pod repo add master https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git $ pod repo update 新版的 CocoaPods 不允许用pod repo add直接添加master库了,但是依然可以: $ cd ~/.cocoapods/repos $ pod repo remove master $ git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master 最后进入自己的工程,在自己工程的podFile第一行加上: source