草庐IT

report_service

全部标签

iOS 7 核心位置 : region monitoring fails on the first time after location services are authorised

我使用CoreLocation在我的应用程序上发现了一个奇怪的行为。我正在使用区域监控功能,但在授权位置服务(通过弹出窗口或设置->位置服务)后,区域监控失败(操作无法完成。kCLErrorDomain错误5.)。如果我关闭应用程序并重新启动(因此已经获得授权),一切都会按预期进行。我的代码如下所示:-(void)initializeLocationServices{NSLog(@"Startedlocationservices");locationManager=[[CLLocationManageralloc]init];locationManager.delegate=self;

objective-c - "Game Center account services are currently unavailable"在模拟器上

我不知道这是什么时候发生的,可能是在升级到MacOSLion和Xcode4.1之后。但我不确定。我有一个相当大的iOS项目,它受到GameCenter/GameKit的限制。我开门见山:在模拟器上我无法再连接到GameCenter。例如,即使我在模拟器上打开“GameCenter”应用程序并单击“创建帐户”,我也会收到错误消息:“GameCenter帐户服务当前不可用。请稍后重试。”我已经用谷歌搜索了几天,这是我尝试过的:我按照Apple在文档中所说的那样配置了我的路由器,尽管它在几周前的配置之前就已经工作了。我还检查了不同的网络/路由器。我完全删除了XCodeDeveloper工具(

ios - KIF 输出 : AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort"

在装有iOS8.1.3的设备上运行KIF集成测试时,我收到大量以下类型的诊断消息作为控制台输出:AXExchangeerror:ErrorDomain=AccessibilityCode=0"Remoteservicedoesnotrespondto_accessibilityMachPort"UserInfo=0x1a55de50{NSLocalizedDescription=Remoteservicedoesnotrespondto_accessibilityMachPort}这发生在调用waitForAccessibilityElement:view:withElementMat

ios - 无法创建 xmpp muc 房间 : Code 503 (service unavailable)

我创建房间的代码:XMPPRoomCoreDataStorage*rosterstorage=[[XMPPRoomCoreDataStoragealloc]init];XMPPRoom*xmppRoom=[[XMPPRoomalloc]initWithRoomStorage:rosterstoragejid:[XMPPJIDjidWithString:@"groupchat@xmpp.getkismet.com/groupchat"]dispatchQueue:dispatch_get_main_queue()];[xmppRoomactivate:[[selfappDelegate]

ios - 签名(调试)不包括 beta-reports-active 权利

在尝试设置Xcode8的签名设置时,我遇到了以下开发配置文件错误:Provisioningprofile"XXX"doesn'tincludethebeta-reports-activeentitlement.重新创建配置文件没有帮助。我不太确定这种类型的配置文件是否需要beta-reports-active设置,因为我看到其他问题只有AppStore配置文件应该使用这些设置。我将不胜感激更新:AdHocprovisionprofile有同样的错误,但是AppStoreprovisionprofile对于Release工作正常。 最佳答案

web-services - 计算 MAP 中两点之间的距离(以公里为单位)

我到了应用程序中最关键的一步,我的数据库有一个服务站列表(及其经纬度坐标),我必须发送服务站的经度和纬度将用户添加到Web服务,该服务将尝试查找用户周围半径为5公里的站点。是否有任何预建算法可以帮助我,欢迎任何建议、链接或任何您认为可以帮助我的东西,提前谢谢:) 最佳答案 您可以使用CoreLocation框架来执行此操作:用纬度和经度为每个服务站初始化一个CLLocation对象CLLocation*loc=[[CLLocationalloc]initWithLatitude:serviceStation.latitudelong

amazon-web-services - 使用 websocket 连接的客户端连接到 memcached

有谁知道memcached客户端是否可以使用websocket连接连接到memcached?我问的原因是我们想使用AWS的ApplicationLoadBalancer,它仅通过websocket连接支持TCP。我们的应用程序使用TCP从缓存中检索属性,我们希望将它们放在ALB后面以实现扩展。 最佳答案 Websockets不是普通的TCP套接字,但它们包含使用HTTP的初始握手,并且消息本身被放入特殊的帧中。这意味着要使用Websockets与某些服务器通信,服务器必须了解Websockets。Memcached未实现Websoc

amazon-web-services - EC2 上的 XMPP 服务器超时

我已经在EC2上部署了XMPP服务器。我在客户端连接到服务器时遇到问题。服务器位于北加州。我无法与服务器建立稳定的连接。我可以连续连接3次,但第4次总是超时。XMPP服务器日志显示服务器甚至没有与客户端建立连接我使用了2个客户端(Pidgin、XMPPHPphp脚本)。我使用了2个不同版本的XMPP服务器(eJabberd、经过我修改的MongooseIM),结果相同。要连接的PHP脚本的结果。1404297313[INFO]:Connectingtotcp://xxx-xx-xxx-xxx-xxx.us-west-1.compute.amazonaws.com:5222PHPWarn

java - 错误 : Could not find com. google.gms :google-services:1. 0. 在 android studio 的 build.gradle 中添加 google 服务插件时

我正在我的android应用程序上集成Google+的OAuth登录,遵循tutorial.根据教程,我应该通过添加来添加GoogleService插件classpath'com.google.gms:google-services:1.0'对我的android项目中顶级build.gradle的依赖。但是,当我将gradle与更改同步时,我看到如下错误:Error:Couldnotfindcom.google.gms:google-services:1.0.Searchedinthefollowinglocations:file:/C:/ProgramFiles/Android/An

java - 错误 : Could not find com. google.gms :google-services:1. 0. 在 android studio 的 build.gradle 中添加 google 服务插件时

我正在我的android应用程序上集成Google+的OAuth登录,遵循tutorial.根据教程,我应该通过添加来添加GoogleService插件classpath'com.google.gms:google-services:1.0'对我的android项目中顶级build.gradle的依赖。但是,当我将gradle与更改同步时,我看到如下错误:Error:Couldnotfindcom.google.gms:google-services:1.0.Searchedinthefollowinglocations:file:/C:/ProgramFiles/Android/An