Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ yarn build:android
yarn build # Build both Android and iOS
```

Due to some limitations, you can't save the Sentry Plugin code on the Sample app directly from XCode, instead, you should save your changes to the files located at /src/ios and they will automatically be synced with Xcode due to symbolc links made when you run the script `sentry:add`.

To test your code you can run the following command:

## iOS
Expand Down
5 changes: 5 additions & 0 deletions sample/scripts/sync-sentry-ios.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rm -rf platforms/ios/HelloSentry/Plugins/sentry-cordova
mkdir -p platforms/ios/HelloSentry/Plugins/sentry-cordova
ln -s "$(pwd)/sentry-sdk/src/ios/SentryCordova.m" platforms/ios/HelloSentry/Plugins/sentry-cordova/SentryCordova.m
ln -s "$(pwd)/sentry-sdk/src/ios/SentryCordova.h" platforms/ios/HelloSentry/Plugins/sentry-cordova/SentryCordova.h
cp -R sentry-sdk/src/ios/Carthage/Build/Sentry.xcframework platforms/ios/HelloSentry/Plugins/sentry-cordova/Sentry.xcframework
Loading
Loading