Having a new error: 'Task' cannot be constructed because it has no accessible initializers
Setup: Mac mini M1, Monterey 12.0 Beta(21A5284e) and Xcode 13.0 Beta(13A5154h).
Used to work with Monterey first beta. I changed to Monterey Public Release Beta and the error is above.
Not familiar with Swift, still learning, any quick advice to get this bug out?
Thanks!
I am guessing that the Task is used for future version of Swift. If I change the Task to async, ie.
let waiter = async {
New error for session.outputs
Value of type 'PhotogrammetrySession' has no member 'outputs'
Post
Replies
Boosts
Views
Activity
Found a solution:
Upgrade Xcode Version 13.0 beta 3 (13A5192j), and the problem solved.
Task is used for Swift 5.5 and above.