realm / SwiftLint

A tool to enforce Swift style and conventions.
https://realm.github.io/SwiftLint
MIT License
18.65k stars 2.22k forks source link

Error when executing Aggregate for XCFramework #5189

Closed Maeda-Naoki closed 4 months ago

Maeda-Naoki commented 1 year ago

I created an Aggregate for XCFramework and executed it, but the following error occurs. If anyone knows a solution, please let me know.

Environment

An example of the error

The package product 'SwiftIDEUtils' requires minimum platform version 13.0 for the iOS platform, but this target supports 11.0 (in target ' SwiftLintExtraRules' from project 'SwiftLint')
Aggregate Run Script ```bash OUTPUT_DIR=${PROJECT_DIR}/Output DERIVED_DIR=${OUTPUT_DIR}/${CONFIGURATION}-derived ARCHIVE_DIR=${OUTPUT_DIR}/${CONFIGURATION}-archive XCFRAMEWORK_DIR=${OUTPUT_DIR}/${CONFIGURATION}-xcframework rm -rf ${OUTPUT_DIR} mkdir -p ${DERIVED_DIR} mkdir -p ${ARCHIVE_DIR} mkdir -p ${XCFRAMEWORK_DIR} ARCHIVE_FILE_IOS=${ARCHIVE_DIR}/ios.xcarchive echo "ARCHIVE_FILE_IOS:${ARCHIVE_FILE_IOS}" ARCHIVE_FILE_IOS_SIMULATOR=${ARCHIVE_DIR}/iossimulator.xcarchive echo "ARCHIVE_FILE_IOS_SIMULATOR:${ARCHIVE_FILE_IOS_SIMULATOR}" xcodebuild archive -scheme ${PROJECT_NAME} -destination="iOS" -archivePath $ARCHIVE_FILE_IOS -derivedDataPath $DERIVED_DIR -sdk iphoneos SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES xcodebuild archive -scheme ${PROJECT_NAME} -destination="iOS Simulator" -archivePath $ARCHIVE_FILE_IOS_SIMULATOR -derivedDataPath $DERIVED_DIR -sdk iphonesimulator SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES xcodebuild -create-xcframework -framework $ARCHIVE_FILE_IOS/Products/Library/Frameworks/${PROJECT_NAME}.framework -framework $ARCHIVE_FILE_IOS_SIMULATOR/Products/Library/Frameworks/${PROJECT_NAME}.framework -output $XCFRAMEWORK_DIR/${PROJECT_NAME}.xcframework ```
SimplyDanny commented 1 year ago

Related to #5063.

SimplyDanny commented 4 months ago

Closing as duplicate of #5063.