Skip to content

Commit

Permalink
fix: remove lfs for SPM (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyg603 authored Feb 6, 2025
1 parent 493e86f commit d0f1f69
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 14 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nrm -f \"/tmp/Xcode_run_script.log\"\n\n# Xcode doesn't show run script errors in build log.\nexec > \"/tmp/Xcode_run_script.log\" 2>&1\n\necho \"PROJECT_DIR=$PROJECT_DIR\"\necho \"ARCHIVE_PATH=$ARCHIVE_PATH\"\necho \"BUILT_PRODUCTS_DIR=$BUILT_PRODUCTS_DIR\"\n \n# Use osascript(1) to present notification banners; otherwise\n# there's no progress indication until the script finishes.\n#/usr/bin/osascript -e 'display notification \"Exporting application archive…\" with title \"Archiving\"'\n\n# Ask xcodebuild(1) to export the app. Use the export options\n# from a previous manual export that used a Developer ID.\n#/usr/bin/xcodebuild -exportArchive -archivePath \"$ARCHIVE_PATH\" -exportOptionsPlist \"$SRCROOT/ExportOptions.plist\" -exportPath \"$EXPORT_PATH\"\n\n#create new archive\n#xcodebuild archive -scheme \"BugSplatTest-SwiftUIApp\" -sdk iphoneos -destination generic/platform=iOS -archivePath \"$ARCHIVE_PATH\"/BugSplatTest-SwiftUIApp.xcarchive\n\nosascript -e 'display notification \"preparing and uploading symbols…\" with title \"BugSplat\"'\n\n\"$PROJECT_DIR\"/../../Tools/symbol-upload-macos -a \"BugSplatTest-SwiftUI-SPMApp\" -b \"Fred\" -u \"fred@bugsplat.com\" -p \"Flintstone\" -f \"**/*.dSYM\" -d \"$BUILT_PRODUCTS_DIR\" -v \"1.0 (1)\"\n";
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nrm -f \"/tmp/Xcode_run_script.log\"\n\n# Xcode doesn't show run script errors in build log.\nexec > \"/tmp/Xcode_run_script.log\" 2>&1\n\necho \"PROJECT_DIR=$PROJECT_DIR\"\necho \"ARCHIVE_PATH=$ARCHIVE_PATH\"\necho \"BUILT_PRODUCTS_DIR=$BUILT_PRODUCTS_DIR\"\n \n# Use osascript(1) to present notification banners; otherwise\n# there's no progress indication until the script finishes.\n#/usr/bin/osascript -e 'display notification \"Exporting application archive…\" with title \"Archiving\"'\n\n# Ask xcodebuild(1) to export the app. Use the export options\n# from a previous manual export that used a Developer ID.\n#/usr/bin/xcodebuild -exportArchive -archivePath \"$ARCHIVE_PATH\" -exportOptionsPlist \"$SRCROOT/ExportOptions.plist\" -exportPath \"$EXPORT_PATH\"\n\n#create new archive\n#xcodebuild archive -scheme \"BugSplatTest-SwiftUIApp\" -sdk iphoneos -destination generic/platform=iOS -archivePath \"$ARCHIVE_PATH\"/BugSplatTest-SwiftUIApp.xcarchive\n\n# Ensure symbol upload tool is available\nif [ ! -f \"$PROJECT_DIR/../../Tools/symbol-upload-macos\" ]; then\n mkdir -p \"$PROJECT_DIR/../../Tools\"\n cd \"$PROJECT_DIR/../../Tools\"\n curl -sL -O \"https://app.bugsplat.com/download/symbol-upload-macos\"\n chmod +x symbol-upload-macos\nfi\n\nosascript -e 'display notification \"preparing and uploading symbols…\" with title \"BugSplat\"'\n\n\"$PROJECT_DIR\"/../../Tools/symbol-upload-macos -a \"BugSplatTest-SwiftUI-SPMApp\" -b \"Fred\" -u \"fred@bugsplat.com\" -p \"Flintstone\" -f \"**/*.dSYM\" -d \"$BUILT_PRODUCTS_DIR\" -v \"1.0 (1)\"\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nrm -f\"/tmp/Xcode_run_script.log\"\n\n# Xcode doesn't show run script errors in build log.\nexec > \"/tmp/Xcode_run_script.log\" 2>&1\n\necho \"PROJECT_DIR=$PROJECT_DIR\"\necho \"ARCHIVE_PATH=$ARCHIVE_PATH\"\necho \"BUILT_PRODUCTS_DIR=$BUILT_PRODUCTS_DIR\"\n \n# Use osascript(1) to present notification banners; otherwise\n# there's no progress indication until the script finishes.\n#/usr/bin/osascript -e 'display notification \"Exporting application archive…\" with title \"Archiving\"'\n\n# Ask xcodebuild(1) to export the app. Use the export options\n# from a previous manual export that used a Developer ID.\n#/usr/bin/xcodebuild -exportArchive -archivePath \"$ARCHIVE_PATH\" -exportOptionsPlist \"$SRCROOT/ExportOptions.plist\" -exportPath \"$EXPORT_PATH\"\n\n#create new archive\n#xcodebuild archive -scheme \"BugSplatTest-SwiftUIApp\" -sdk iphoneos -destination generic/platform=iOS -archivePath \"$ARCHIVE_PATH\"/BugSplatTest-SwiftUIApp.xcarchive\n\nosascript -e 'display notification \"preparing and uploading symbols…\" with title \"BugSplat\"'\n\n\"$PROJECT_DIR\"/../../Tools/symbol-upload-macos -a \"BugSplatTest-SwiftUIApp\" -b \"Fred\" -u \"fred@bugsplat.com\" -p \"Flintstone\" -f \"**/*.dSYM\" -d \"$BUILT_PRODUCTS_DIR\" -v \"1.0 (1)\"\n";
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nrm -f\"/tmp/Xcode_run_script.log\"\n\n# Xcode doesn't show run script errors in build log.\nexec > \"/tmp/Xcode_run_script.log\" 2>&1\n\necho \"PROJECT_DIR=$PROJECT_DIR\"\necho \"ARCHIVE_PATH=$ARCHIVE_PATH\"\necho \"BUILT_PRODUCTS_DIR=$BUILT_PRODUCTS_DIR\"\n \n# Use osascript(1) to present notification banners; otherwise\n# there's no progress indication until the script finishes.\n#/usr/bin/osascript -e 'display notification \"Exporting application archive…\" with title \"Archiving\"'\n\n# Ask xcodebuild(1) to export the app. Use the export options\n# from a previous manual export that used a Developer ID.\n#/usr/bin/xcodebuild -exportArchive -archivePath \"$ARCHIVE_PATH\" -exportOptionsPlist \"$SRCROOT/ExportOptions.plist\" -exportPath \"$EXPORT_PATH\"\n\n#create new archive\n#xcodebuild archive -scheme \"BugSplatTest-SwiftUIApp\" -sdk iphoneos -destination generic/platform=iOS -archivePath \"$ARCHIVE_PATH\"/BugSplatTest-SwiftUIApp.xcarchive\n\n# Ensure symbol upload tool is available\nif [ ! -f \"$PROJECT_DIR/../../Tools/symbol-upload-macos\" ]; then\n mkdir -p \"$PROJECT_DIR/../../Tools\"\n cd \"$PROJECT_DIR/../../Tools\"\n curl -sL -O \"https://app.bugsplat.com/download/symbol-upload-macos\"\n chmod +x symbol-upload-macos\nfi\n\nosascript -e 'display notification \"preparing and uploading symbols…\" with title \"BugSplat\"'\n\n\"$PROJECT_DIR\"/../../Tools/symbol-upload-macos -a \"BugSplatTest-SwiftUIApp\" -b \"Fred\" -u \"fred@bugsplat.com\" -p \"Flintstone\" -f \"**/*.dSYM\" -d \"$BUILT_PRODUCTS_DIR\" -v \"1.0 (1)\"\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nrm -f\"/tmp/Xcode_run_script.log\"\n\n# Xcode doesn't show run script errors in build log.\nexec > \"/tmp/Xcode_run_script.log\" 2>&1\n\necho \"PROJECT_DIR=$PROJECT_DIR\"\necho \"ARCHIVE_PATH=$ARCHIVE_PATH\"\necho \"BUILT_PRODUCTS_DIR=$BUILT_PRODUCTS_DIR\"\n \n# Use osascript(1) to present notification banners; otherwise\n# there's no progress indication until the script finishes.\n#/usr/bin/osascript -e 'display notification \"Exporting application archive…\" with title \"Archiving\"'\n\n# Ask xcodebuild(1) to export the app. Use the export options\n# from a previous manual export that used a Developer ID.\n#/usr/bin/xcodebuild -exportArchive -archivePath \"$ARCHIVE_PATH\" -exportOptionsPlist \"$SRCROOT/ExportOptions.plist\" -exportPath \"$EXPORT_PATH\"\n\n#create new archive\n#xcodebuild archive -scheme \"BugSplatTest-SwiftUIApp\" -sdk iphoneos -destination generic/platform=iOS -archivePath \"$ARCHIVE_PATH\"/BugSplatTest-SwiftUIApp.xcarchive\n\nosascript -e 'display notification \"preparing and uploading symbols…\" with title \"BugSplat\"'\n\n\"$PROJECT_DIR\"/../../Tools/symbol-upload-macos -a \"BugSplatTest-UIKit-ObjC\" -b \"Fred\" -u \"fred@bugsplat.com\" -p \"Flintstone\" -f \"**/*.dSYM\" -d \"$BUILT_PRODUCTS_DIR\" -v \"1.0 (1)\"\n\n";
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nrm -f\"/tmp/Xcode_run_script.log\"\n\n# Xcode doesn't show run script errors in build log.\nexec > \"/tmp/Xcode_run_script.log\" 2>&1\n\necho \"PROJECT_DIR=$PROJECT_DIR\"\necho \"ARCHIVE_PATH=$ARCHIVE_PATH\"\necho \"BUILT_PRODUCTS_DIR=$BUILT_PRODUCTS_DIR\"\n \n# Use osascript(1) to present notification banners; otherwise\n# there's no progress indication until the script finishes.\n#/usr/bin/osascript -e 'display notification \"Exporting application archive…\" with title \"Archiving\"'\n\n# Ask xcodebuild(1) to export the app. Use the export options\n# from a previous manual export that used a Developer ID.\n#/usr/bin/xcodebuild -exportArchive -archivePath \"$ARCHIVE_PATH\" -exportOptionsPlist \"$SRCROOT/ExportOptions.plist\" -exportPath \"$EXPORT_PATH\"\n\n#create new archive\n#xcodebuild archive -scheme \"BugSplatTest-SwiftUIApp\" -sdk iphoneos -destination generic/platform=iOS -archivePath \"$ARCHIVE_PATH\"/BugSplatTest-SwiftUIApp.xcarchive\n\n# Ensure symbol upload tool is available\nif [ ! -f \"$PROJECT_DIR/../../Tools/symbol-upload-macos\" ]; then\n mkdir -p \"$PROJECT_DIR/../../Tools\"\n cd \"$PROJECT_DIR/../../Tools\"\n curl -sL -O \"https://app.bugsplat.com/download/symbol-upload-macos\"\n chmod +x symbol-upload-macos\nfi\n\nosascript -e 'display notification \"preparing and uploading symbols…\" with title \"BugSplat\"'\n\n\"$PROJECT_DIR\"/../../Tools/symbol-upload-macos -a \"BugSplatTest-UIKit-ObjC\" -b \"Fred\" -u \"fred@bugsplat.com\" -p \"Flintstone\" -f \"**/*.dSYM\" -d \"$BUILT_PRODUCTS_DIR\" -v \"1.0 (1)\"\n\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nrm -f\"/tmp/Xcode_run_script.log\"\n\n# Xcode doesn't show run script errors in build log.\nexec > \"/tmp/Xcode_run_script.log\" 2>&1\n\necho \"PROJECT_DIR=$PROJECT_DIR\"\necho \"ARCHIVE_PATH=$ARCHIVE_PATH\"\necho \"BUILT_PRODUCTS_DIR=$BUILT_PRODUCTS_DIR\"\n \n# Use osascript(1) to present notification banners; otherwise\n# there's no progress indication until the script finishes.\n#/usr/bin/osascript -e 'display notification \"Exporting application archive…\" with title \"Archiving\"'\n\n# Ask xcodebuild(1) to export the app. Use the export options\n# from a previous manual export that used a Developer ID.\n#/usr/bin/xcodebuild -exportArchive -archivePath \"$ARCHIVE_PATH\" -exportOptionsPlist \"$SRCROOT/ExportOptions.plist\" -exportPath \"$EXPORT_PATH\"\n\n#create new archive\n#xcodebuild archive -scheme \"BugSplatTest-SwiftUIApp\" -sdk iphoneos -destination generic/platform=iOS -archivePath \"$ARCHIVE_PATH\"/BugSplatTest-SwiftUIApp.xcarchive\n\nosascript -e 'display notification \"preparing and uploading symbols…\" with title \"BugSplat\"'\n\n\"$PROJECT_DIR\"/../../Tools/symbol-upload-macos -a \"BugSplatTest-UIKit-Swift\" -b \"Fred\" -u \"fred@bugsplat.com\" -p \"Flintstone\" -f \"**/*.dSYM\" -d \"$BUILT_PRODUCTS_DIR\" -v \"1.0 (1)\"\n";
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nrm -f\"/tmp/Xcode_run_script.log\"\n\n# Xcode doesn't show run script errors in build log.\nexec > \"/tmp/Xcode_run_script.log\" 2>&1\n\necho \"PROJECT_DIR=$PROJECT_DIR\"\necho \"ARCHIVE_PATH=$ARCHIVE_PATH\"\necho \"BUILT_PRODUCTS_DIR=$BUILT_PRODUCTS_DIR\"\n \n# Use osascript(1) to present notification banners; otherwise\n# there's no progress indication until the script finishes.\n#/usr/bin/osascript -e 'display notification \"Exporting application archive…\" with title \"Archiving\"'\n\n# Ask xcodebuild(1) to export the app. Use the export options\n# from a previous manual export that used a Developer ID.\n#/usr/bin/xcodebuild -exportArchive -archivePath \"$ARCHIVE_PATH\" -exportOptionsPlist \"$SRCROOT/ExportOptions.plist\" -exportPath \"$EXPORT_PATH\"\n\n#create new archive\n#xcodebuild archive -scheme \"BugSplatTest-SwiftUIApp\" -sdk iphoneos -destination generic/platform=iOS -archivePath \"$ARCHIVE_PATH\"/BugSplatTest-SwiftUIApp.xcarchive\n\n# Ensure symbol upload tool is available\nif [ ! -f \"$PROJECT_DIR/../../Tools/symbol-upload-macos\" ]; then\n mkdir -p \"$PROJECT_DIR/../../Tools\"\n cd \"$PROJECT_DIR/../../Tools\"\n curl -sL -O \"https://app.bugsplat.com/download/symbol-upload-macos\"\n chmod +x symbol-upload-macos\nfi\n\nosascript -e 'display notification \"preparing and uploading symbols…\" with title \"BugSplat\"'\n\n\"$PROJECT_DIR\"/../../Tools/symbol-upload-macos -a \"BugSplatTest-UIKit-Swift\" -b \"Fred\" -u \"fred@bugsplat.com\" -p \"Flintstone\" -f \"**/*.dSYM\" -d \"$BUILT_PRODUCTS_DIR\" -v \"1.0 (1)\"\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nrm -f\"/tmp/Xcode_run_script.log\"\n\n# Xcode doesn't show run script errors in build log.\nexec > \"/tmp/Xcode_run_script.log\" 2>&1\n\n# Use osascript(1) to present notification banners; otherwise\nosascript -e 'display notification \"preparing and uploading symbols…\" with title \"BugSplat\"'\n\n\"$PROJECT_DIR\"/../../Tools/symbol-upload-macos -a \"BugSplatTest-macOS-UIKit-ObjC\" -b \"Fred\" -u \"fred@bugsplat.com\" -p \"Flintstone\" -f \"**/*.dSYM\" -d \"$BUILT_PRODUCTS_DIR\" -v \"1.0 (1)\"\n";
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nrm -f\"/tmp/Xcode_run_script.log\"\n\n# Xcode doesn't show run script errors in build log.\nexec > \"/tmp/Xcode_run_script.log\" 2>&1\n\n# Ensure symbol upload tool is available\nif [ ! -f \"$PROJECT_DIR/../../Tools/symbol-upload-macos\" ]; then\n mkdir -p \"$PROJECT_DIR/../../Tools\"\n cd \"$PROJECT_DIR/../../Tools\"\n curl -sL -O \"https://app.bugsplat.com/download/symbol-upload-macos\"\n chmod +x symbol-upload-macos\nfi\n\n# Use osascript(1) to present notification banners; otherwise\nosascript -e 'display notification \"preparing and uploading symbols…\" with title \"BugSplat\"'\n\n\"$PROJECT_DIR\"/../../Tools/symbol-upload-macos -a \"BugSplatTest-macOS-UIKit-ObjC\" -b \"Fred\" -u \"fred@bugsplat.com\" -p \"Flintstone\" -f \"**/*.dSYM\" -d \"$BUILT_PRODUCTS_DIR\" -v \"1.0 (1)\"\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,20 +315,14 @@ BugSplat is an open source project and we welcome contributions from the communi
> [!WARNING]
> This project requires Xcode Command Line Tools 15.x to build. Version 16.x will crash when building the project.
First, install `Xcode 15.4` by following this [link](https://developer.apple.com/download/more/?q=xcode%2015.4) and searching for `Xcode 15.4`. Download the zip file and copy `Xcode.app` to your Applications folder. If you already have Xcode installed create a new folder in Applications and copy `Xcode.app` to that folder. Rename `Xcode.app` to `Xcode-15.4.app`.
Install `Xcode 15.4` by following this [link](https://developer.apple.com/download/more/?q=xcode%2015.4) and searching for `Xcode 15.4`. Download the zip file and copy `Xcode.app` to your Applications folder. If you already have Xcode installed create a new folder in Applications and copy `Xcode.app` to that folder. Rename `Xcode.app` to `Xcode-15.4.app`.
Open terminal and select the Command Line Tools for Xcode 15.4
```sh
sudo xcode-select -s /Applications/Xcodes/Xcode-15.4.app
```

Next, download and install [Git-LFS](https://git-lfs.com/). Once you've installed Git-LFS, run the following command to initialize it (you only need to do this once on your machine):

```sh
git lfs install
```

### Building

Clone this repository and all of the depenencies into a new `BugSplat` folder.
Expand All @@ -339,7 +333,7 @@ cd BugSplat
git clone /~https://github.com/BugSplat-Git/bugsplat-apple
git clone /~https://github.com/BugSplat-Git/HockeySDK-Mac
git clone /~https://github.com/BugSplat-Git/HockeySDK-iOS
git clone /~https://github.com/BugSplat-Git/plcrashreporter
git clone /~https://github.com/BugSplat-Git/plCrashReporter
```

Next, in the prescribed order, build each repo. If an error occurs in a specific repo, it
Expand Down

0 comments on commit d0f1f69

Please sign in to comment.