我运行pod install我的 Flutter 应用程序,收到此错误:
[!] CocoaPods could not find compatible versions for pod "app_settings":\n In Podfile:\n app_settings (from `.symlinks/plugins/app_settings/ios`)\n\nSpecs satisfying the `app_settings (from `.symlinks/plugins/app_settings/ios`)` dependency were found, but they required a higher minimum deployment target.\nRun Code Online (Sandbox Code Playgroud)\nPre-downloading: `FirebaseFirestore` from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `10.12.0`\ncloud_firestore: Using user specified Firebase SDK version '10.12.0'\ncloud_functions: Using user specified Firebase SDK version '10.12.0'\nfirebase_analytics: Using user specified Firebase SDK version '10.12.0'\nfirebase_auth: Using user specified Firebase SDK version '10.12.0'\nfirebase_core: Using user specified Firebase SDK version '10.12.0'\nIgnoring …Run Code Online (Sandbox Code Playgroud) 按步骤一步一步完成:http: //www.raywenderlich.com/12139/introduction-to-cocoapods
pod install在不同的项目中运行时出错:
### Stack
```
CocoaPods : 0.15.2
Ruby : ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]
RubyGems : 1.8.24
Host : Mac OS X 10.8.2 (12C60)
Xcode : 4.5.2 (4G2008a)
Ruby lib dir : /usr/local/rvm/rubies/ruby-1.9.3-p194/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 60b51e341f727b7d715ed541ea9cb52f6e0cc819
```
### Podfile
```ruby
platform :ios, '6.0'
pod 'AFNetworking', '1.0'
```
### Error
```
invalid byte sequence in US-ASCII
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.15.2/lib/cocoapods/local_pod.rb:540:in `glob'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.15.2/lib/cocoapods/local_pod.rb:540:in `glob'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.15.2/lib/cocoapods/local_pod.rb:540:in `block in expanded_paths'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.15.2/lib/cocoapods/local_pod.rb:534:in `map'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.15.2/lib/cocoapods/local_pod.rb:534:in `expanded_paths'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.15.2/lib/cocoapods/local_pod.rb:327:in `readme_file' …Run Code Online (Sandbox Code Playgroud) 我已经成功安装了一个pod(SDWebImage),现在正在尝试添加名为"MFSideMenu"的库.我的Podfile看起来如下:
platform :ios, '6.0'
pod 'SDWebImage', '3.2'
pod 'MFSideMenu'
Run Code Online (Sandbox Code Playgroud)
当我执行"pod安装"时,我得到以下(错误 - )输出:
Analyzing dependencies
Downloading dependencies
Installing MFSideMenu (0.4.8)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems
/custom_require.rb:31: command not found: git config remote.origin.url
[!] Unable to locate the executable `git`
Run Code Online (Sandbox Code Playgroud)
有谁知道这里的问题是什么?
提前致谢!
我第一次尝试使用CocoaPods和ObjectiveRecord.ObjectiveRecord的github页面
当我尝试保存我的对象时,出现以下错误:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Cannot create an NSPersistentStoreCoordinator with a nil model'
*** First throw call stack:
(
0 CoreFoundation 0x01aae5e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x018318b6 objc_exception_throw + 44
2 CoreData 0x00023b0e -[NSPersistentStoreCoordinator initWithManagedObjectModel:] + 398
3 ObjectiveRecordTest 0x00003691 -[CoreDataManager persistentStoreCoordinatorWithStoreType:storeURL:] + 193
4 ObjectiveRecordTest 0x000030f9 -[CoreDataManager persistentStoreCoordinator] + 169
5 ObjectiveRecordTest 0x00002dba -[CoreDataManager managedObjectContext] + 106
6 ObjectiveRecordTest 0x00003f26 +[NSManagedObjectContext(ActiveRecord) defaultContext] + 86
7 ObjectiveRecordTest 0x0000477a +[NSManagedObject(ActiveRecord) create] + 58 …Run Code Online (Sandbox Code Playgroud) 我从github拉信息并运行pod update并得到此错误:
Setting up CocoaPods master repo
Already up-to-date.
[!] The `master` repo requires CocoaPods 0.29.0 -
Update CocoaPods, or checkout the appropriate tag in the repo.
/Library/Ruby/Gems/2.0.0/gems/claide-0.4.0/lib/claide/command.rb:217:in `rescue in run': undefined method `verbose?' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/2.0.0/gems/claide-0.4.0/lib/claide/command.rb:210:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.28.0/lib/cocoapods/command.rb:52:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.28.0/bin/pod:24:in `<top (required)>'
from /usr/bin/pod:23:in `load'
from /usr/bin/pod:23:in `<main>'
Run Code Online (Sandbox Code Playgroud)
我尝试sudo gem update将此更新cocoapods改为0.29.然后我运行pod更新并获取:
Unable to find a specification for `cdebug`.
Run Code Online (Sandbox Code Playgroud) 我在安装CocoaPods时遇到问题.我已经用谷歌搜索了一个解决方案,并按照我如何选择我的Podfile中的项目的答案?我收到错误:无法找到目标'Pods'的Xcode项目.谁能说我做错了什么?
Michaels-MacBook-Air:~ michael$ cd ~/Documents/Chinese\ Restaurants/
Michaels-MacBook-Air:Chinese Restaurants michael$ pod install
[in /Users/michael]
Analyzing dependencies
[!] Could not automatically select an Xcode project. Specify one in your Podfile like so:
xcodeproj 'path/to/Project.xcodeproj'
Michaels-MacBook-Air:Chinese Restaurants michael$ cd ~/Documents/Chinese\ Restaurants/Chinese\ Restaurants.xcodeproj/
Michaels-MacBook-Air:Chinese Restaurants.xcodeproj michael$ pod setup
Setting up CocoaPods master repo
Already up-to-date.
Setup completed (read-only access)
Michaels-MacBook-Air:Chinese Restaurants.xcodeproj michael$ touch Podfile
Michaels-MacBook-Air:Chinese Restaurants.xcodeproj michael$ open -e Podfile
Michaels-MacBook-Air:Chinese Restaurants.xcodeproj michael$ pod install
Analyzing dependencies
[!] Could …Run Code Online (Sandbox Code Playgroud) 我已将ReactiveCocoa添加到我的Podfile并成功安装.但是,当我尝试构建我的项目时,我遇到了"为libPods -LlamaKit.a创建静态库"的问题.
看起来LLamaKit是用Swift编写的(而我的项目是ObjC) - 这有关系吗?
给出的错误是:
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option character `X' in: -Xlinker
Run Code Online (Sandbox Code Playgroud) 我试图在swift项目中使用libPhoneNumber-iOS/NBPhoneNumber,我在桥接头中找到一个文件未找到错误
#import <libPhoneNumber-iOS/NBPhoneNumber.h>
Pod文件
pod 'libPhoneNumber-iOS', '~> 0.7'
https://github.com/iziz/libPhoneNumber-iOS
我应该引用什么才能找到它?libPhoneNumber-IOS
我刚刚升级到CocoaPods的0.37.1版本,现在我在尝试更新我的GoogleAnalytics库时遇到错误
在我的podfile中我有
pod 'GoogleAnalytics-iOS-SDK'
Run Code Online (Sandbox Code Playgroud)
而现在当我执行
pod update
Run Code Online (Sandbox Code Playgroud)
我收到以下错误
[!]安装GoogleAnalytics-iOS-SDK时出错[!]/opt/local/bin/curl -f -L -o /var/folders/v_/g79mcljx083bf8rp289mdy7r0000gq/T/d20150527-85393-io5rvl/file.zip https:/ /dl.google.com/googleanalyticsservices/GoogleAnalyticsServicesiOS_3.12.zip --create-dirs
%总收到百分比%Xferd平均速度时间时间当前时间
Run Code Online (Sandbox Code Playgroud)Dload Upload Total Spent Left Speed0 0 0 0 0 0 0 0 - : - : - - : - : - - : - : - 0curl:(60)SSL证书问题:无法获得本地颁发者证书
更多细节请访问:http://curl.haxx.se/docs/sslcerts.html
curl默认使用"捆绑"执行SSL证书验证
证书颁发机构(CA)公钥(CA证书).如果是默认值
捆绑文件不够用,您可以指定备用文件
使用--cacert选项.
如果此HTTPS服务器使用由CA表示的CA签名的证书
捆绑,证书验证可能因a而失败
证书问题(可能已过期,或名称可能已过期)
与URL中的域名不匹配).
如果您想关闭curl对证书的验证,请使用
-k(或--insecure)选项.
我已经尝试更改我的podfile以使用此pod但同样的错误
pod 'GoogleAnalytics'
Run Code Online (Sandbox Code Playgroud)
有谁知道这导致了什么?是与v0.37.1更新有关还是与pods源有关?
背景:几天前我决定从Facebook-iOS-SDK v3.24将Facebook SDK更新为FBSDKCoreKit.我相应地更新了我的Podfile并安装了所有库.然后我开始更新一些代码以使用更新的SDK规范.
经过一段时间的努力后,我改变主意,决定回滚到旧版本.我做了所有必要的cocoapods更改和安装,丢弃了Xcode中的所有本地更改,重新编译并运行.一切都很好......或者我认为.
问题:现在,当我尝试在我的旧iOS7测试设备上运行时,每当应用程序启动时我都会收到错误消息.以下是确切的控制台输出:
2015-10-15 20:14:31.271 hiatus[184:6003] [Error]: Failed to run command eventually with
error: Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be
completed. (Cocoa error 3840.)" (JSON text did not start with array or object
and option to allow fragments not set.) UserInfo=0x14d67d20 {NSDebugDescription=
JSON text did not start with array or object and option to allow fragments not set.}
Run Code Online (Sandbox Code Playgroud)
在控制台中显示此错误后,没有Parse功能可用.在我的情况下,这意味着用户无法登录.而是显示空错误.
在iOS8和iOS9(模拟器和真实设备)上一切正常.我正在使用Parse v1.9.我试过清理项目,重置等,但没有任何成功.
我已经能够将其跟踪到PFEventuallyQueue.m中的特定功能.它似乎发生在(void)_runCommandsWithRetriesCount:.我只是无法知道如何解决它.