Unable to produce IOS debug build

Hi,

As of this morning, I’m unable to produced a debug build using AppStudio and VoltBuilder using the run ios–debug setting for ‘Cordova command’ in AppStudio. Doing a build for the AppStore Connect / TestFlight using the ‘run ios–release’ setting works fine.

My development certificate and development provisioning profiles are valid until 2024 and debug builds were working a week or so ago.

Nate

Can you give me a bit more information? Are you receiving an error? Do you have a log file from the failed build?

For starters, the debug build will give me an error if the version number isn’t higher than the previous debug build version number (which it never used to do).

If I up the version number, it then gets past that error, but gives me a new error… here’s what shows up in the AppStudio UI:

ServerError: App Store Connect validation failed 2023-07-03 16:58:49.875 INFO: ContentDelivery version 2.141.101 (14110 1). 2023-07-03 16:58:49.881 INFO: Show Progress: Contacting Apple Services… 2023-07-03 16:58:50.667 INFO: Received bui ld ID: b7ff2597-a2a9-4bbf-857b-8914daa02c10 2023-07-03 16:58 :50.669 INFO: Show Progress: Making copy of ‘ios.developmen t.ipa’… 2023-07-03 16:58:50.671 INFO: Show Progress: Prepar ing to verify ‘ios.development.ipa’… 2023-07-03 16:58:50.684 INFO: Show Progress: Analyzing package… 2023-07-03 16:58:5 5.282 INFO: Show Progress: Sending analysis to App Store Co nnect… 2023-07-03 16:58:55.588 INFO: COMPLETED - PART 1 - a sset-description-DF8FBC2B-5278-4C3E-A479-2EAA86218C9E.xml - eTag: “7AAE45C8B7BD8B007B1A219916512920” 2023-07-03 16:58:55 .591 INFO: Show Progress: Waiting for App Store Connect ana lysis response… 2023-07-03 16:59:00.072 *** Error: ERROR: As set validation failed (90161) Invalid Provisioning Profile. The provisioning profile included in the bundle org.jaars.Fl ightSpan [Payload/FlightSpan.app] is invalid. [Missing code- signing certificate]. A Distribution Provisioning profile sh ould be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal. (ID: b4c8913b- b233-4a4b-b479-5688cc052490) 2023-07-03 16:59:00.523 INFO: Show Progress: Sending SPI analysis to App Store Connect… 20 23-07-03 16:59:00.718 INFO: COMPLETED - PART 1 - DTAppAnaly zerExtractorOutput-60A3816B-53CA-4CC6-B734-DCB49FBD813C.zip - eTag: “6E6EBB3F152BE8CFBF21F388AE81B519” 2023-07-03 16:59: 00.721 INFO: Show Progress: Waiting for App Store Connect S PI analysis response… 2023-07-03 16:59:10.132 INFO: Show Pr ogress: Verify failed. Asset validation failed Invalid Provi sioning Profile. The provisioning profile included in the bu ndle org.jaars.FlightSpan [Payload/FlightSpan.app] is invali d. [Missing code-signing certificate]. A Distribution Provis ioning profile should be used when submitting apps to the Ap p Store. For more information, visit the iOS Developer Porta l. (ID: b4c8913b-b233-4a4b-b479-5688cc052490) 2023-07-03 16: 59:10.133 INFO: ============= VERIFY FAILED with 1 error. ============= 2023-07-03 16:59:10.134 *** Error: Validation failed for ‘/Users/vagrant/voltbuilder/agent/upload/d478a9ea -da9a-4bd6-8580-59588aaebeb8/ios.development.ipa’. 2023-07-0 3 16:59:10.134 *** Error: Asset validation failed Invalid Pr ovisioning Profile. The provisioning profile included in the bundle org.jaars.FlightSpan [Payload/FlightSpan.app] is inv alid. [Missing code-signing certificate]. A Distribution Pro visioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Po rtal. (ID: b4c8913b-b233-4a4b-b479-5688cc052490) (90161) { NSLocalizedDescription = “Asset validation failed”; NSLocalizedFailureReason = “Invalid Provisioning Profile. Th e provisioning profile included in the bundle org.jaars.Flig htSpan [Payload/FlightSpan.app] is invalid. [Missing code-si gning certificate]. A Distribution Provisioning profile shou ld be used when submitting apps to the App Store. For more i nformation, visit the iOS Developer Portal. (ID: b4c8913b-b2 33-4a4b-b479-5688cc052490)”; “original_server_error” = { code = “STATE_ERROR.VALIDATION_ERROR.90161”; detail = “Invalid Provisioning Profile. The provisioni ng profile included in the bundle org.jaars.FlightSpan [Payl oad/FlightSpan.app] is invalid. [Missing code-signing certif icate]. A Distribution Provisioning profile should be used w hen submitting apps to the App Store. For more information, visit the iOS Developer Portal.”; id = “b4c8913b-b23 3-4a4b-b479-5688cc052490”; status = 409; tit

You recently updated AppStudio, correct? We updated the store upload functionality and it seems that your debug build is trying to be uploaded to the store. I’m assuming that’s not what you wanted.

This isn’t a problem with VoltBuilder - I will look into why this might be happening with AppStudio.

I’m on 8.5.8.1

Yeah, that’s what appears to me to be happening–an attempt to upload to the AppStore even though the AppStudio setting is Debug. Again, if I set the setting to Release then it actually does upload to the AppStore successfully… but I need the debug builds obviously to do on-device debugging.

As a work-around, I can suggest that you submit your build without the itunesAccount set. We’re looking into solutions for this, but that should get you going for the moment.

We’ve got a new test build (8.5.8.2) which we would like you to try. Can you let me know if this solves your problem?

Windows:

MacOS:

Hi George,

Yep–that’s got it fixed. Thanks!

Nate

Thanks for the good news - we’ll roll it out to everyone.