我在MacOS X 10.3上安装CocoaPods时遇到问题.第一次尝试失败并带有DependencyError用于小睡.我安装午睡并再次尝试相同的结果.卸载并重新安装没有帮助.
andreass-mbp:~ AndreasB$ sudo gem uninstall cocoapods
Password:
andreass-mbp:~ AndreasB$ sudo gem uninstall nap
Successfully uninstalled nap-1.0.0
andreass-mbp:~ AndreasB$ sudo gem install nap
Fetching: nap-1.0.0.gem (100%)
Successfully installed nap-1.0.0
Parsing documentation for nap-1.0.0
Installing ri documentation for nap-1.0.0
1 gem installed
andreass-mbp:~ AndreasB$ sudo gem install cocoapods
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: cocoapods requires nap (~> 0.8); cocoapods-stats requires nap (~> 0.8); cocoapods-core requires nap (~> 0.8.0)
Run Code Online (Sandbox Code Playgroud) SignificantLocationChanges自从iOS 8发布以来,我遇到了一个问题.该方法
[locationManager startMonitoringSignificantLocationChanges];
Run Code Online (Sandbox Code Playgroud)
在检查可用性之后正确调用,委托也很好用(我用didChangeAuthorizationStatus方法检查它,它是同一委托和对象的一部分)并且编译器毫无疑问,但绝对没有更新,也没有来自didFailWithError方法的错误.日志说authorizationStatus是4,我认为这是好的.
在iOS 8之前,一切正常.
第一个测试设备(带有3G的iPad 2)运行iOS 7.1.2第二个(iPhone 5)8.0.2,当我使用常规startUpdatingLocation方法时,我立即获得更新.但SignificantLocationChanges对我的工作会好得多.有谁知道错误可能在哪里?