cocoapods

running pod set up gives me “bad interpreter: No such file or directory”

不羁的心 提交于 2019-11-30 10:52:18
问题 recently tried to do pod setup and i get this: -bash: /usr/local/bin/pod: /usr/local/opt/ruby/bin/ruby: bad interpreter: No such file or directory I followed Ray Wenderlich's guide to install cocoapods and i get this issue so i have no idea what is going on. 回答1: I encountered this problem when upgrading to Mac OS High Sierra. This was my fix: sudo gem install cocoapods I found this answer on the CocoaPods issue list on Github. 回答2: After upgraded to High Sierra, I got the same error, just

cocoapods 安装

半腔热情 提交于 2019-11-30 10:25:46
查看gem 版本是否最新 gem -v (v2.5.6)需要大于 升级gem sudo gem update —system 安装 cocoapods sudo gem install cocoapods ps:如果安装这个失败如下: (While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /usr/bin directory. ) 使用下面的命令安装: sudo gem install -n /usr/local/bin cocoapods pod setup Cd 工程目录 touch Podfile 在这个文件中 platform :ios ,’7.0’ //表示支持的版本 pod search <框架名> 添加需要的依赖项 然后pod install 更新pod (update pod) cd iOS Pod install 来源: https://www.cnblogs.com/wtfu/p/11578748.html

iOS开发---发布SDK到cocoapods

[亡魂溺海] 提交于 2019-11-30 10:25:22
1、GitHub上创建仓库 没有就创建 创建成功后克隆到本地 2、将托管的SDK上传到GitHub并发布到cocoapods 将自己的SDK上传到GitHub,我的路径直接如下,防止后面的 spec.source_files书写入坑 3、pod常用的命令 注册pod账号 pod trunk register 472331078@qq.com "bing" 查看注册信息 pod trunk me # 添加其他维护者 pod trunk add-owner XXXSDK 123456@qq.com # 删除已发的版本 pod trunk delete XXXSDK 版本号 # 删除某个pod pod trunk deprecate XXXSDK # 删除其他维护者 pod trunk remove-owner XXXSDK 56789@qq. 4、注册pod账号 这里用pod trunk register注册下账号,然后会收到一封邮箱验证一下 用 pod trunk me查看账号信息 5、上传cocoapods 上传cocoapods之前需要打个tag标签 验证podspec文件是否正确 创建和删除tag git tag '1.0.0' git push --tags git tag -d 1.0.0 git push origin :refs/tags/1.0

Latest Google Plus iOS SDK 1.7.1 not supporting architecture x86_64

会有一股神秘感。 提交于 2019-11-30 09:54:03
问题 I have the latest Google Plus iOS SDK managed by cocoapods in my project. pod 'google-plus-ios-sdk' ~> '1.7.1' #(Also tried 1.5.1) Simple code as: #import <GooglePlus/GooglePlus.h> [GPPSignIn sharedInstance].clientID = kClientID; I get this error: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_GPPSignIn", referenced from: objc-class-ref in GooglePlusManager.o "_OBJC_CLASS_$_GPPURLHandler", referenced from: objc-class-ref in GooglePlusManager.o ld: symbol(s) not found for

xcode duplicate symbols for architecture error after updating cocoa pods

风格不统一 提交于 2019-11-30 09:49:09
Here is my podFile : source 'https://github.com/CocoaPods/Specs.git' platform :ios, '7.0' pod 'AFNetworking' pod 'ODSAccordionView', '0.4.4' pod 'IQKeyboardManager' pod 'NYXImagesKit', :git => 'https://github.com/Nyx0uf/NYXImagesKit.git' pod 'PEPhotoCropEditor' pod 'CocoaAsyncSocket' pod 'PKRevealController' pod 'Haneke', '~> 1.0' pod 'MBProgressHUD', '~> 0.9.1' pod 'RadioButton' Everythig has been working fine for a long time, but now, when I update my pods ( pod update ) these 3 pods get uptated: AFNetworking CocoaAsyncSocket IQKeyboardManager After that, nothing works anymore. I get more

Why isn't my cocoapods post_install hook updating my preprocessor macros?

邮差的信 提交于 2019-11-30 09:47:18
I've been going round and round for a couple days now trying to figure out why my post_install hook isn't producing the output I'm expecting. Here's my Podfile: source 'https://github.com/CocoaPods/Specs.git' target "SCCommon" do platform :ios, "6.0" pod 'AFNetworking', '~> 1.2.1' pod 'Mantle', '~> 1.3' pod 'PubNub', '3.5.5' end target "SCCommon-TestHarness" do platform :ios, "6.0" # inhibit_all_warnings! pod 'SCCommon', :path => '../SCCommon.podspec' end target "SCCommon-UnitTests" do platform :ios, "6.0" # inhibit_all_warnings! pod 'OCMock', '2.2.3' pod 'SCCommon', :path => '../SCCommon

Is this the correct way to create dynamic/embedded framework with embedded cocoa pods?

偶尔善良 提交于 2019-11-30 09:40:18
问题 I am trying to create a Dynamic Framework to share the code among various extensions of my app. Problem : Here is my project structure. MyFrameworks is a network layer of my app which inherently uses Alamofire. So structured my pod file as follow. platform :ios, '9.0' use_frameworks! workspace 'CocoaPodsProjectworkspace' def shared_pods pod 'Alamofire' pod 'SwiftyJSON' end target 'CocoaPodsProject' do project 'CocoaPodsProject.xcodeproj' # Pods for CocoaPodsProject end target 'MyFramework' do

Can't get to work CocoaPods and Yosemite

瘦欲@ 提交于 2019-11-30 09:00:24
问题 I already tried this steps: Open Xcode 6 Open Preferences Click the Locations tab Change the Command Line Tools version to Xcode 6.0 Uninstall cocoapods a. $sudo gem uninstall cocoapods Install xcodeproj a. $ sudo gem install xcodeproj Install cocoapods a. $ sudo gem install cocoapods Run pod --version to verify that it worked But I'm still gettings this when I do pod install or pod --version: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel

Swift bridging header file won't work with use_frameworks

旧城冷巷雨未停 提交于 2019-11-30 08:46:37
I'm trying to use GoogleidentityToolkit library to handle login an things. I enable use_frameworks! on my pod file, but the module GITkit can't be found. I'm trying to figure out what's going. As far as I know if you use "use_frameworks" you don't need to create any bridging header file, since cocoapods compiles down the library into a single module, so later you can imported as usual on your*.swift files. What do I need to get using Google Identity Toolkit library in Swift? This question was asked one week after the release of CocoaPods 1.0.0 (at a time where CocoaPods 0.39.0 was still

Google/Analytics.h file not found when adding to AppDelegate

◇◆丶佛笑我妖孽 提交于 2019-11-30 08:45:52
I am trying to integrate Google Analytics in my ios project using Cocoapods. However, after following this for the steps till adding configuration file to my project, when importing the Google/Analytics.h in AppDelegate I get error for file not found. Tried following things: Added $(SRCROOT)/Pods/GoogleAnalytics to User Header Search Paths in Build Settings. Added libGoogleAnalyticsServices.a to link binary with libraries in build phases. Added -lGoogleAnalyticsServices in Other Linker Flags. Don't really want to do 2 and 3 as they make it free from Cocoapods. What exactly am I missing?