title: Xcode couldn't find any provisioning profiles matching
body: <p>I am trying to rebuild an ios app, that previously had no issues (first rebuild in 6 months or so). Environment is OSX 10.13.5 with all the latest updates, Xcode 9.4.1, Ionic is 3.20.0. Local cordova, ionic and node modules have been updated.</p>
  
  <p>These plugins:</p>
  
  <p>cordova-plugin-device<br>
  cordova-plugin-file<br>
  cordova-plugin-file-transfer<br>
  cordova-plugin-splashscreen<br>
  cordova-plugin-whitelist<br>
  cordova-plugin-x-socialsharing</p>
  
  <p>Configured for manual signing. Provisioning profiles have been regenerated, with new certs, downloaded and installed (numerous times).</p>
  
  <p>I cannot make this error go away in either debug or release builds:</p>
  
  <blockquote>
    <p>Check dependencies Code Signing Error: No profile for team
    ‘8SEBNER3XM’ matching ‘ABM 2018 Dev’ found: Xcode couldn’t find any
    provisioning profiles matching ‘8SEBNER3XM/ABM 2018 Dev’. Install the
    profile (by dragging and dropping it onto Xcode’s dock item) or select
    a different one in the General tab of the target editor. Code Signing
    Error: Code signing is required for product type ‘Application’ in SDK
    ‘iOS 11.4’</p>
    
    <p>** ARCHIVE FAILED **</p>
    
    <p>The following build commands failed: Check dependencies (1 failure)
    Error: Error code 65 for command: xcodebuild with args:
    -xcconfig,/Users/kerickhowlett/Documents/PhoneProjects/ABM/platforms/ios/cordova/build-debug.xcconfig,-workspace,Cocktail
    Pro.xcworkspace,-scheme,Cocktail
    Pro,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,Cocktail
    Pro.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/kerickhowlett/Documents/PhoneProjects/ABM/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/kerickhowlett/Documents/PhoneProjects/ABM/platforms/ios/build/sharedpch</p>
  </blockquote>
  
  <p>Despite what the message says, there is what seems to be perfectly valid provisioning profiles in both Xcode project General tab, and Build Settings (ie 'ABM 2018 Dev'). They match the files in Library/MobileDevice/Provisioning Profiles folder. The team id is verified as correct. The profiles been regenerated / re-installed many times. Xcode thinks they are valid from within Xcode (does not complain). Running as ‘ionic cordova build ios’ seems to have a different opinion, and complains about the profiles. Similar error with --release added to the command. Based on trial and error, it is the PROVISIONING_PROFILE_SPECIFIER that seems to be the issue. I've tried a number of variations but always get the same error, which seems bogus. I have tried both profile names and UUID's. </p>
  
  <p>What am I missing?</p>