IOS reported the wrong way to add 90080900879020990125 solution

Some homemade framework and not mature third party framework, 90080900879020990125 back in the upload to AppStore, then this self SDK contains x86_64, i386 architecture, the AppStore is not allowed, all in the upload time error, specific solutions:

Solution: TARGETS-> Build Phases-> click on the plus select New Run Script Phase-> and then copy and paste the following code

IOS reported the wrong way to add 90080900879020990125 solution

APP_PATH= “${TARGET_BUILD_DIR}/${WRAPPER_NAME}”

Script loops through the # This frameworks embedded in the application and

# removes unused architectures.

Find “$APP_PATH” -name’*.framework’-type d while read -r FRAMEWORK |

Do

FRAMEWORK_EXECUTABLE_NAME=$(defaults read “$FRAMEWORK/Info.plist” CFBundleExecutable)

FRAMEWORK_EXECUTABLE_PATH= “$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME”

Echo “Executable is $FRAMEWORK_EXECUTABLE_PATH”

EXTRACTED_ARCHS= ()

For ARCH in $ARCHS

Do

Echo “Extracting $ARCH from $FRAMEWORK_EXECUTABLE_NAME”

Lipo -extract “$ARCH” “$FRAMEWORK_EXECUTABLE_PATH” -o “$FRAMEWORK_EXECUTABLE_PATH-$ARCH”

EXTRACTED_ARCHS+= (“$FRAMEWORK_EXECUTABLE_PATH-$ARCH”)

Done

Echo “Merging extracted architectures: ${ARCHS}”

Lipo -o “$FRAMEWORK_EXECUTABLE_PATH-merged” -create “${EXTRACTED_ARCHS[@]}”

RM “${EXTRACTED_ARCHS[@]}”

Echo “Replacing original with thinned executable version”

RM “$FRAMEWORK_EXECUTABLE_PATH”

MV “$FRAMEWORK_EXECUTABLE_PATH-merged” “$FRAMEWORK_EXECUTABLE_PATH”

Done

All the copy add, upload, work, home hold daughter-in-law.