Closed s1rius closed 5 months ago
@s1rius Based on the log, it look like the app was installed/updated. Were you doing this untethered (the phone just on wifi) or tethered (a cable from phone to mac)? pymobiledevice3
(which is how the status code and stdout is retrieved) doesn't support untether (yet).
Hello! Thanks for the report. Can you run with DINGHY_LOG=trace
in the environment ? And in verbose mode (-vvv
right after dinghy in the command line). I hope it will show us which call fails.
@simlay I use the lightning connector. @kali I had upgrade the py3, reinstall pymobiledevice3, delete others apple development keys in Keychain Access...
I rerun dinghy, another error appears, see below.
Before I comment this, I reconnected my iPhone and run the command again, after I enter my password, it worked. Seems like a permission problem.
I test it several times, the error appears once.
Hey looking at your log, I notice this on the error line /.cargo/bin/cargo-dinghy
. This path is a bit weird, usually .cargo
is in the home directory.
Have you setup cargo at the / ? or are we missing some prefixing somewhere ? maybe $HOME is missing or empty ?
Thanks for reply, dinghy is work well on my iOS device now. I think the two errors were caused by permission issue.
Hey looking at your log, I notice this on the error line
/.cargo/bin/cargo-dinghy
. This path is a bit weird, usually.cargo
is in the home directory.Have you setup cargo at the / ? or are we missing some prefixing somewhere ? maybe $HOME is missing or empty ?
I delete my personal info, I setup cargo using the default path.
Hello! Thanks for the report. Can you run with
DINGHY_LOG=trace
in the environment ? And in verbose mode (-vvv
right after dinghy in the command line). I hope it will show us which call fails.
This debug trick help a lot.
I followed iOS setup readme, but got an error on iOS device.
Env
MacOS 14.3.1 (23D60) iOS 17.3.1 rustc 1.75.0-nightly (e20cb7702 2023-10-12) dinghy build from souce code 4875f58
Detail
Click me
```plaintext test-ws git:(main) cargo dinghy -v -d ios test pass Targeting platform auto-ios-aarch64 and device 00008110-000AAAAAAAA2AAAA warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions Compiling test-proc-macro v0.1.0 (/Volumes/repo/dinghy/test-ws/test-proc-macro) Finished test [unoptimized + debuginfo] target(s) in 0.40s Running unittests src/lib.rs (target/aarch64-apple-ios/debug/deps/test_app-1232232323123) Installing test_app-1232232323123 to 00008110-000AAAAAAAA2AAAA (A) Running "xcrun" "devicectl" "device" "install" "app" "--device" "00008110-000AAAAAAAA2AAAA" "/Volumes/repo/dinghy/test-ws/target/dinghy/test-app/Dinghy.app" 21:26:23 Enabling developer disk image services. 21:26:23 Acquired usage assertion. 5%... 10%... 15%... 16%... 19%... 22%... 30%... 31%... 34%... 36%... 38%... 40%... 43%... 46%... 48%... 50%... 52%... 56%... 57%... 60%... 62%... 66%... 68%... 72%... 74%... 76%... 80%... 84%... 88%... 92%... 96%... Complete! App installed: • bundleID: com.demo.Dinghy • installationURL: file:///private/var/containers/Bundle/Application/AAAAAAA-AAAA-AAAA-AAAA/Dinghy.app/ • launchServicesIdentifier: unknown • databaseUUID: AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA • databaseSequenceNumber: 2840 • options: [2024-03-04T13:26:27Z ERROR cargo_dinghy] No such file or directory (os error 2) error: test failed, to rerun pass `-p test-app --lib` Caused by: process didn't exit successfully: `.cargo/bin/cargo-dinghy -p auto-ios-aarch64 -v -d 00008110-000AAAAAAAA2AAAA runner -- /Volumes/repo/dinghy/test-ws/target/aarch64-apple-ios/debug/deps/test_app-1232232323123 pass` (exit status: 1) note: test exited abnormally; to see the full output pass --nocapture to the harness. ```