Hello, I'm trying to build the iOS version of a co...
# compose
s
Hello, I'm trying to build the iOS version of a compose app, i have all the build on kotlin side working and when gradle finish i get a Message about 5 error (it seem to be in the xcode building part). I'm using last Compose multiplatform, kotlin 2.2.0-RC2 (was in last stable before and samer prob). I can't find any bug report of anything in my config that would break it, it's using the base project made by the web wizard.
Copy code
(1, 9) in file included from <module-includes>:1:
#import "Headers/ComposeApp.h"
        ^
expected member name or ';' after declaration specifiers
@property (class, readonly) BOOL DEBUG __attribute__((swift_name("DEBUG")));
                                 ^
(18, 15) expanded from macro 'DEBUG'
#define DEBUG 1
              ^
property requires fields to be named
^
expected ';' at end of declaration list
                                ^
expected identifier or '('
could not build Objective-C module 'ComposeApp'
import ComposeApp
       ^
SwiftCompile normal arm64 Compiling\ GeneratedAssetSymbols.swift /Users/REDACTED/Library/Caches/Google/AndroidStudio2025.1.1/DerivedData/iosApp-feohejvcrmezwidkuykyminxjmmk/Build/Intermediates.noindex/iosApp.build/Debug-iphoneos/iosApp.build/DerivedSources/GeneratedAssetSymbols.swift (in target 'iosApp' from project 'iosApp')
SwiftCompile normal arm64 Compiling\ iOSApp.swift /Users/REDACTED/Sources/Android/REDACTED/iosApp/iosApp/iOSApp.swift (in target 'iosApp' from project 'iosApp')
Run script build phase 'Compile Kotlin Framework' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'iosApp' from project 'iosApp')
Build failed with 5 errors and 0 warnings in 1 min, 40 sec