ionic-team / ionic-team/capacitor-barcode-scanner

Asset Validation Failed at iOS Validation Step

Open
#54 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
64
Forks
47
Avg merge
1h 55m
Merged PRs (30d)
1

Description

Our deployment process includes two apps with only differences in logos and names. I encountered an issue during the iOS validation step for my second app deployment. The first app works fine, but the second app stops with the following error:

```plaintext
{
NSLocalizedDescription = "Asset validation failed";
NSLocalizedFailureReason = "This bundle is invalid. The Info.plist file is missing or could not be parsed. Please check it for embedded control characters. (ID: id)";
NSUnderlyingError = "Error Domain=IrisAPI Code=-19241 \"Asset validation failed\" UserInfo={status=409, detail=This bundle is invalid. The Info.plist file is missing or could not be parsed. Please check it for embedded control characters., id=id, code=STATE_ERROR.VALIDATION_ERROR.90037, title=Asset validation failed, NSLocalizedFailureReason=This bundle is invalid. The Info.plist file is missing or could not be parsed. Please check it for embedded control characters., NSLocalizedDescription=Asset validation failed}";
"iris-code" = "STATE_ERROR.VALIDATION_ERROR.90037";
}
```

#### Workaround

My current workaround involves the following steps:
1. Generate the new files for the second application.
2. Uninstall the `@capacitor/barcode-scanner` package:
```sh
npm uninstall @capacitor/barcode-scanner
```
3. Reinstall the `@capacitor/barcode-scanner` package:
```sh
npm install @capacitor/barcode-scanner
```

#### Steps to Reproduce

1. Deploy the first app to the App Store (works fine).
2. Deploy the second app to the App Store (encounters the validation error).

#### Expected Behavior

The second app should pass the iOS validation step without errors.

#### Actual Behavior

The second app fails the iOS validation step with the error mentioned above.

#### Environment

- **Capacitor Version**: 6.0.1
- **@capacitor/barcode-scanner Version**: 1.0.4

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.