Skip to content
Merged
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: 1 addition & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ simulator or attach the device over USB. The app appears in Necto's sidebar when
```bash
xcrun simctl list devices available # pick a device id
xcrun simctl boot <device-id>
xcodebuild -project Necto.xcodeproj -scheme ExampleApp -derivedDataPath Build -destination "id=<device-id>" build
xcodebuild -project Necto.xcodeproj -scheme ExampleApp -destination "id=<device-id>" SYMROOT="$PWD/Build/Products" build
xcrun simctl install <device-id> Build/Products/Debug-iphonesimulator/ExampleApp.app
xcrun simctl launch <device-id> im.toss.necto.example
```
Expand Down
2 changes: 1 addition & 1 deletion docs/ko/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ open Build/Products/Debug/Necto.app
```bash
xcrun simctl list devices available # 디바이스 id를 하나 골라요
xcrun simctl boot <device-id>
xcodebuild -project Necto.xcodeproj -scheme ExampleApp -derivedDataPath Build -destination "id=<device-id>" build
xcodebuild -project Necto.xcodeproj -scheme ExampleApp -destination "id=<device-id>" SYMROOT="$PWD/Build/Products" build
xcrun simctl install <device-id> Build/Products/Debug-iphonesimulator/ExampleApp.app
xcrun simctl launch <device-id> im.toss.necto.example
```
Expand Down
2 changes: 1 addition & 1 deletion docs/ko/tutorial-device.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ NectoSDK.register(UptimePlugin())
```bash
xcrun simctl list devices available # pick a device id
xcrun simctl boot <device-id>
xcodebuild -project Necto.xcodeproj -scheme ExampleApp -destination "id=<device-id>" build
xcodebuild -project Necto.xcodeproj -scheme ExampleApp -destination "id=<device-id>" SYMROOT="$PWD/Build/Products" build
xcrun simctl install <device-id> Build/Products/Debug-iphonesimulator/ExampleApp.app
xcrun simctl launch <device-id> im.toss.necto.example
```
Expand Down
2 changes: 1 addition & 1 deletion docs/ko/verification.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ E2E가 실패하면 로그와 테스트 결과를 첨부해요.

```bash
xcrun simctl boot <device-id>
xcodebuild -project Necto.xcodeproj -scheme ExampleApp -destination "id=<device-id>" build
xcodebuild -project Necto.xcodeproj -scheme ExampleApp -destination "id=<device-id>" SYMROOT="$PWD/Build/Products" build
xcrun simctl install <device-id> Build/Products/Debug-iphonesimulator/ExampleApp.app
xcrun simctl launch <device-id> im.toss.necto.example
```
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial-device.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ Run it, on the simulator loop from [verification.md](verification.md):
```bash
xcrun simctl list devices available # pick a device id
xcrun simctl boot <device-id>
xcodebuild -project Necto.xcodeproj -scheme ExampleApp -destination "id=<device-id>" build
xcodebuild -project Necto.xcodeproj -scheme ExampleApp -destination "id=<device-id>" SYMROOT="$PWD/Build/Products" build
xcrun simctl install <device-id> Build/Products/Debug-iphonesimulator/ExampleApp.app
xcrun simctl launch <device-id> im.toss.necto.example
```
Expand Down
2 changes: 1 addition & 1 deletion docs/verification.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Use a simulator for the loopback connection path.

```bash
xcrun simctl boot <device-id>
xcodebuild -project Necto.xcodeproj -scheme ExampleApp -destination "id=<device-id>" build
xcodebuild -project Necto.xcodeproj -scheme ExampleApp -destination "id=<device-id>" SYMROOT="$PWD/Build/Products" build
xcrun simctl install <device-id> Build/Products/Debug-iphonesimulator/ExampleApp.app
xcrun simctl launch <device-id> im.toss.necto.example
```
Expand Down
6 changes: 6 additions & 0 deletions script/build
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,18 @@ echo "==> swift packages"
swift build
swift build --package-path NectoMac

# Where Xcode puts products is a preference of the machine unless it is said here, and
# the path printed at the end is the one the documentation tells people to open.
products=(SYMROOT="$PWD/Build/Products")

echo
echo "==> app"
run_xcodebuild "error:|warning:|BUILD" xcodebuild \
-project Necto.xcodeproj \
-scheme Necto \
-configuration Debug \
-destination 'platform=macOS' \
"${products[@]}" \
build

# ExampleApp is the only thing that compiles against the SDK the way an app would, so
Expand All @@ -49,6 +54,7 @@ if [ -n "$SIM_ID" ]; then
-configuration Debug \
-destination "id=$SIM_ID" \
-derivedDataPath Build \
"${products[@]}" \
build
else
echo "SKIP: no booted simulator, so the SDK was not compiled against an app."
Expand Down
Loading