Add unsigned iOS sideload build

This commit is contained in:
Ninosaurier committed 2026-11-25 13:21:56 +01:00
1 parent fa42c6f8a0
commit adad6ec27f
5 files changed
+82 -11

No files matched your search

+18 -9
View File
@@ -37,18 +37,26 @@ You can also transfer the APK to the device and open it. The device may ask you
## iOS
Capacitor's Xcode project is in `ios/App/App.xcodeproj`. An IPA must be built on macOS with Xcode and signed for distribution. This Linux build environment can prepare and sync the project, but it cannot produce or sign an IPA.
Capacitor's Xcode project is in `ios/App/App.xcodeproj`. Building an iOS app requires macOS and Xcode. This repository includes a script for creating an unsigned IPA that can be signed on-device for personal sideloading; this Linux build environment cannot produce the IPA itself.
On a Mac:
### Build an unsigned IPA for sideloading
1. Install Node.js and Xcode.
2. Run `npm install` in the repository.
3. Run `npm run ios:sync` to build the web assets and copy them into the iOS project.
4. Run `npm run ios:open` to open the project in Xcode.
5. Select an Apple development team and signing method in Xcode.
6. Archive the app and export the signed IPA from Xcode.
On a Mac with Node.js and Xcode installed:
Do not commit Apple certificates, provisioning profiles, or signing keys to this repository. Add the exported IPA to `downloads/` only after it has been signed for the intended distribution method.
```sh
npm install
npm run ios:unsigned-ipa
```
The script builds the app for physical iOS devices and writes:
```text
downloads/ios/BeatHound-iOS-1.0.0-unsigned.ipa
```
The IPA is not directly installable by opening it on an iPhone. Import it into a sideloading app such as AltStore or Sideloadly and sign it with your Apple ID. A free personal Apple ID can be used for personal sideloading, but the signature needs periodic renewal and the sideloading app's setup instructions must be followed. No App Store upload is involved.
For managed distribution to other users or direct installation without a sideloading app, use Apple's supported distribution and signing options in Xcode. Keep certificates, provisioning profiles, and signing keys out of Git.
## Mobile build commands
@@ -59,3 +67,4 @@ Do not commit Apple certificates, provisioning profiles, or signing keys to this
| `npm run android:debug` | Builds and syncs Android, then creates a debug APK. |
| `npm run ios:sync` | Builds and syncs the iOS project. |
| `npm run ios:open` | Opens the iOS project in Xcode; run this on macOS. |
| `npm run ios:unsigned-ipa` | Builds an unsigned iOS IPA for personal sideloading; run this on macOS with Xcode. |