Skip to content

xcframework Mac Catalyst iPad转Mac编译报错 #165

@Zhangyunjiang123

Description

@Zhangyunjiang123

初次报错:
error: Building for Mac Catalyst, but the embedded framework 'KSYMediaPlayer.framework' was built for iOS. You may need to restrict the platforms for which this framework should be embedded in the target editor, or replace it with an XCFramework that supports both platforms.

尝试着用xcodebuild命令进行转化:
zhangyunjiang-1:/ zhangyunjiang$ xcodebuild -create-xcframework -framework Users/zhangyunjiang/Desktop/KSYMediaPlayer.framework -output Users/zhangyunjiang/Desktop/xcode/KSYMediaPlayer.xcframework
xcframework successfully written out to: /Users/zhangyunjiang/Desktop/xcode/KSYMediaPlayer.xcframework

但是将生成的KSYMediaPlayer.xcframework 导入工程仍然报错误:
error: While building for Mac Catalyst, no library for this platform was found in 'KSYMediaPlayer.xcframework'.

归根结底是没有支持Mac Catalyst的库

希望能够给予解决!
谢谢!

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