小编pro*_*rey的帖子

iOS上的WebSockets

我已经读过WebSockets适用于iOS 4.2及更高版本.我可以验证确实存在WebSocket对象.但我找不到一个可在手机上运行的WebSocket示例.

例如,http://yaws.hyber.org/websockets_example.yaws将使Mobile Safari应用程序崩溃.有没有人让WebSockets在手机上成功运作?

iphone websocket ipad ios

20
推荐指数
2
解决办法
5万
查看次数

通过AppleScript构建并运行xcode项目

我正在尝试构建一个xcode项目并通过iPhone模拟器通过AppleScript运行它.我知道xcodebuild,但它不允许你在模拟器中运行应用程序.我已经非常接近下面的脚本......

tell application "Xcode"
  set targetProject to project of active project document

  tell targetProject
    set active build configuration type to build configuration type "Debug"
    set active SDK to "iphonesimulator3.0"
  end tell

  if (build targetProject) is equal to "Build succeeded" then
    launch targetProject
  end if
end tell
Run Code Online (Sandbox Code Playgroud)

...但是build命令似乎没有服从活动的SDK属性,它总是默认为项目的基本SDK设置(例如iPhoneOS3.0而不是iPhonesimulator3.0)

有没有办法告诉build命令使用特定的SDK?我在雪豹上使用xcode 3.2.

iphone xcode applescript

10
推荐指数
1
解决办法
8051
查看次数

标签 统计

iphone ×2

applescript ×1

ios ×1

ipad ×1

websocket ×1

xcode ×1