title: Problems with iOS Free Provisioning Profile
body: <p>I've been using Xcode with a free Apple ID, and signing a App with a free provisioning profile.</p>
  
  <p>However, after I signed the App with another Mac, the certificate on the first Mac I used to sign the App with does not work anymore.</p>
  
  <p>I received this error message when I tried to run it on my iPhone:</p>
  
  <blockquote>
    <p>Please verify that your device's clock is properly set, and that your signing certificate is not expired. (0xE8008018).</p>
  </blockquote>
  
  <p>After generating a new certificate via Xcode > Preferences > View Details... > iOS Distribution > Create, I got this error instead:</p>
  
  <blockquote>
    <p>The identity used to sign the executable is no longer valid.</p>
  </blockquote>
  
  <p>After deleting the App from my iPhone, I tried to run the App again and received this error message instead. This also caused my phone to freeze for a while:</p>
  
  <blockquote>
    <p>dyld: Library not loaded: @rpath/libswiftCore.dylib
      Referenced from: /var/mobile/Containers/Bundle/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Test.app/Test
      Reason: no suitable image found.  Did find:
        /private/var/mobile/Containers/Bundle/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Test.app/Frameworks/libswiftCore.dylib: mmap() errno=1 validating first page of '/private/var/mobile/Containers/Bundle/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Test.app/Frameworks/libswiftCore.dylib'
    (lldb) </p>
  </blockquote>
  
  <p><strong>Update</strong>: I'm using Free Provisioning Profile, thus I don't have access to iTunes Connect. I also can't import the certificate from my 2nd Mac as it was it was reset.</p>
  
  <p><strong>Update 2</strong>: I've also visited Keychain App and found 2 certificates - one expired and one valid. I deleted the expired one and tried to run the App on my phone again, but the error persists.</p>
  
  <p><strong>Update 3</strong>: I've tried to revoke all my certificates in developer.apple.com, but there isn't a certificates management. Only 'Programs &amp; Add-ons' and 'Your Account' sections are available in the nav, which allows me to enrol into Apple Developer Program.</p>
  
  <p><strong>Update 4</strong>: I've also restarted my Xcode to no avail.</p>
  
  <p>The main problem is that I'm not sure why I cannot revoke and regenerate a new certificate.</p>
  
  <p>How can I solve this problem?</p>