-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Properties are missing input or output annotations #3
Comments
Unfortunately it doesn't appear that this project is maintained anymore. I tried the https://github.com/doublesymmetry/kotlin-spm-plugin fork, which fixes the annotation issues, but then fails during temporary Xcode project creation: The I attempted to switch to using I imagine it would take quite a bit of work to get this project in working order again. 😢 |
@twyatt I'd be interested to try and take this on. I think it may be achievable using However may be blocked when building libraries which depend on Obj-C. swift build -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios14.0-simulator"
#import <AVFoundation/AVDisplayCriteria.h>
^
<unknown>:0: error: could not build Objective-C module 'AVFoundation'
error: fatalError
https://forums.swift.org/t/swiftpm-swift-build-for-ios/42517/4 Building without import works fine: swift build -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios14.0-simulator"
Building for debugging...
<unknown>:0: warning: using sysroot for 'MacOSX' but targeting 'iPhone'
<unknown>:0: warning: using sysroot for 'MacOSX' but targeting 'iPhone'
[6/6] Archiving libRadioPlayerLocal.a
Build complete! (0.43s) |
https://youtrack.jetbrains.com/issue/KT-53877/Support-Swift-Package-Manager-in-Kotlin-Multiplatform Comment on the Jetbrains issue could be relevant. I need to investigate using Gradle plugin to build swift https://docs.gradle.org/current/userguide/building_swift_projects.html |
Using the following command I can build my xcodebuild build -scheme RadioPlayerLocal -sdk "`xcrun --sdk iphonesimulator --show-sdk-path`" -destination "OS=17.1,name=iPhone 13 Pro" |
possibly need to take steps like this in order to produce a packaged XCFramework: Also a helper here I've yet to try: https://github.com/mstfy/spm-to-xcframework |
I can't get gradle to build after adding a spm dependency:
I'm using kotlin 1.6.21
The text was updated successfully, but these errors were encountered: