Quantcast
Channel: Development - Swift Forums
Browsing all 307 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Objective-c static library project, docc Markdown no symbol tips

1 post - 1 participant Read full topic

View Article



Good topics or issues for a first-time contribution to Swift

Hello, I am a student studying iOS development in South Korea. I am writing this post as I am interested in contributing to Swift for the first time. Could you please recommend any topics or issues...

View Article

Image may be NSFW.
Clik here to view.

Grabbing Mac Computer Name through C++ Interop hangs

I'm defining a simple call in swift to grab the name of the local Mac: public func getMacName() -> String { return Host.current().localizedName ?? "Unknown" } Then I call this from C++ as follows:...

View Article

LLVM Modules without Target Triple

Hey there! I am working on a project where we get LLVM IR generated from swift code that ends up being a xcode-framework. During all of that I am doing some modifications on the IR level that depend...

View Article

Compiler crash when conforming C++ type to Swift protocol

I'm encountering a compiler crash when trying to conform a C++ type to a Swift protocol using the released 5.9 compiler. Specifically, when I uncomment these lines:...

View Article


Unable to build with bootstrapping enabled

I'm having trouble building my fork of swift when I turn bootstrapping back on. The public fork is here: GitHub - carlos4242/swift: The Swift Programming Language and my changes are on the branch...

View Article

Xcode 15 build time much slower than previous Xcode version

Not sure the Xcode team from Apple having performance test cases or not but seem Xcode 15 build time much slower than previous Xcode version 14.x Can reference the results in the table on this project...

View Article

Image may be NSFW.
Clik here to view.

Any updates on the new Foundation?

What’s next for Foundation It appears swift-foundation will be releasing over time, as it has already shipped as part of Apple's 2023 OS versions. So it would be time to include the new...

View Article


Image may be NSFW.
Clik here to view.

Have a question regarding the content of an article about SIL

Hello, I am Kobe from South Korea, currently studying iOS and Swift. I am writing this post because I have a question regarding the content of an article about SIL (Swift Intermediate Language) on a...

View Article


macOS DYLD_LIBRARY_PATH Issue - Library not loaded: @rpath/libc++.1.dylib

Hey Everyone, I am currently facing an issue with the following command: > swift run --package-path CodeGeneration Error: Fetching https://github.com/apple/swift-argument-parser.git Fetched...

View Article

Consuming, borrowing and type inference

The following fails to compile: struct Ref<T>: ~Copyable { var value: T init(_ value: T) { self.value = value } } func consumingMap<A>( _ f: @escaping (inout A) -> Void ) ->...

View Article

My Swift Mentorship Journey

For over six years, I've been working as an iOS developer, and during this period I had the opportunity to work with both ObjC & Swift on various projects. My initial entry into the iOS world was...

View Article

@_noLocks with Int32 inequality check

Here is a short snippet of code that triggers violation: "Using type 'Int32' can cause metadata allocation or locks" @_noLocks func notEqual() -> Bool { let x = Int32(1) return x != 1 } This...

View Article


Unowned(unsafe) can cause locking with @_noLocks

This code generates compiler error: "This code performs reference counting operations which can cause locking" @_noLocks func unownedUnsafe() { unowned(unsafe) let y = self } on another hand this code...

View Article

Image may be NSFW.
Clik here to view.

[GSoC-2024] Looking for possible list of Ideas for upcoming GSoC 2024

Hey Swift Community! I am sure everyone's having a great time contributing and fixing bugs towards the swift-project and its sub repos just as I am! Over the past year I have grasped a lot about the...

View Article


Versioning a SwiftPM catalog

Hello Everyone, I'm looking a way to reproduce a versionning catalog with spm in multi module project. Does anyone has any clue how I could achieve that ? To give more context to what I want achieve :...

View Article

How to use macros to generate comments

I hope to generate some comments simultaneously when using macros to generate code, but I haven't found any macros related to comments. Does macros support comment generation currently? 2 posts - 2...

View Article


Invalid manifest after using `swift package init --type executable`

Hey all, I have been encountering an Invalid manifest error when building any swiftpm project on Windows 11 (22H2 build 22621.2283). This happens even on packages generated using swift package init...

View Article

Image may be NSFW.
Clik here to view.

Swift Macros: Adding an enum case with an associated value produces incorrect...

Reproduced in Xcode versions 15.0.1 and 15.1 beta 3. If a Macro adds an enum case with an associated value, other cases are transformed at runtime. In the example below, the case foo is translated...

View Article

Usage of no-implicit-copy value that the compiler can't verify

The following code snippet raises the following compiler error: "Usage of no-implicit-copy value that the compiler can't verify. This is a compiler bug. Please file a bug with a small example of the...

View Article
Browsing all 307 articles
Browse latest View live




Latest Images