cocoapods

iOS , ld: framework not found GoogleMaps for architecture arm64

谁说胖子不能爱 提交于 2019-12-01 03:18:58
I'm developing an app using google maps. I will explain what I did with google maps, and maybe you can help me. I was using Google maps frameworks without POD, but after a few errors about Google map Key I deleted the google map frameworks reference and I installed it using POD. Everything is working fine, but when I hit Product -> TEST now I get this error: ld: framework not found GoogleMaps for architecture arm64 Any idea how fix this? Thank you! Podfile looks like this Cocoapods v1.0 beta 6): platform :ios, '8.0' use_frameworks! target 'Project' do pod 'GoogleMaps' target 'ProjectTests' do

Google SignIn CocoaPods deprecated

▼魔方 西西 提交于 2019-12-01 02:49:47
How to implement Google SignIn in iOS app as now Google pod is deprecated? Using the deprecated pod is giving : Framework not found GoogleAppUtilities The pod install is indeed 'GoogleSignIn' . However this also means adjusting the bridging header to #import <GoogleSignin/GoogleSignIn.h> And instead of using : GGLContext.sharedInstance().configureWithError(&configureError) You need to use : GIDSignIn.sharedInstance().clientID = kClientID And replace kClientID with your client id (You can/need to remove some other lines also regarding the &configureError). You can find the info here : Google

Xcode trying to match frameworks bundle ID when uploading iOS app to App Store

烂漫一生 提交于 2019-12-01 02:44:18
After 4 months developing my first iOS app, it's time to submit it to the App Store . I created the app in iTunes Connect , filled in all the details, set up the correct Bundle ID in both Connect and Xcode . However, I've struggled the last 3 days trying to solve this weird problem. It seems like xcode is trying to upload Cocoapods frameworks, not my main app. After archiving, I went to Window > Organizer > Validate... . I see the following screen: The error: (For googlers: No suitable application records were found. Verify your bundle identifier ' org.cocoapods.Alamofire ' is correct). The

working with cocoapods ios

戏子无情 提交于 2019-12-01 01:59:07
问题 I know cocoapod is simplifying the efforts of manually adding libraries or let developer concentrate on his actual source code. But my question is if I need only some of source file from certain project then is good to add whole library by installing same cocoapod? Like if I need only Reachability class file then why should I take whole AFNetworking Isn't it creating code redundancy or increasing my iPA size or other performance issues? 回答1: In general, adding a static library to your project

cocopods的安装

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 00:06:48
第一步:安装cocoapods. 在终端进行操作 cocoapods 管理第三方框架的工具 1. 安装 a. 查看源 gem sources -l b. 删除源:这个源不能用,所以要设置淘宝的源 sudo gem sources -r https://rubygems.org / c. 设置源 sudo gem sources -a http://ruby.taobao.org 如果不成功,需要换成https. d. 安装cocoaPad sudo gem install cocoapods 备注:苹果系统升级 OS X EL Capitan 后改为 $sudo gem install -n /usr/local/bin cocoapods e. 设置 pod setu p 注意:只安装了cocopods时,product下边是没有cocopods的.可以再终端安装第三方库. 1. cd 目录(就是.xcodeporj)的同级目录. 2. 输入 vim podfile建立podfile文件.输入i,可以编辑. 按esc健,再按住shift加冒号再输入wq进行写入退出. 可以只在这里建立podfile文件,然后手动打开podfile文件,进行编辑. 3. pod install 4. 完成之后,就会在目录下边生成xcworkspace的文件了. 第二步: Alcatraz的安装:

Google SignIn CocoaPods deprecated

喜夏-厌秋 提交于 2019-11-30 22:36:50
问题 How to implement Google SignIn in iOS app as now Google pod is deprecated? Using the deprecated pod is giving : Framework not found GoogleAppUtilities 回答1: The pod install is indeed 'GoogleSignIn' . However this also means adjusting the bridging header to #import <GoogleSignin/GoogleSignIn.h> And instead of using : GGLContext.sharedInstance().configureWithError(&configureError) You need to use : GIDSignIn.sharedInstance().clientID = kClientID And replace kClientID with your client id (You can

