Hello,
According to the recent news about the apps submitted after April 25th must be built with XCode 14,1 or later - it's not clear if the app's dependencies in form of xcframeworks should also be build with XCode 14.1, or this applies only for the host app.
Thanks
Post
Replies
Boosts
Views
Activity
Creating an xcframework with XCode 13.4.1 and the following code snippet works just fine.
The problem is that from XCode 14 - we get this error:
A library with the identifier 'ios-arm64' already exists.
Supported Platforms: iOS
Architectures: Standard Architectures (arm64)
CPU: Intel
# Archiving for iOS Device
xcodebuild clean archive \
-scheme "${SCHEME_NAME}" \
-configuration "${CONFIGURATION}" \
-sdk iphoneos \
-archivePath "${IOS_DEVICE_ARCHIVE_PATH}" \
-destination generic/platform=iOS \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
# Archiving for iOS Simulator
xcodebuild archive \
-scheme "${SCHEME_NAME}" \
-configuration "${CONFIGURATION}" \
-sdk iphonesimulator \
-archivePath "${IOS_SIMULATOR_ARCHIVE_PATH}" \
-destination generic/platform=iOS \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
# Creating XCFramework
xcodebuild -create-xcframework \
-framework "${IOS_DEVICE_ARCHIVE_PATH}/Products/Library/Frameworks/${FRAMEWORK_NAME}.framework" \
-framework "${IOS_SIMULATOR_ARCHIVE_PATH}/Products/Library/Frameworks/${FRAMEWORK_NAME}.framework" \
-output "${XC_FRAMEWORK_PATH}"
I think this was the right way to create an XCFramework prior XCode 14. Not sure if some build settings can affect it, but any help is welcomed.
Thanks