Ridiculous amount of warnings in xcode 6 beta 7

In Xcode 6 beta 7, my warnings are divided into two sections, for example, if one of them is called "my application", the other will be called "my application project". I fixed all the warnings I got in the My Application section (there were only 3-4 of them). However, I have over 42,000 warnings in the My Application Project section! This was before I even wrote the code and created my empty project. I always assumed it was beta, but I would like to know if everyone else is experiencing the same thing. I can't even see what kind of problems Xcode freezes when I try due to the overwhelming number of warnings.

+3


source to share


2 answers


The release notes provide some details of the bugs that appear to be an evolution of Swift:

http://adcdownload.apple.com//Developer_Tools/xcode_6_beta_7_apzr94/xcode_6__beta_7_release_notes.pdf

From the release notes:

Swift language



• A large number of Foundation, UIKit, CoreData, SceneKit, SpriteKit, Metal API applications have been tested for additional compliance by removing a significant number of implicitly expanded options from their interfaces. This clarifies the invalidation of their properties, arguments, and the return values ​​of their methods. This is an ongoing effort that started in Beta 5.

These changes replace T! or with T? or T depending on whether the value can be zero or non-zero, respectively. If you find the wrong case, please submit a radar file and include the '#IUO tag in the subject line. Please do not submit requests for API functions that are still marked as T !, we are aware of them.

If you come across a method for which a return value is incorrectly invalidated, or a property that is incorrectly considered invalid, you can work around the problem by immediately wrapping the result as optional:

  var fooOpt: NSFoo? = object.reallyMightReturnNil()
  if let foo = fooOpt { ... }

      

+1


source


I haven't had any of these issues in any of the releases including Xcode 6 Beta 7. In each beta, I usually get about 100 or so errors due to syntax changes, but they only take half an hour or so to go through and resolve.



+1


source







All Articles