草庐IT

compiler-specific

全部标签

ios - 如何调试 dsymutil 错误 : "Clang modules are expected to have exactly 1 compile unit."

在iOS应用程序的GenerateDSYMFile阶段收到此错误消息:/Users/name/Library/Developer/Xcode/DerivedData/ModuleCache/HASH/FrameworkName-HASH:Clangmodulesareexpectedtohaveexactly1compileunit.Command/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutilfailedwithexitcode1

ios - Live555 compile for iOS 编译报错

我正在尝试为iOS编译Live555。我做了以下事情:./genMakefilesiphoneosmake我收到以下构建错误:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-c-I../UsageEnvironment/include-I../groupsock/include-I../liveMedia/include-I../BasicUsageEnvironment/include-I.-DBSD=1-O2-DSOCKLEN_T=socklen

ios - OS X 崩溃报告中的 "Application specific information"

许多OSX崩溃报告都有这部分,例如下面的引述ExceptionType:EXC_CRASH(SIGABRT)ExceptionCodes:0x0000000000000000,0x0000000000000000ApplicationSpecificInformation:objc[1769]:garbagecollectionisOFFTerminatingappduetouncaughtexception'InvalidX',reason:'Xcan'tbe0'Firstthrowcallstack:在我的应用程序中有自定义崩溃处理。我所能做的就是处理信号,没有别的。我在哪里可以检

ios - 位置搜索 : Specific Address vs local businesses

我正在为iOS开发一个定位应用。我目前有一个搜索栏,可用于搜索本地企业(例如比萨饼、加油站、银行)。搜索栏文本作为参数添加到URL并提供给YahooLocalAPI。我也想使用相同的搜索栏来查找特定地址,但这不是API的功能。我想我必须:A)构建一些可以区分广泛的业务搜索和特定位置搜索的功能。将业务查询发送到API,并将地址搜索发送到CLGeocoder。B)寻找更通用的API。C)做一些我还没有考虑过的事情。我可以添加一个单独的搜索字段并将其用于地址搜索,但我想知道是否可以从同一个搜索栏中进行搜索。如果有人可以提供任何建议或指出正确的方向,我将不胜感激。谢谢。

ios - objective-C/iOS : Get date for specific day in week (sunday)

我需要获取当前周中特定日期(星期日)的日期。我使用这个日期来确定是否应该进行每周重置,并且我对上次重置日期早于星期日日期等进行了一些计算。原则上,这已被多次询问和回答,我的解决方案在过去6个月内一直有效。但是今天,2013年12月29日,它停止工作了。目前使用的函数:+(NSDate*)getSundaysDate{NSDate*currentDate=[NSDatedate];NSCalendar*gregorian=[[NSCalendaralloc]initWithCalendarIdentifier:NSGregorianCalendar];[gregoriansetFirst

ios - 单点触控 : no gcc compiler found

在MonoTouch/Xcode升级过程中修复应用商店中损坏的应用。似乎无法让一切恢复正常。由于mtouch似乎无法找到gcc,现在卡在了一个看似损坏的配置中。gcc似乎可用,我可以在xcode上编译一个示例iphone项目有什么想法吗? 最佳答案 这样的事情可能发生在:a)安装Xcode4.3[.1]以及何时删除Xcode4.2(安装程序要求这样做)或者从未安装过。要解决此问题,您需要安装可选的“命令行工具”以获得完整安装。您可以使用以下步骤从Xcode内部执行此操作:XCode4.3CommandLineToolsPackage

ios - oclint:oclint-json-compilation-database 返回 "Skipping [Path] Command line not found."

在(看似)使用oclint-xcodebuild成功生成compile_commands.json之后,oclint-json-compilation-database无法正确创建pmd样式的报告。命令看起来像这样:oclint-json-compilation-database-ePods-v---report-type=pmd-o=oclint.xml-debug它返回:Skipping[PathtoDirectorywithcompile_commands.json].Commandlinenotfound.我正在使用oclint0.7。 最佳答案

java - Spring WebSocket @SendToSession : send message to specific session

是否可以向特定session发送消息?我在客户端和Springservlet之间有一个未经身份验证的websocket。当异步作业结束时,我需要向特定连接发送未经请求的消息。@ControllerpublicclassWebsocketTest{@AutowiredpublicSimpMessageSendingOperationsmessagingTemplate;ExecutorServiceexecutor=Executors.newSingleThreadExecutor();@MessageMapping("/start")publicvoidstart(SimpMessag

java - Spring WebSocket @SendToSession : send message to specific session

是否可以向特定session发送消息?我在客户端和Springservlet之间有一个未经身份验证的websocket。当异步作业结束时,我需要向特定连接发送未经请求的消息。@ControllerpublicclassWebsocketTest{@AutowiredpublicSimpMessageSendingOperationsmessagingTemplate;ExecutorServiceexecutor=Executors.newSingleThreadExecutor();@MessageMapping("/start")publicvoidstart(SimpMessag

ios - SpriteKit : remove specific node instead of all nodes

我创建了一个应用程序,其中有两种不同大小的从天而降的“石头”节点源源不断。玩家控制第三个石头对象,并根据收集到的两种落石类型中的哪一种来获得积分。最后,梁对象用作移动地面。到目前为止,我已经在我的应用程序中添加了碰撞检测,它可以检测不同石头和光束之间的碰撞。这是我的碰撞代码:staticconstuint32_tstoneCategory=1;staticconstuint32_tbeamCategory=2;staticconstuint32_tstoneCategory2=4;和-(void)didBeginContact:(SKPhysicsContact*)contact{SK