Our project compiles and runs fine on Xcode 11.
However, when I compile with Xcode 12, it tells me <unkown>0: error: circular reference
The specific information is as follows:
<unknown>:0: error: merge-module command failed with exit code 1 (use -v to see invocation)
and
<unknown>:0: error: circular reference
Command MergeSwiftModule failed with a nonzero exit code
Please see my attachments for specific errors.
Other than that, I can't get any more error messages.
Xcode 12 build failed logs - https://developer.apple.com/forums/content/attachment/8e91198a-3348-4d7f-8459-94b8549188dd
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
code completion always give me error selection
StackOverflow, auto-complete-alwyas give me error selection
example:
import Vapor
struct MainController: RouteCollection {
func boot(routes: RoutesBuilder) throws {
routes.get(use: index(req:))
// ↑ there
// if i typing `index` and chosen from selection picker, it will display `index(req: <#Request#>)` not `index(req:)`
// but when i typing `self.index` and chosen from selection picker, it will work normal
}
}
private extension MainController {
func index(req: Request) throws -> EventLoopFuture<View> {
req.view.render("index", ["title": "Hi guys~", "md_file": "/index.md"])
}
}
Environment:
Xcode 13.3 beta 2
Intel chip, MacBook Pro (16-inch, 2019), macOS monterey 12.2.1 (21D62)