yukiarrr / ios-build-action

Build iOS project (.xcodeproj, .xcworkspace), and export ipa
MIT License
279 stars 135 forks source link

iOS Build Keeps Failing #114

Open KEaso-unum opened 1 year ago

KEaso-unum commented 1 year ago

Hi! I am working with the build action to create a release variant for my iOS app. I have used all the required inputs but for some reason the archive keeps failing. I cant seem to get too clear of an error since they are a little cryptic and was hoping that someone could help me or see an issue with my commands. I haven't done any fast lane configuration so there's a good chance it could just be that. I didn't go down the fastlane config route since the action itself did not have too much about that, and when I looked at other repos I didn't see a fastlane file anywhere, but there's a chance I had just missed it.

First I want to show how I am using the action: image

Here is the error I get: image

image

Previous steps that I run before the action are: Configure Node Select Xcode version to 14.2 Install cocoapods Install dependencies Pod Install

Are there any steps that I might be missing here? The provisioning profile I am using has been used to sign apps before so it should be good here as well. If there is anything at all that I might be missing I would be willing to try it. I appreciate any feedback, thank you!

thisisadarshjais commented 1 year ago

Was you able to solve this? Any help would be really appreciated!

MelMayssonOwen commented 11 months ago

Was you able to solve this? Any help would be really appreciated!

was you able to solve this ? having the same issue

akmalmstfa29 commented 10 months ago

up! Is there anyone who can help with this? I've encountered a similar case.

PopBot commented 9 months ago

Hi, I'm attempting to work on a fix. I too find the documentation cryptic. I am also working on updating the README.md, because it took me far too long to figure out how it works on my own.

My use case includes signing multiple widgets, which means including multiple Profiles.

Essentially, I'd just be pleased to have the signed IPA uploaded as an artifact (don't need to worry about uploading to App Store Connect).

My issue is in the main exporting step of the signed IPA: image

I thought a workaround could be setting the export-method to package, but for some reason, package is no longer an option: image

Side note: I still have yet to find a reason for why.

I used this article to write my own workflow (Gist) that uses xcodebuild instead of Fastlane. It's quite inefficient, averaging 3-5x more time. The Export Archive step is the faulty point. I still get the same invalid login to Apple Store Connect. image

I tested the xcodebuild commands locally on M1, and the Export Archive step worked perfectly fine from terminal, even uploading the IPA to App Store connect. I have all certificates and profiles properly set up through the Keychain macOS app (as well as authenticated with the proper dev account in XCode). So it's definitely an issue with authentication.

I think I may be able to get my manual GitHub Action script from the Gist link to work for us all. However my only issue is determining what the cause of the Error Domain=IDEDistributionErrorDomain Code=10 "Failed to log in. is. If someone might be able to point me in the direction of how properly authenticate with my App Store Connect API Key credentials in the command line, I can just edit the Gist. Thanks!