title: Export button greyed out in the archiver
body: <p>I am trying to create an ad-hoc distribution for my IOS app. When I go: XCODE > Menu > Product > Archive, this completes successfully but the 'Export' button is disabled with the message below: "Distribution Required Enrollment in the Apple Developer Program". </p>
  
  <p>I must have missed out a step in registering or some setting. Can enyone help figure out what I've done wrong. This is what I have...</p>
  
  <p>I joined the Apple Developer Program. And in the Apple Member Centre:</p>
  
  <ul>
  <li>Account Type: Company/Organisation </li>
  <li>MyName is listed with role: agent</li>
  </ul>
  
  <p>Under Certificates (<a href="https://developer.apple.com/account/ios/certificate" rel="nofollow">https://developer.apple.com/account/ios/certificate</a>)..</p>
  
  <ul>
  <li>MyCompanyName: iOS Distribution</li>
  <li>MyName: iOS Development</li>
  </ul>
  
  <p>Under Identifiers > APP IDs...</p>
  
  <ul>
  <li>Xcode IOS wildcard app id: *</li>
  </ul>
  
  <p>Under Devices...</p>
  
  <ul>
  <li>My iPad is listed</li>
  </ul>
  
  <p>Under Provisioning Profiles...</p>
  
  <ul>
  <li>MyNameProfile1, iOS Distribution, Active</li>
  <li>iOS Team Provisioning Profile:*, iOS Development, Active (Managed by XCODE)</li>
  </ul>
  
  <p>Within XCode...</p>
  
  <p>Menu > xcode > Prefs > Apple ID > my apple developer id is listed, and it contains..</p>
  
  <ul>
  <li>TeamName = MyName (personal team), iOS = Free, MAC = Free</li>
  <li>TeamName = MyCompanyName, iOS = Agent, MAC = Agent</li>
  </ul>
  
  <p>In xcode, when I have the .xcodeproje file selected, in the middle window, I have...</p>
  
  <ul>
  <li>Team: MyName (Personal team)</li>
  </ul>
  
  <p>And when I press the 'run' button with my iPad selected, the app builds and launches on my iPad without problems. However if I select: Team MyCompany name, and try to build, I get "App installation failed. The app could not be verified". (So I dont use this account).</p>
  
  <p>I must admit I dont understand why MyName and MyCompany name are listed and what the difference is. And I dont understand what xcode is creating and if I maybe have to download some certificate or something for xcode to use.</p>
  
  <p>Also I used cordova to create the app.</p>