Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Xcode archive errors #153

Merged
merged 8 commits into from
Sep 21, 2021
Merged

Conversation

priitlatt
Copy link
Contributor

@priitlatt priitlatt commented Sep 16, 2021

In case running xcode-project build-ipa fails with xcodebuild exception during archiving, then xcpretty formatter (which is enabled by default) usually hides underlying error, and as a result it is difficult to find out what was the actual reason for failure. For example:

$ xcode-project build-ipa --workspace my-project.xcworkspace --scheme "my scheme" --config Release
...

▸ Check Dependencies
Failed to archive my-project.xcworkspace

is not very informative.

The changes introduced in this PR try to solve this issue by detecting the failed archiving steps from unformatted xcodebuild logs, and then showing them in the very end of the build log. For example:

$ xcode-project build-ipa --workspace my-project.xcworkspace --scheme "my scheme" --config Release
...

▸ Check Dependencies
Failed to archive my-project.xcworkspace. The following build commands failed:

Check dependencies
	Code Signing Error: No signing certificate "iOS Distribution" found:  No "iOS Distribution" signing certificate matching team ID "X7NNQ9KYM5" with a private key was found.
	Code Signing Error: Provisioning profile "Development Profile" expired on 27. Aug 2021.
	Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 14.5'

@priitlatt priitlatt added the enhancement New feature or request label Sep 20, 2021
@priitlatt priitlatt changed the title Feature/xcode archive errors Feature: Xcode archive errors Sep 20, 2021
@priitlatt priitlatt marked this pull request as ready for review September 20, 2021 10:24
Co-authored-by: Artemii <40743076+artemii-yanushevskyi@users.noreply.github.com>
@priitlatt priitlatt merged commit 326787c into master Sep 21, 2021
@priitlatt priitlatt deleted the feature/xcode-archive-errors branch September 21, 2021 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants