Skip to content
This repository was archived by the owner on Mar 11, 2024. It is now read-only.

Commit 09805d0

Browse files
committed
Include debugger .dSYM files in app build.
1 parent 981b4d8 commit 09805d0

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ build/*
22
*Library/*
33
*xcuserdata*
44
InjectionIII *
5+
DerivedData
56
.DS_Store

InjectionIII/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundleShortVersionString</key>
2020
<string>$(MARKETING_VERSION)</string>
2121
<key>CFBundleVersion</key>
22-
<string>6829</string>
22+
<string>6832</string>
2323
<key>LSApplicationCategoryType</key>
2424
<string>public.app-category.developer-tools</string>
2525
<key>LSMinimumSystemVersion</key>

InjectionIII/build_bundles.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Created by John Holdsworth on 04/10/2019.
77
# Copyright © 2019 John Holdsworth. All rights reserved.
88
#
9-
# $Id: //depot/ResidentEval/InjectionIII/build_bundles.sh#65 $
9+
# $Id: //depot/ResidentEval/InjectionIII/build_bundles.sh#66 $
1010
#
1111

1212
# Injection has to assume a fixed path for Xcode.app as it uses
@@ -30,7 +30,8 @@ function build_bundle () {
3030
"$DEVELOPER_BIN_DIR"/xcodebuild SYMROOT=$SYMROOT ARCHS="$ARCHS" PRODUCT_NAME="${FAMILY}Injection" LD_RUNPATH_SEARCH_PATHS="$SWIFT_DYLIBS_PATH $XCTEST_FRAMEWORK_PATH @loader_path/Frameworks" -sdk $SDK -config $BUNDLE_CONFIG -target InjectionBundle &&
3131
"$DEVELOPER_BIN_DIR"/xcodebuild SYMROOT=$SYMROOT ARCHS="$ARCHS" PRODUCT_NAME="${FAMILY}SwiftUISupport" -sdk $SDK -config $BUNDLE_CONFIG -target SwiftUISupport &&
3232

33-
rsync -au $SYMROOT/$BUNDLE_CONFIG-$SDK/*.bundle "$CODESIGNING_FOLDER_PATH/Contents/Resources" &&
33+
rsync -au $SYMROOT/$BUNDLE_CONFIG-$SDK/SwiftTrace.framework.dSYM $SYMROOT/$BUNDLE_CONFIG-$SDK/${FAMILY}Injection.bundle/Frameworks &&
34+
rsync -au $SYMROOT/$BUNDLE_CONFIG-$SDK/*.bundle* "$CODESIGNING_FOLDER_PATH/Contents/Resources" &&
3435
mkdir -p "$CODESIGNING_FOLDER_PATH/Contents/Resources/${FAMILY}Injection.bundle/Frameworks/SwiftTrace.framework/Versions/A/Resources" &&
3536
rsync -au $SYMROOT/$BUNDLE_CONFIG-$SDK/SwiftTrace.framework/{Headers,Modules,SwiftTrace} "$CODESIGNING_FOLDER_PATH/Contents/Resources/${FAMILY}Injection.bundle/Frameworks/SwiftTrace.framework/Versions/A" &&
3637
ln -s A "$CODESIGNING_FOLDER_PATH/Contents/Resources/${FAMILY}Injection.bundle/Frameworks/SwiftTrace.framework/Versions/Current"

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,15 @@ you can exclude the type shown just before the crash using the
182182
**SWEEP_EXCLUDE** environment variable (which can be a
183183
regular expression).
184184

185+
As the application is now released with debug information, if you experience a
186+
crash inside the Injection.bundle use the following command to clone the InjectionIII
187+
project into /tmp and you'll be able to provide a full strack trace in your bug report:
188+
189+
```
190+
$ cd /tmp
191+
$ git clone https://github.com/johnno1962/InjectionIII --recurse-submodules
192+
```
193+
185194
### SwiftUI Injection
186195

187196
It is possible to inject `SwiftUI` interfaces but it requires some minor
@@ -453,4 +462,4 @@ store edge paths so they can be coloured (line 66 and 303) in "canviz-0.1/canviz
453462
It also includes [CodeMirror](http://codemirror.net/) JavaScript editor
454463
for the code to be evaluated using injection under an MIT license.
455464

456-
$Date: 2022/01/07 $
465+
$Date: 2022/01/10 $

0 commit comments

Comments
 (0)