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