组件化pod库制作之私有库制作

与世无争的帅哥 提交于 2019-11-30 21:57:56
私有podspec制作步骤: 组件化方案一般都是采用私有podspec 1、创建私有Spec Repo Spec Repo 是所有公开的Pods 的podspec文件的一个git仓库,当使用Cocoapods后它会被clone到本地的~/.cocoapods/repos目录下,可以进入到这个目录看到master文件夹就是这个官方的Spec Repo了。因此我们需要创建一个类似于master的私有Spec Repo 。同理这个私有Spec Repo我们也要有一个远程端。那么我们需要创建一个 Git仓库,这个仓库你可以创建私有的也可以创建公开的。如果是私有的话,项目中其他同事,你要给他这个Git仓库的权限。组件化一般都是采用私有的。 在git管理的代码托管网站如github或者码云或则自己服务器上创建一个私有仓库: # pod repo add [Private Repo Name] [GitHub HTTPS clone URL] 如:$ pod repo add HFPodSpecs https://coding.net/xxxx/ HFPodSpecs .git 其中HFPodSpecs是私有 Spec Repo名称 此时如果成功的话进入到~/.cocoapods/repos目录下就可以看到WTSpecs这个目录了。至此第一步创建私有Spec Repo完成。 PS

CocoaPods详解之----制作篇

こ雲淡風輕ζ 提交于 2019-11-30 21:57:31
Cocoapods 是非常好用的一个iOS依赖管理工具,使用它可以方便的管理和更新项目中所使用到的第三方库,以及将自己的项目中的公共组件交由它去管理。Cocoapods的介绍及优点本文就不在赘述,我开始使用Cocoapods还是在两年前,那个时候它刚刚出现,网上的资料还非常的少,就连他们自己的HomePage都十分的简单,我就着手尝试着使用了一下,用它管理起第三方库确实是十分的方便顺手。后来它有了更强大的功能就是自己创建podspec,更可以设置私有的库。 春节回来上班,没有什么任务做,正好项目中有一些公共组件需要从庞大的项目体系中剥离出来,而且年前项目终于从SVN迁移到了Git,真是喜大普奔,大快人心!这样项目使用Cocoapods就有了条件,正好趁着这两天没有什么事情做,学习一下创建私有的podspec并在项目中部署使用,以及pods的subspec的创建及使用。 整体先说明一下创建一个私有的podspec包括如下那么几个步骤: 创建并设置一个私有的Spec Repo。 创建Pod的所需要的项目工程文件,并且有可访问的项目版本控制地址。 创建Pod所对应的podspec文件。 本地测试配置好的podspec文件是否可用。 向私有的Spec Repo中提交podspec。 在个人项目中的Podfile中增加刚刚制作的好的Pod并使用。 更新维护podspec。

Old libraries, new CocoaPods

血红的双手。 提交于 2019-11-30 21:54:35
Because CocoaPods 0.36 are availbable to anyone and they are now coming with Swift and Frameworks support I have one question that is bothering me today... I create Podfile in my project directory, fill it with: source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' pod 'AFNetworking' pod 'SwiftyJSON' And run pod install as usual... You know this story. But when I open my .xcworkspace and go to any ViewController and import SwiftyJSON it just works but when I try to do the same thing with AFNetworking I get No such module 'AFNetworking' . Of course, I can create a Bridging-Header

Xcode trying to match frameworks bundle ID when uploading iOS app to App Store

余生颓废 提交于 2019-11-30 21:38:41
问题 After 4 months developing my first iOS app, it's time to submit it to the App Store . I created the app in iTunes Connect , filled in all the details, set up the correct Bundle ID in both Connect and Xcode . However, I've struggled the last 3 days trying to solve this weird problem. It seems like xcode is trying to upload Cocoapods frameworks, not my main app. After archiving, I went to Window > Organizer > Validate... . I see the following screen: The error: (For googlers: No suitable