andriydruk / swift-weather-app

Cross-platform Swift application for iOS/Mac/Android/Windows
MIT License
46 stars 10 forks source link

Build fails: `swift: error: manifest parse error(s):` #27

Open heath-clink opened 10 months ago

heath-clink commented 10 months ago

I set up the swift toolchain according to the instructions at swift-android-toolchain.

Running macOS 13.5.2, Xcode 15.0 (also tried with Xcode 14.2, same result), Apple silicon CPU


$ ./gradlew assembleDebug
Starting a Gradle Daemon (subsequent builds will be faster)

> Configure project :app
Warning: The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin.

> Task :app:installSwiftTools
Installing Swift Build Tools v1.9.7-swift5.4
Swift Build Tools v1.9.7-swift5.4 installed

> Task :app:swiftBuildArm64Debug
Swift PM flags: --configuration debug -Xswiftc -DDEBUG
/Users/redacted-username/src/swift-weather-app/android/app/src/main/swift: error: manifest parse error(s):
error: fatalError
/Users/redacted-username/src/swift-weather-app/android/app/src/main/swift/Package.swift:3:8: error: no such module 'PackageDescription'
import PackageDescription
       ^

> Task :app:swiftBuildArm64Debug FAILED

FAILURE: Build failed with an exception.
andriydruk commented 10 months ago

Hi The current version of Swift Weather works only with 5.4 That's why you need XCode 13 as it was mentioned in the readme

[IMPORTANT] Install XCode 13.0 and make it default in Command Line

I'm working on supporting Swift 5.7 it will be compatible with Xcode 14.2