Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcodebuild error "binaries with multiple platforms are not supported" while generating xcframework library

I'm trying to generate xcframework file from the MyFramework.framework file.

I'm running the following command:

xcodebuild -create-xcframework -framework "MyFramework.framework" -output "MyFramework.xcframework"

After that I get this error:

error: binaries with multiple platforms are not supported '/Users/nicco/myFramework/MyFramework.framework/MyFramework'

What is the problem with it? Thank you!

like image 464
Nikko Vacci Avatar asked Sep 17 '20 14:09

Nikko Vacci


1 Answers

This command does not support multi-platform binaries. You should create an archive for each platform.

Create an archive of the framework or library for each platform you wish to support.

https://help.apple.com/xcode/mac/11.4/#/dev544efab96

like image 179
Georgi Avatar answered Nov 15 '22 11:11

Georgi