Build for App Store error

I try to build an app for App Store and I get this long message:

The operation couldn’t be completed. 2017-06-12 10:35:55.630 xcodebuild[11050:3600701] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]:
Created bundle at path ‘/var/folders/ff/xzfyzjjn4td9yxdqryj6_n780000gn/T/WindHubIOS_2017-06-12_10-35-55.630.xcdistributionlogs’.
1.2.840.113635.100.1.61
2017-06-12 10:35:55.959 xcodebuild[11050:3600701] [MT] IDEDistribution: -[IDEDistributionProvisioning _itemToSigningInfoMap:]:
Can’t find any applicable signing identities for items: (
“<IDEDistributionItem: 0x7fb5d90a48a0 ‘tech.ml6.windhubios’ ‘DVTFilePath:0x7fb5d5a6a6c0:’/var/folders/ff/xzfyzjjn4td9yxdqryj6_n780000gn/T/WindHubIOS.xcarchive/Products/Applications/WindHubIOS.app’’>”
)
Errors={
“<DVTSigningCertificate: 0x7fb5d5fbe790; name=‘iPhone Distribution: Maintenance Logic Systems (WQE4ZR53M6)’, hash=‘9BB870ACAC59DBAC21BB7694A15C1F162A319955’, serialNumber=‘69EF2A3A9212EEC7’, certificateKind=‘1.2.840.113635.100.6.1.4, issueDate=‘2017-06-12 13:32:13 +0000’’>” = {
"<IDEDistributionItem: 0x7fb5d90a48a0 ‘tech.ml6.windhubios’ ‘<DVTFilePath:0x7fb5d5a6a6c0:’/var/folders/ff/xzfyzjjn4td9yxdqryj6_n780000gn/T/WindHubIOS.xcarchive/Products/

Error Domain=IDEDistributionErrorDomain Code=3 “(null)” UserInfo={IDEDistributionErrorSigningIdentityToItemToUnderlyingErrorKey={
"<DVTSigningCertificate: 0x7fb5d5fbe790; name=‘iPhone Distribution: Maintenance Logic Systems (WQE4ZR53M6)’,

I have followed Paul’s video but there’s a new version of XCODE. The last version is 8.3.3 (8E3004b). It is a little bit different.
So, I made an IOS Distribution profile specifically for app “tech.ml6.windhubios” instead of using the wildcard. It is still not working.

Here is the detail of the provisioning profile:
Name: IOSDistWindHubIOS
Type: iOS Distribution
App ID: WindHubIOS (WQE4ZR53M6.tech.ml6.windhubios)
Certificates: Maintenance Logic Systems(iOS Distribution)
Jun 12, 2018

If anybody could help me, it would be great.
Thanks.

The steps on this page should match up to more recent versions of Xcode:

http://developer.xojo.com/userguide/ios-app-store

There are also some troubleshooting suggestions at the end.

I went through this but I still get the same message.

I have no problems to compile it and use XCODE to install apps on devices. My problem is I have remote users that would like to use my app. I read Apple doc and the only easy way to do it is to use TESTFLIGHT. But, I need to generate an archive to do so. Then, I am not able to send my app until I succeed to make an IPA.

If there is any other way to do this, I am opened to suggestion.

The problem I have found is that I used Ad Hoc distribution profile instead of App Store distribution profile.

I wanted to limit access to only certain devices.

This ad hoc distribution profile is probably not available for Xojo.

This resolves the issue.