bitrise-steplib / steps-ios-auto-provision-appstoreconnect

MIT License
15 stars 16 forks source link

Missing issuer_id when it clearly isn't. #12

Closed losh11 closed 4 years ago

losh11 commented 4 years ago
Config:
- BuildAPIToken: [REDACTED]
- BuildURL: https://app.bitrise.io/build/463f3a302790beae
- ProjectPath: ios/lndmobile.xcworkspace
- Scheme: lndmobile
- Configuration: 
- Distribution: development
- MinProfileDaysValid: 0
- CertificateURLList: [REDACTED]
- CertificatePassphraseList: *****
- KeychainPath: /Users/vagrant/Library/Keychains/login.keychain
- KeychainPassword: *****
- VerboseLog: false
Creating AppstoreConnectAPI client
Failed get developer portal data: invalid App Store Connect API authentication data: missing issuer_id
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | ios-auto-provision-appstoreconnect@0 (exit code: 1)           | 12.16 sec|
+---+---------------------------------------------------------------+----------+
| Issue tracker: ...se-steplib/steps-ios-auto-provision-appstoreconnect/issues |
| Source: ...thub.com/bitrise-steplib/steps-ios-auto-provision-appstoreconnect |
+---+---------------------------------------------------------------+----------+
apple

I even copied the issuer ID using the copy button on the AppStore Connect site.

bitce commented 4 years ago

Hi @losh11!

Sorry to hear about the issue. Can you confirm that on the Team tab of this app, this very same account is selected for the step to be using?

losh11 commented 4 years ago

Hi yes, I can confirm that the team is the same. Though in Xcode we are signing into a team account which has the same team ID.

bitce commented 4 years ago

Thanks! Can you please send us a link to this build an enable Support User access in the Settings of the app?

losh11 commented 4 years ago

Done - https://app.bitrise.io/app/f9a0d0dccb8b0636 not sure if that's the correct link

On Mon, 3 Aug 2020 at 09:17, Bence Kubik notifications@github.com wrote:

Thanks! Can you please send us a link to this build an enable Support User access in the Settings of the app?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bitrise-steplib/steps-ios-auto-provision-appstoreconnect/issues/12#issuecomment-667880594, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAT43OVLI2NARJRG4I5SATLR6ZXBPANCNFSM4PE6BVQQ .

bitce commented 4 years ago

Hi @losh11

When I said

can you confirm that on the Team tab of this app, this very same account is selected for the step to be using?

I mean that your project on the website has a "team tab" where you have to select this account. Can you confirm that thisi s done? Screenshot from 2020-08-04 09-17-12

losh11 commented 4 years ago

Okay that works. Though I'm still getting another issue:


28 devices are registered on Developer Portal
checking if the device (PEEPEEPOOPOOPEEPEEPOO) is registered
registering device
Failed to register device: json: cannot unmarshal object into Go struct field DevicesResponse.data of type []appstoreconnect.Device```
bitce commented 4 years ago

Glad to hear about the progress! The error seems related to the step trying to register test devices for your developer portal account. Can you try to reset your device list over there?

losh11 commented 4 years ago

I've tried resetting the device list. FYI building via xcode etc works, it's specifically just bitrise's autoprovision failing.

bitce commented 4 years ago

Right! Sorry I missed this earlier, what's happening is that the step is trying to register test devices for you, and somebody associated with the app had the UDID "PEEPEEPOOPOOPEEPEEPOO" registered, which is of course, incorrect. As I can see you've since removed it and the latest builds passed, but let me know if I'm wrong and you'd need further help with this!