Visual Studio Ionic App Packaging

I have an Ionic app I've developed using Visual Studio on a Windows machine. I now want to package the app for iOS deployment and I can't get the remote build on the Mac to work to save my life. I've wasted 2.5 days on this problem.


My build.json in my app is:


  "ios": {
    "release": {
      "developmentTeam": "Team ID ON Developer Apple portal",
      "codeSignIdentity": "iOS Distribution",
      "packageType": "app-store",
      "provisioningProfile": "UUID FROM DOWNLOADED PROVISIONING PROFILE",
      "buildFlag": [
        "EMBEDDED_CONTENT_CONTAINS_SWIFT = YES",
        "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO",
        "LD_RUNPATH_SEARCH_PATHS = \"@executable_path/Frameworks\""
      ]
    }
  }


I created an iOS distribution certificate using the latest XCODE on my MacInCloud:

http://eventhyped.servehttp.com/iOSCapturesForForums/certificate_xcode_capture.jpg

Here is the certificate in the developer portal:

http://eventhyped.servehttp.com/iOSCapturesForForums/certificate_capture.jpg

And then in the developer portal, I created Provisioning Profile, then downloaded it to my PC, opened it, extracted the Provisioning Profile UUID and put it into my build.json:

http://eventhyped.servehttp.com/iOSCapturesForForums/provisioning_profile_capture.jpg

So then I do a remote build using my Mac in Cloud and I can watch the build take place but then by the end of the long build process, I eventually get this error:


Code Signing Error No certificate for team 'Team ID ON Developer Apple portal' matching 'iOS Distribution' found: Select a different signing certificate for CODE_SIGN_IDENTITY, a team that matches your selected certificate, or switch to automatic provisioning. I've tried iPhone Distribution, iPhone Developer, iOS Developer. I've tried removing the provisioning profile and let it automatically sign but each time it gave a different error. Sometimes a "conflicting profile", sometimes a "change to iPhone Developer", but can't get it to succeed.


What am I doing wrong? Any ideas? I'm at my wit's end!

>I've tried iPhone Distribution, iPhone Developer, iOS Developer.


Did you try In House or Ad-hoc?

Visual Studio Ionic App Packaging
 
 
Q