Skip to content

Commit 6025156

Browse files
reproduction for bug in #2619
# Steps to reproduce 1. Checkout this PR locally 2. Run `cargo run -Funstable-mobile-app -- mobile-app upload tests/integration/_fixtures/mobile_app/unexpected.ipa --log-level=debug` 3. Observe following the following error, which occurs despite the presence of `Payload/DemoApp.app/Info.plist`, because `Payload/s/demo.app/Info.plist` is shorter in terms of number of characters. ``` error: Failed to convert IPA to XCArchive for file tests/integration/_fixtures/mobile_app/unexpected.ipa Caused by: No .app found in IPA ```
1 parent e8cb4a3 commit 6025156

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/utils/mobile_app/ipa.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ pub fn ipa_to_xcarchive(ipa_path: &Path, ipa_bytes: &[u8], temp_dir: &TempDir) -
6868

6969
let app_name = extract_app_name_from_ipa(&ipa_archive)?;
7070

71+
log::debug!("Extracted app name: {}", app_name);
72+
7173
// Extract all files from the archive
7274
for i in 0..ipa_archive.len() {
7375
let mut file = ipa_archive.by_index(i)?;
@@ -120,6 +122,7 @@ pub fn ipa_to_xcarchive(ipa_path: &Path, ipa_bytes: &[u8], temp_dir: &TempDir) -
120122
}
121123

122124
fn extract_app_name_from_ipa(archive: &ZipArchive<Cursor<&[u8]>>) -> Result<String> {
125+
log::debug!("app names: {:?}", archive.file_names().collect::<Vec<_>>());
123126
archive
124127
.file_names()
125128
.filter(|name| name.starts_with("Payload/") && name.ends_with(".app/Info.plist"))
50.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)