Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
343 views
in Technique[技术] by (71.8m points)

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

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

arc4random_uniform no longer available

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

stdlib.h showing arc4random_uniform defined

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
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...