Skip to content
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

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

Open
Zhangyunjiang123 opened this issue Jan 7, 2021 · 0 comments
Open

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

Zhangyunjiang123 opened this issue Jan 7, 2021 · 0 comments

Comments

@Zhangyunjiang123
Copy link

初次报错:
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的库

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant