Skip to content

IOS端无法使用 #44

Closed
Closed
@a-xnow

Description

@a-xnow

https://kmp.jetbrains.com/#templateGallery

下载“Shared UI Multiplatform App”项目
按readme添加mmkv依赖并初始化,启动出现异常。
ld: warning: object file (/Users/xxx/Codes/Source/kt/KMP-App-Template/composeApp/build/xcode-frameworks/Debug/iphonesimulator17.4/ComposeApp.framework/ComposeApp[arm64][2615](libskshaper.SkShaper_harfbuzz.o)) was built for newer 'iOS-simulator' version (15.2) than being linked (14.1) ld: warning: Could not find or use auto-linked framework 'MMKV': framework 'MMKV' not found Undefined symbols for architecture arm64: "_OBJC_CLASS_$_MMKV", referenced from: in ComposeApp[arm64][2735](libcom.ctrip.flight.mmkv:mmkv-kotlin-cache.a.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
由于我是首次使用kmp尝试进行android与ios项目的开发,一直不知道应该怎样配置,是否可以给出一个简单的配置例子,感谢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions