Tag: cocoapods

GooglePlus与CocoaPods链接错误

我添加到我的pod文件 pod 'google-plus-ios-sdk', '1.4.1' 我做了一个 pod update 我input了 #import <GooglePlus/GooglePlus.h> 但是,如果我尝试 [GPPSignIn sharedInstance].clientID = kClientID; 我从链接器得到这个错误: Undefined symbols for architecture i386: "_OBJC_CLASS_$_GPPSignIn", referenced from: objc-class-ref in SDSocialManager.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Manifest.lock给出关于Podfile.lock的警告,是什么引起的?

1 – 我尝试更新cocoapods并重新安装我的项目多次pod。 但Manifest.lock仍然看起来有问题。 我的应用运行良好。 它会影响以后的事情吗? 我如何解决它? 2 – 另外Pods_Projectname.framework在Xcode导航器中有红色标题。 我继续开发我的应用程序,但这些事情让我担心,我不知道发生了什么。 我找不到解决办法。 还是继续问题,另外看下面的问题: 构build阶段 – embeddedPods框架: "${SRCROOT}/Pods/Target Support Files/Pods-ProjectName/Pods-ProjectName-frameworks.sh" 构build阶段 – 复制荚资源: "${SRCROOT}/Pods/Target Support Files/Pods-ProjectName/Pods-ProjectName-resources.sh"

cocoa豆荚需要完全重新安装

的背景 对于来自.NET环境的Unix来说,我有些新鲜,但现在我知道足够让我陷入困境。 我有一个现有的代码,我正在使用Cocoapods所以我试图安装Cocoapods。 最初,当我安装它失败,说它需要一个较新版本的Ruby。 要安装Ruby,我使用了一个名为rvm的安装程序。 通过一些努力,我安装了RVM,并获得了Ruby版本2.1.0。 当我去到应用程序所在的目录时,我inputpod install它会回应pod: command not found 。 假设是安装cocoa豆荚一定有问题。 如果我尝试任何命令来安装或卸载Cocoapods gem install cocoapods or gem uninstall cocoa pods 它返回相同的响应,即: /Users/aliabidhusain/.rvm/rubies/ruby-2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:59:in `gem': uninitialized constant Gem::LOADED_SPECS_MUTEX (NameError) from /Users/aliabidhusain/.rvm/rubies/ruby-2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:46:in `require' from /Users/aliabidhusain/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems.rb:601:in `load_yaml' from /Users/aliabidhusain/.rvm/rubies/ruby-2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/config_file.rb:328:in `load_file' from /Users/aliabidhusain/.rvm/rubies/ruby-2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/config_file.rb:197:in `initialize' from /Users/aliabidhusain/.rvm/rubies/ruby-2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/gem_runner.rb:74:in `new' from /Users/aliabidhusain/.rvm/rubies/ruby-2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/gem_runner.rb:74:in `do_configuration' from /Users/aliabidhusain/.rvm/rubies/ruby-2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/gem_runner.rb:39:in `run' from /Users/aliabidhusain/.rvm/rubies/ruby-2.1.2/bin/gem:21:in `<main>' 我想,也许尝试安装cocoa豆荚的尝试可能会损坏某些东西,把东西放在错误的地方。 我想完全卸载cocoapods并重新安装它,但安装和卸载不做任何事情。 […]

CocoaPods库的错误build设一些iOS模拟器

短错误: file was built for archive which is not the architecture being linked (i386) 扩展: 对于某些模拟器,在构build我的项目时收到这些错误: ld:warning:忽略文件/Users/admin/Library/Developer/Xcode/DerivedData/myApp-ekwldvjyuxwkykbareyvvydbtero/Build/Products/Debug-iphonesimulator/libFSCalendar.a,该文件是为归档而构build的,而不是被链接的体系结构(i386) :/Users/admin/Library/Developer/Xcode/DerivedData/myApp-ekwldvjyuxwkykbareyvvydbtero/Build/Products/Debug-iphonesimulator/libFSCalendar.a ld:warning:ignore files / Users / admin / Library / Developer / Xcode / DerivedData / myApp- ekwldvjyuxwkykbareyvvydbtero / Build / Products / Debug-iphonesimulator / libGBDeviceInfo.a,该文件是为归档而构build的,而不是被链接的体系结构(i386):/ Users / admin / Library / Developer / Xcode / DerivedData / […]

