DioxusLabs / DioxusLabs/dioxus

Deploying to the iOS app store

Open
#3,817 5 comments 9 reactions 0 assignees View on GitHub
bug mobile
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

**Problem**
I was able to create an .ipa from the .app file and meet all the certificate, profile provisioning requirements. However, I cannot upload the artefact using "Transporter" for macos, and this is the error I get:

Validation failed (409)
Incorrect Platform. You included arm64 executable “PracticeTestTaker.app/practice_test_taker” in your iOS bundle. Only iOS executables can be included. (ID: b7d11c5b-00ce-4fdd-a4c9-3c81e99be43e)

I tried variations of the archs available: arm, and arm64. I think the correct architecture for ios is aarch, which is not available via the dx cli.

Steps to reproduce the behavior:

```sh
#!/bin/zsh
set -e
rm -rf ../target/dx/practice_test_taker/release/ios
dx bundle --arch arm --platform=ios --release
cp -f ios/Info.plist ../target/dx/practice_test_taker/release/ios/PracticeTestTaker.app/
cd ../
cp flashcardsstoreprovisioningprofile.mobileprovision target/dx/practice_test_taker/release/ios/embedded.mobileprovision
cd target/dx/practice_test_taker/release/ios/
mkdir Payload
mv PracticeTestTaker.app Payload/
cp embedded.mobileprovision Payload/PracticeTestTaker.app/
codesign -s "Apple Distribution: XXXXXXX" -f Payload/PracticeTestTaker.app
7z a practest.ipa Payload
```
To Info.plist, I had to add a key and override, DTPlatformName, to include iphoneos, which was not in the original.

```xml

CFBundleDisplayName
Practice Test
DTPlatformName
iphoneos
CFBundleExecutable
practice_test_taker
CFBundleIdentifier
club.eleventh-hour.flashcardstest
CFBundleName
PracticeTestTaker
CFBundleVersion
0.1.0
CFBundleShortVersionString
0.1.0
CFBundleDevelopmentRegion
en_US
UILaunchStoryboardName

LSRequiresIPhoneOS

```

then, upload the generated .ipa via Transporter.

**Expected behavior**

To upload to the App Store successfully.
**Environment:**

- Dioxus version: 0.6.1
- Rust version: 1.85.0
- OS info: macOS 15.3.1 (24D70)
- App platform: iOS

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.