Post

Replies

Boosts

Views

Activity

Xcode 13.3 beta 2, code completion error
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)
0
0
345
Feb ’22
No such module 'FrameworkName' when archive
I'm trying to using SwiftPM to instead Cocoapods in my project. but I got an error: No such module 'SFS2XAPIIOS'. This error only occurs when I archive. Here is my Package.swift: // swift-tools-version:5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package(     name: "Test",     platforms: [.iOS(.v10)],     products: [         .library(             name: "Test",             targets: ["Test", "SFS2XAPIIOS"]),     ],     dependencies: [     ],     targets: [         .target(             name: "Test",             dependencies: [             ],             path: "Paht"         ),         .binaryTarget(name: "SFS2XAPIIOS", path: "Paht/SFS2XAPIIOS.xcframework"),         .testTarget(             name: "TestTests",             dependencies: ["Test"]),     ] ) I have added Test Package to the project. When I use the Debug environment, I can run the project from anywhere. I can run the project from anywhere, including iPhone devices and x86 emulators. When I trying to archive, I will always get an error: No such module 'SFS2XAPIIOS' Can someone help me fix it?
2
0
3.6k
Nov ’20
Xcode 12 Build failed, error: circular reference
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
7
0
9.7k
Sep ’20