MapFileParser.sh 834 B

12345678910111213
  1. #!/bin/sh
  2. if [ "$UNITY_SCRIPTING_BACKEND" = "il2cpp" ]
  3. then
  4. if [ -f "$PROJECT_DIR/MapFileParser" ]
  5. then
  6. if [[ $ARCHS == *"armv7"* ]]
  7. then
  8. "$PROJECT_DIR/MapFileParser" -format=Clang "$TARGET_TEMP_DIR/$PRODUCT_NAME-LinkMap-$CURRENT_VARIANT-armv7.txt" "$CONFIGURATION_BUILD_DIR/$PRODUCT_NAME.app/Data/Managed/SymbolMap-32"
  9. fi
  10. else
  11. echo "The MapFileParser utility was not found in the directory '$PROJECT_DIR'. Managed stack traces may not be reported correctly. This usually happens when the Unity project is built with a Windows editor, then the Xcode project is copied to OSX to build for the target device. You can work around this issue by manually copying the MapFileParser executable from an OSX installation of the Unity editor into the '$PROJECT_DIR' directory."
  12. fi
  13. fi