Я сталкиваюсь с проблемой при архивировании и получаю такое сообщение об ошибке.
Сообщение об ошибке pi c
Я проверяю журнал и получаю такую ошибку.
Что не так с моей проблемой?
И я не хочу использовать ответ Do Not Embed
.
Есть еще один хороший ответ по этому поводу.
Scanning IPA...
2020-07-10 03:17:26 +0000 Assertion failed: Expected 1 archs in otool output:
Archive : /var/folders/ts/r7b0ghfd3z93gnb_1rdny8f1b70xc1/T/IDEDistributionOptionThinning.~~~k4I40G/Payload/TestFirebaseCrashlytics.app/Frameworks/FirebaseCore.framework/FirebaseCore
/var/folders/ts/r7b0ghfd3z93gnb_1rdny8f1b70xc1/T/IDEDistributionOptionThinning.~~~k4I40G/Payload/TestFirebaseCrashlytics.app/Frameworks/FirebaseCore.framework/FirebaseCore(FIRAnalyticsConfiguration.o):
Mach header
magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
MH_MAGIC_64 ARM64 ALL 0x00 OBJECT 5 1568 SUBSECTIONS_VIA_SYMBOLS
Load command 0
cmd LC_SEGMENT_64
cmdsize 1432
segname
vmaddr 0x0000000000000000
vmsize 0x00000000000047f0
fileoff 1600
filesize 18400
maxprot rwx
initprot rwx
nsects 17
flags (none)
Section
sectname __text
segname __TEXT
addr 0x0000000000000000
size 0x00000000000002a4
offset 1600
align 2^2 (4)
reloff 20000
nreloc 86
type S_REGULAR
attributes PURE_INSTRUCTIONS SOME_INSTRUCTIONS
reserved1 0
reserved2 0
Section
sectname __cstring
segname __TEXT
addr 0x00000000000002a4
size 0x0000000000000064
offset 2276
align 2^0 (1)
reloff 0
nreloc 0
type S_CSTRING_LITERALS
attributes (none)
reserved1 0
reserved2 0
Section
И я также пытаюсь добавить скрипт и не работаю над поиском архива в stackoverflow: Моя ошибка скрипта?
APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"
# This script loops through the 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 executable with thinned version"
rm "$FRAMEWORK_EXECUTABLE_PATH"
mv "$FRAMEWORK_EXECUTABLE_PATH-merged" "$FRAMEWORK_EXECUTABLE_PATH"
done
Картфайл Carthage
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json"
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseCrashlyticsBinary.json"
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseMessagingBinary.json"
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebasePerformanceBinary.json"
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseProtobufBinary.json"
github "google/promises"