在初始化“firebase”之后添加/编辑一个pod文件

所以,当我将pod文件安装到我的项目中时,我忘了在FirebaseDatabase中添加,现在我想添加它在我如何做到这一点? 将再次通过pod init进程搞砸了吗? 我的Pod文件的照片:

导入RealmSwift不再使用CocoaPods工作

这里推荐的RealmSwift Kruherson的CocoaPods安装(也可以从这里的realm.io页面推荐)基本上可以工作 – 但是在我的应用程序中使用Swift 0.92.3还有一个问题: 以下导入不再被识别! import RealmSwift 为了使CocoaPods在Swift下工作,我还需要做些什么? 以下是我使用的Podfile的内容: platform :ios, '8.3' use_frameworks! xcodeproj '/Users/XXX/…/MyApp/MyApp.xcodeproj' target 'MyApp' do pod 'RealmSwift', '>= 0.92.3' end 在这里,我的Xcode项目(只有Pods部分)的屏幕截图看起来像在“pod安装”之后: 有几件“红色的东西” – 问题可能在这里,还是我还想念什么? 我需要做什么才能进入import RealmSwift再次工作?

在Xcode 7上发生错误“pod install”

我更新了我的cocoapods(0.38.2)gem和xcodeproj(0.27.2),但仍然出现错误: – Writing Xcode project file to `Pods/Pods.xcodeproj` 2015-09-24 09:40:27.969 ruby[12098:428715] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-8227/IDEFoundation/Initialization/IDEInitialization.m:590 Details: Assertion failed: _initializationCompletedSuccessfully Function: BOOL IDEIsInitializedForUserInteraction() Thread: <NSThread: 0x7fb9adbd99d0>{number = 1, name = main} Hints: None Backtrace:0 0x000000011038ca5c -[DVTAssertionHandler handleFailureInFunction:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation) 1 0x000000011038c1e9 _DVTAssertionHandler (in DVTFoundation) 2 0x000000011038c455 _DVTAssertionFailureHandler (in DVTFoundation) 3 0x000000011038c3b7 _DVTAssertionFailureHandler (in DVTFoundation) […]

iOS的CocoaPods – 如何解决“在模块被禁用时使用'@import'错误?

我在通过cocoapods添加Google Analytics时寻求如何解决“禁用模块时使用'@import': pod 'Google/Analytics', '~> 1.0.0' link_with 'AppTarget', 'AppTargetTests' 在代码中: #import <Google/Analytics.h> 我在一个pod中得到这个错误: "use of '@import' when modules are disabled" 我检查了所有的项目,并看到模块已启用,以及其他build议“自动链接框架” 由于此错误,我无法覆盖此导入: 在xCode6中通过cocoapods添加框架时,如何解决“禁用模块时使用@import”?

问题时,创build我的第一个CocoaPod

我正在尝试创build我的第一个窗格,并按照以下教程进行操作: http : //www.sitepoint.com/creating-cocoapods/ 但是当我这样做: pod spec lint GLLingoManager.podspec 我得到以下错误: $ pod spec lint GLLingoManager.podspec -> GLLingoManager (0.1.0) – ERROR | [OSX] unknown: Encountered an unknown error ([!] /Applications/Xcode.app/Contents/Developer/usr/bin/git clone https://github.com/xeppen/GLLingoManager.git /var/folders/v6/tdz6zc7j10j_k0pc1vy627zm0000gn/T/d20160504-76297-8l71fj –template= –single-branch –depth 1 –branch 0.1.0 Cloning into '/var/folders/v6/tdz6zc7j10j_k0pc1vy627zm0000gn/T/d20160504-76297-8l71fj'… warning: Could not find remote branch 0.1.0 to clone. fatal: Remote branch 0.1.0 not […]

SpeechKit Pod for Swift会导致未声明的types错误

我已经实现了Nuance SpeechKit使用这个CocoaPod https://cocoapods.org/pods/SpeechKit并执行从接受的SO指令在这里: https : //stackoverflow.com/questions/30327372/implementing-nuance-speech-recognition -on-迅速-不能试听到onresult-oner 这样做后,我得到一个“使用未声明的types”SKRecognizerDelegate“”错误: 支持文件: 和 UIViewController中的错误: