Skip to content

Commit ed758dd

Browse files
committed
Add launch configuration for iOS sample project in VSCode
1 parent 519e5c9 commit ed758dd

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.vscode/launch.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"version": "0.2.0",
3+
"inputs": [
4+
{
5+
"id": "iosSimulatorUdid",
6+
"type": "promptString",
7+
"description": "Simulator UDID (run: xcrun simctl list devices | rg Booted)",
8+
"default": "760FECA7-AD46-4AE7-A112-385D384450C8"
9+
}
10+
],
11+
"configurations": [
12+
{
13+
"name": "iOS Sample (Run x64 simulator)",
14+
"type": "node-terminal",
15+
"request": "launch",
16+
"command": "dotnet build ${workspaceFolder}/samples/Kapusch.Facebook.iOS.Sample/Kapusch.Facebook.iOS.Sample.csproj -t:Run -c Debug -p:RuntimeIdentifier=iossimulator-x64 -p:_DeviceName=:v2:udid=${input:iosSimulatorUdid}"
17+
},
18+
{
19+
"name": "iOS Sample (Device logs)",
20+
"type": "node-terminal",
21+
"request": "launch",
22+
"command": "xcrun simctl spawn ${input:iosSimulatorUdid} log stream --style compact --level debug --predicate 'process == \"Kapusch.Facebook.iOS.Sample\"'"
23+
},
24+
{
25+
"name": "iOS Sample (Build only x64)",
26+
"type": "node-terminal",
27+
"request": "launch",
28+
"command": "dotnet build ${workspaceFolder}/samples/Kapusch.Facebook.iOS.Sample/Kapusch.Facebook.iOS.Sample.csproj -c Debug -p:RuntimeIdentifier=iossimulator-x64"
29+
}
30+
],
31+
"compounds": [
32+
{
33+
"name": "iOS Sample (Run + Device logs)",
34+
"configurations": [
35+
"iOS Sample (Device logs)",
36+
"iOS Sample (Run x64 simulator)"
37+
],
38+
"stopAll": true
39+
}
40+
]
41+
}

0 commit comments

Comments
 (0)