From 3131a44c95b4581a2e018160ea806a55eb11164d Mon Sep 17 00:00:00 2001 From: Diego Petrucci Date: Fri, 21 Nov 2025 14:11:39 +0000 Subject: [PATCH 1/2] Fix tsconfig --- Scripts/tsconfig.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Scripts/tsconfig.json b/Scripts/tsconfig.json index 76f5b18..e6b3ab3 100644 --- a/Scripts/tsconfig.json +++ b/Scripts/tsconfig.json @@ -6,11 +6,14 @@ "sourceMap": true, "allowJs": true, "target": "es2022", + "lib": ["es2022", "dom"], "outDir": ".build", "module": "es2022", "noEmitOnError": true, "strict": true, "esModuleInterop": true, + "allowSyntheticDefaultImports": true, "moduleResolution": "node", + "types": ["node"] } } From 87809381d532bf82ee10358b0feba53e9e5fa266 Mon Sep 17 00:00:00 2001 From: Diego Petrucci Date: Fri, 21 Nov 2025 14:17:40 +0000 Subject: [PATCH 2/2] make readme clearer --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0fa4646..582e680 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,17 @@ Download the latest XCFramework from [Github releases](https://github.com/Emerge ## Setup +* Fetch the repo locally, eg via `gh repo clone getsentry/Reaper-iOS` +* Navigate to the `Scripts` directory `cd Scripts` +* Install the dependencies with `npm install` +* Build the project `npm tsc --project .` +* If you haven't already, archive your app from Xcode. You might need to only export `arm64` slices +* Locate your .app, usually at `/Users/{you-user}/Library/Developer/Xcode/Archives/{date}/{app-name-and-date}.xcarchive/Products/Applications/{app-name}.app` +* Scan for files with `node .build/main.js {your-app-path.app} output.json` +* You can ignore the errors if a `output.json` file has been created. + +## Integration + Start the SDK at app launch by adding the following code: ```Swift @@ -41,9 +52,6 @@ EMGReaper.sharedInstance().start { types in } ``` -## Determining all types - -Run `tsc ./Scripts/main.ts` then `node ./Scripts/main.ts PATH_TO_YOUR_APP.app` ## Resources