... | @@ -58,7 +58,7 @@ App Store Connect Operation Error |
... | @@ -58,7 +58,7 @@ App Store Connect Operation Error |
|
# This script loops through the frameworks embedded in the application and
|
|
# This script loops through the frameworks embedded in the application and
|
|
# removes unused architectures.
|
|
# removes unused architectures.
|
|
APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"
|
|
APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"
|
|
|
|
|
|
find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK
|
|
find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK
|
|
do
|
|
do
|
|
FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable)
|
|
FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable)
|
... | @@ -73,7 +73,7 @@ echo "Extracting $ARCH from $FRAMEWORK_EXECUTABLE_NAME" |
... | @@ -73,7 +73,7 @@ echo "Extracting $ARCH from $FRAMEWORK_EXECUTABLE_NAME" |
|
lipo -extract "$ARCH" "$FRAMEWORK_EXECUTABLE_PATH" -o "$FRAMEWORK_EXECUTABLE_PATH-$ARCH"
|
|
lipo -extract "$ARCH" "$FRAMEWORK_EXECUTABLE_PATH" -o "$FRAMEWORK_EXECUTABLE_PATH-$ARCH"
|
|
EXTRACTED_ARCHS+=("$FRAMEWORK_EXECUTABLE_PATH-$ARCH")
|
|
EXTRACTED_ARCHS+=("$FRAMEWORK_EXECUTABLE_PATH-$ARCH")
|
|
done
|
|
done
|
|
|
|
|
|
echo "Merging extracted architectures: ${ARCHS}"
|
|
echo "Merging extracted architectures: ${ARCHS}"
|
|
lipo -o "$FRAMEWORK_EXECUTABLE_PATH-merged" -create "${EXTRACTED_ARCHS[@]}"
|
|
lipo -o "$FRAMEWORK_EXECUTABLE_PATH-merged" -create "${EXTRACTED_ARCHS[@]}"
|
|
rm "${EXTRACTED_ARCHS[@]}"
|
|
rm "${EXTRACTED_ARCHS[@]}"
|
... | @@ -84,6 +84,7 @@ mv "$FRAMEWORK_EXECUTABLE_PATH-merged" "$FRAMEWORK_EXECUTABLE_PATH" |
... | @@ -84,6 +84,7 @@ mv "$FRAMEWORK_EXECUTABLE_PATH-merged" "$FRAMEWORK_EXECUTABLE_PATH" |
|
|
|
|
|
done
|
|
done
|
|
|
|
|
|
|
|
|
|
```
|
|
```
|
|
|
|
|
|
## 9.关于使用Cocoapods更新4.9.0及以上SDK编译报错的问题
|
|
## 9.关于使用Cocoapods更新4.9.0及以上SDK编译报错的问题
|
... | | ... | |