Xcode 14 beta: NSString function does not return string type

I downloaded xcode 14 beta to look into the iOS 16 issue and now im seeing this compiler issue about NSString. Just by importing a UIKit onto a Objective C++ code gives me this error, not just one file.

Any tips to fix this?

Just by importing a UIKit onto a Objective C++ code gives me this error

What does the code that triggers the error look like?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I have the same problem, and my director helped me to fix it by the following:

  1. Open Preference -> Locations -> Derived Data

  2. Go to the Derived Data path and delete all the folders

  3. Clean Build Folder and try again

I hope you find this information helpful.

Xcode 14 beta: NSString function does not return string type
 
 
Q