HomeiOS Developmentxcode - iOS customized frameword not working in rosetta enabled simulator

xcode – iOS customized frameword not working in rosetta enabled simulator


I’ve created one customized framework with this under script :

`

# Kind a script or drag a script file out of your workspace to insert its path.
#Gerenate machine framework
xcodebuild archive -scheme ${PROJECT_NAME} -archivePath "${PROJECT_DIR}/construct/${PROJECT_NAME}-iphoneos.xcarchive" -sdk iphoneos SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES

#Generate simulator framework
xcodebuild archive -scheme ${PROJECT_NAME} -archivePath "${PROJECT_DIR}/construct/${PROJECT_NAME}-iossimulator.xcarchive" -sdk iphonesimulator SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES

#Generate xcframework for each arches
xcodebuild -create-xcframework -framework "${PROJECT_DIR}/construct/${PROJECT_NAME}-iphoneos.xcarchive/Merchandise/Library/Frameworks/${PROJECT_NAME}.framework" -framework "${PROJECT_DIR}/construct/${PROJECT_NAME}-iossimulator.xcarchive/Merchandise/Library/Frameworks/${PROJECT_NAME}.framework" -output "${PROJECT_DIR}/construct/${PROJECT_NAME}.xcframework"

#Open listing the place xcframework had been generate
open "${PROJECT_DIR}/construct"`

The generated framework can be utilizing in one other undertaking by way of pod. that is working high-quality in iOS machine and iphone simulator ( non-rosetta enabled )

when i attempt to run on rosetta enabled simulator. its inflicting the problems like unsuported swap structure.

deployment goal, swift model all similar .

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments