Open Apogeum12 opened 8 months ago
Hi, what's your Xcode version and iOS version of the simulator you have installed?
Hey @pewsheen Xcode: version 15.2 (15C500b) IOS Simulator: 15.2 (1019) SimulatorKit 937 CoreSimulator 944.5
I saw the error message said:
xcrun: error: unable to find utility "devicectl", not a developer tool or in PATH
And that's weird because devicectl
should be installed with Xcode 15.
Could you run these commands in the terminal and post the result here?
xcrun -f devicectl
xcode-select -p
xcrun -f devicectl
: to see if devicectl is installed with Xcode command line tool
xcode-select -p
: see if Xcode command line tool points to Xcode 15. Sometimes it points to old version or beta version..
@pewsheen
xcrun -f devicectl
$ xcrun -f devicectl
xcrun: error: unable to find utility "devicectl", not a developer tool or in PATH
Xcode-select -p
$ xcode-select -p
/Library/Developer/CommandLineTools
So it's my output on Mac. Maybe it's missing some steps for prerequisites on the https://beta.tauri.app/guides/prerequisites/ ?
Hmm.. xcode-select
should point to /Applications/Xcode.app/Contents/Developer
Could you try the following command?
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
xcrun -f devicectl
Let's see if it can find devicectl
now. If it exist, then run npm run tauri ios dev
again.
@pewsheen
$ xcrun -f devicectl
/Applications/Xcode.app/Contents/Developer/usr/bin/devicectl
for command to run iOS dev by bun:
$ bun run tauri ios dev
$ tauri ios dev
Info Using 192.168.0.164 to access the development server.
/opt/homebrew/bin/ios-deploy
Info package `ios-deploy` present: true
Detected iOS simulators:
[0] iPad (10th generation)
[1] iPad (9th generation)
[2] iPad Air (5th generation)
[3] iPad Air (5th generation)
[4] iPad Pro (11-inch) (3rd generation)
[5] iPad Pro (11-inch) (4th generation)
[6] iPad Pro (12.9-inch) (5th generation)
[7] iPad Pro (12.9-inch) (6th generation)
[8] iPad mini (6th generation)
[9] iPad mini (6th generation)
[10] iPhone 14
[11] iPhone 14 Plus
[12] iPhone 14 Pro
[13] iPhone 14 Pro Max
[14] iPhone 15
[15] iPhone 15 Plus
[16] iPhone 15 Pro
[17] iPhone 15 Pro Max
[18] iPhone SE (3rd generation)
[19] iPhone SE (3rd generation)
Enter an index for a simulator above.
Simulator: 17
Info Starting simulator iPhone 15 Pro Max
Running BeforeDevCommand (`bun run dev`)
Warn Invalid target triple: aarch64-apple-ios-sim
$ vite
VITE v5.0.11 ready in 653 ms
➜ Local: http://localhost:1420/
Warn Waiting for your frontend dev server to start on http://192.168.0.164:1420/...
Warn Waiting for your frontend dev server to start on http://192.168.0.164:1420/...
Warn Waiting for your frontend dev server to start on http://192.168.0.164:1420/...
Warn Waiting for your frontend dev server to start on http://192.168.0.164:1420/...
Warn Waiting for your frontend dev server to start on http://192.168.0.164:1420/...
Warn Waiting for your frontend dev server to start on http://192.168.0.164:1420/...
Warn Waiting for your frontend dev server to start on http://192.168.0.164:1420/...
Warn Waiting for your frontend dev server to start on http://192.168.0.164:1420/...
Warn Waiting for your frontend dev server to start on http://192.168.0.164:1420/...
Warn Waiting for your frontend dev server to start on http://192.168.0.164:1420/...
Warn Waiting for your frontend dev server to start on http://192.168.0.164:1420/...
Warn Waiting for your frontend dev server to start on http://192.168.0.164:1420/...
Warn Waiting for your frontend dev server to start on http://192.168.0.164:1420/...
Warn Waiting for your frontend dev server to start on http://192.168.0.164:1420/...
Warn Waiting for your frontend dev server to start on http://192.168.0.164:1420/...
Warn Waiting for your frontend dev server to start on http://192.168.0.164:1420/...
Warn Waiting for your frontend dev server to start on http://192.168.0.164:1420/...
^[[B^[[B Warn Waiting for your frontend dev server to start on http://192.168.0.164:1420/...
^C
None errors, and simulation it open, but It can't connect with frontend, I check and in safari http://localhost:1420/ works but http://192.168.0.164:1420/ don't work. But in my opinion it's a progress, now find devicectl.
Should be the same as this: https://discord.com/channels/616186924390023171/1195345548476170301/1195362095621996616
Try running cargo update
inside src-tauri
folder and also update @tauri-apps/cli
. Make sure your tauri [RUST]
and @tauri-apps/cli [NPM]
update to version 2.0.0-alpha.21
.
Describe the bug
Reproduction
Compile project with:
bun run tauri ios dev
, code available here https://github.com/Apogeum12/calculator/tree/20-alpha-macos-supportExpected behavior
1) Open iPhone simulation Works 2) open app on the phone
Full
tauri info
outputStack trace
No response
Additional context
tauri.conf.json