arc4random_uniform not available in Xcode 7.0 beta (7a176x) on OSX 10.10.4

血红的双手。 提交于 2019-12-28 04:21:06

问题


I'm trying to use arc4random_uniform in the Xcode build mentioned, but it seems to no longer be available:

An alt-click on the available functions show that they're declared in stdlib.h, which has them listed as follows:

It seems strange that its no longer available. This particular stdlib.h is within the iOS 9.0 simulator directory at usr/include/stdlib.h not sure if that helps or not.

I have the latest command line tools installed. Not sure what's going on. Any advice / help / fixes are much appreciated. Thanks in advance.

UPDATE

Seems to be an Xcode bug, references for which are:

  • 22275032
  • 22275176

回答1:


It seems to be still available (I have been using it in 7A176x, but on El Capitan), it is just not shown in the suggestions.



来源:https://stackoverflow.com/questions/31997685/arc4random-uniform-not-available-in-xcode-7-0-beta-7a176x-on-osx-10-10-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!