mirror of
https://github.com/nab138/isideload.git
synced 2026-03-02 06:26:16 +01:00
Update example and README
This commit is contained in:
@@ -6,6 +6,12 @@ A Rust library for sideloading iOS applications using an Apple ID. Used in [Cros
|
||||
|
||||
This branch is home to isideload-next, the next major version of isideload. It features a redesigned API, improved error handling, better entitlement handling, and more. It is not ready!
|
||||
|
||||
## Usage
|
||||
|
||||
**You must call `isideload::init()` at the start of your program to ensure that errors are properly reported.** If you don't, errors related to network requests will not show any details.
|
||||
|
||||
A full usage example is available is in [examples/minimal](examples/minimal/).
|
||||
|
||||
## TODO
|
||||
|
||||
Things left todo before the rewrite is considered finished
|
||||
|
||||
5
examples/minimal/README.md
Normal file
5
examples/minimal/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# minimal
|
||||
|
||||
A minimal sideloading CLI to to demonstrate isideload.
|
||||
|
||||
Usage: `minimal <appleid@icloud.com> <password> <app>`
|
||||
@@ -46,11 +46,6 @@ async fn main() {
|
||||
.login(apple_password, get_2fa_code)
|
||||
.await;
|
||||
|
||||
// match &account {
|
||||
// Ok(a) => println!("Logged in. {}", a),
|
||||
// Err(e) => panic!("Failed to log in to Apple ID: {:?}", e),
|
||||
// }
|
||||
|
||||
let mut account = account.unwrap();
|
||||
|
||||
let dev_session = DeveloperSession::from_account(&mut account)
|
||||
@@ -68,7 +63,8 @@ async fn main() {
|
||||
panic!("No devices found");
|
||||
}
|
||||
|
||||
let provider = devs.first()
|
||||
let provider = devs
|
||||
.first()
|
||||
.unwrap()
|
||||
.to_provider(UsbmuxdAddr::from_env_var().unwrap(), "isideload-demo");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user