Closed16

Xtoolを使ってWindowsからiOSアプリを作ってみる

名無し。名無し。

内部API叩いてるとか若干規約が怪しいとかなので、一応捨て垢のApple ID作ったほうがいいかも
自分のサブサブ端末(iPhone 6s)のサブ垢を使った

名無し。名無し。

苦戦.terminal

~ via  v3.4.2 at 11:21:10
❯ xtool setup
Select login mode
0: API Key (requires paid Apple Developer Program membership)
1: Password (works with any Apple ID but uses private APIs)
Choice (0-1): 1
Apple ID: [redacted]
Password:
Logging in...
[Downloading libraries] 100%
Error: Error Domain=NSCocoaErrorDomain Code=257 "You don’t have permission."UserInfo={NSUnderlyingError=Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", NSFilePath=/home/sevenc7c/.config/xtool/Anisette/adi/adi.pb, NSURL=file:///home/sevenc7c/.config/xtool/Anisette/adi/adi.pb}
[ble: exit 1]

~ via  v3.4.2 took 1m9s at 11:22:20
❯ xtool setup
Select login mode
0: API Key (requires paid Apple Developer Program membership)
1: Password (works with any Apple ID but uses private APIs)
Choice (0-1): 1
Apple ID: [redacted]
Password:
Logging in...
Code: 814999
Logged in.
- Apple ID: [redacted]
- Team ID: [redacted]
- Token expiry: 11/05/2026, 11:23 AM
Now generating the Darwin SDK.

Please download Xcode from http://developer.apple.com/download/all/?q=Xcode
and enter the path to the downloaded Xcode.xip.

Path to Xcode.xip: /home/sevenc7c/xcode/Xcode_16.3.xip
[Downloading toolset] 100%
Error: No such file or directory
[ble: exit 1]

~ via  v3.4.2 took 1m28s at 11:24:08
❯ file /home/sevenc7c/xcode/Xcode_16.3.xip
/home/sevenc7c/xcode/Xcode_16.3.xip: cannot open `/home/sevenc7c/xcode/Xcode_16.3.xip' (No such file or directory)

~ via  v3.4.2 at 11:24:17
❯ xtool setup
Logged in.
- Apple ID: [redacted]
- Team ID: [redacted]
- Token expiry: 11/05/2026, 11:23 AM
Now generating the Darwin SDK.

Please download Xcode from http://developer.apple.com/download/all/?q=Xcode
and enter the path to the downloaded Xcode.xip.

Path to Xcode.xip: /home/sevenc7c/xcode/xcode.xip
[Downloading toolset] 100%
[Extracting XIP] 100%
名無し。名無し。

そういや自分はAltStoreでipaいれる予定だからもしかしてusbipdとかいらなかった説あるな

名無し。名無し。

普通にusb接続ないとクソしんどいので普通にusbする

名無し。名無し。
❯ xtool dev
Planning...
[1/1] Planning build
Building for debugging...
[4/4] Linking first_app_test-App
Build of product 'first_app_test-App' complete! (0.64s)
Waiting for device to be connected...
Installing to device: nanaPhone 16 (udid: 00008140-00194D363C87001C)

[Unpacking app] 100%
[Logging in]   0%
[Preparing device] 100%
[Provisioning] 100%
[Signing]WriteFile: Failed in fopen! /tmp/com.kabiroberai.xtool.Staging/Payload/first_app_test.app/_CodeSignature/CodeResources, No such file or directory
        Writing CodeResources Failed! /tmp/com.kabiroberai.xtool.Staging/Payload/first_app_test.app/_CodeSignature/CodeResources

Error: Signing failed
[ble: exit 1]

バグかな、ipa作るか...

名無し。名無し。
#!/usr/bin/env bash
set -eux

xtool dev build
mkdir -p xtool/ipa_temp/Payload
cp -r xtool/first_app_test.app xtool/ipa_temp/Payload
(cd xtool/ipa_temp && zip -r ../first_app_test.ipa Payload)
cp ./xtool/first_app_test.ipa /mnt/z

はい

名無し。名無し。

うおおおおおおおおおおお!!!!!!!!!!!!!!!!!

このスクラップは4ヶ月前にクローズされました