Доброго времени суток друзья, такой вопрос, пытаюсь собрать бинарный универсальный Фреймворк, но компутер ругается, ниже sh, взял из статьи
//create folder where we place built frameworks
mkdir build
//build framework for simulators
xcodebuild clean build
-project Target/TestTarget.xcodeproj
-scheme TestTarget
-configuration Release
-sdk iphonesimulator
-derivedDataPath derived_data
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
// create folder to store compiled framework for simulator
mkdir build/simulator
// copy compiled framework for simulator into our build folder
cp -r derived_data/Build/Products/Release-iphonesimulator/TestTarget.framework build/simulator
//build framework for devices
xcodebuild clean build
-project Target/TestTarget.xcodeproj
-scheme TestTarget
-configuration Release
-sdk iphoneos
-derivedDataPath derived_data
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
// create folder to store compiled framework for simulator
mkdir build/devices
// copy compiled framework for simulator into our build folder
cp -r derived_data/Build/Products/Release-iphoneos/TestTarget.framework build/devices
// create folder to store compiled universal framework
mkdir build/universal
// copy device framework into universal folder
cp -r build/devices/TestTarget.framework build/universal/
// create framework binary compatible with simulators and devices, and replace binary in unviersal framework
lipo -create
build/simulator/TestTarget.framework/TestTarget
build/devices/TestTarget.framework/TestTarget
-output build/universal/TestTarget.framework/TestTarget
// copy simulator Swift public interface to universal framework
cp build/simulator/TestTarget.framework/Modules/TestTarget.swiftmodule/* build/universal/TestTarget.framework/Modules/TestTarget.swiftmodule
// ========== После сборки
have the same architectures (arm64) and can’t be in the same fat output file
=========
В прокекте
ignoring file /…/TestTarget, missing required architecture x86_64 in file /…/TestTarget.framework/TestTarget (2 slices)
@haymob Взгляните пожалуйста)))