admin管理员组

文章数量:1194346

I am trying to properly automatizate Get started with Firebase Crashlytics step 4C and 4D.

when it set manualy, it shall look like this:

so, what I tried is:

set(DWARF_DSYM_FOLDER_PATH "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}")
set(DWARF_DSYM_FILE "${DWARF_DSYM_FOLDER_PATH}/Contents/Resources/DWARF/${PRODUCT_NAME}")
set(INFO_PLIST "${DWARF_DSYM_FOLDER_PATH}/Contents/Info.plist")
set(GOOGLE_SERVICE_INFO_PLIST "$(TARGET_BUILD_DIR)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/GoogleService-Info.plist")
set(EXECUTABLE_PATH "$(TARGET_BUILD_DIR)/$(EXECUTABLE_PATH)")

add_custom_command(
    TARGET ${TARGET_NAME}
    POST_BUILD
    COMMAND /bin/sh -c "${CMAKE_CURRENT_SOURCE_DIR}/../../extralibs/firebase_ios_sdk/FirebaseCrashlytics/run"
    COMMENT "iOS: Processing and uploading dSYM files to Crashlytics"
    DEPENDS ${DWARF_DSYM_FOLDER_PATH} ${DWARF_DSYM_FILE} ${INFO_PLIST} ${GOOGLE_SERVICE_INFO_PLIST} ${EXECUTABLE_PATH}
)

the link to Crashlytics/run is fine, cmake had an issue with variable “${BUILD_DIR%/Build/*}” but I have expected this. but all what it does instead is:

  • from here you can see in red color all differences… some of them might not make anything bad realy, but some do (as the post_script at the end doesnt work)

Is the another way for me to achieve automatizating the post_script from the link I posted?

Thank you gurus!

本文标签: iosProper postbuild script in xcode for Firebase CrashlyticsStack Overflow