skip icon indicating copy to clipboard operation
skip copied to clipboard

Swift Compile error on first compile: Main actor-isolated default value in a nonisolated context

Open TS200010 opened this issue 4 months ago • 2 comments

Steps to reproduce

I have installed SkipTools and all the checkups are OK.

I then created a Project with: skip init --transpiled-app --appid=ItMk.SkipTrial project-name SkipTrial

I then open the workspace project.xcworkspace in /project-name ....

I hit run and get a compile error

Actual results

I am getting the following error in main.swift

class AppMainDelegate: NSObject, AppMainDelegateBase {
    let application = AppType.shared

ERROR: Main actor-isolated default value in a nonisolated context

Logs

Logs

<!-- Paste your logs here -->

Skip Checkup output

Checkup output

<!-- Paste your output here -->

TS200010 avatar Aug 30 '25 10:08 TS200010

What version of Xcode is this? We don't quite support Xcode 26 yet. But that particular error can probably be worked around by annotating the AppMainDelegate with @MainActor.

marcprux avatar Aug 30 '25 14:08 marcprux

I am using Version 16.4 (16F6)

I did try the annotation you suggested and it worked so for now I can move on trying things out.

TS200010 avatar Aug 30 '25 15:08 TS200010