Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR ITMS-90161 when trying to upload an app built with Visual Studio for Apache Cordova

We just started creating cross platform mobile apps using "Visual Studio Tools for Apache Cordova".

I followed the procedures described in Install Tools to Build for iOS and To run your app on an iOS device. Everything works nicely, the app gets deployed on my USB attached iPhone and runs as expected.

I then tried to upload the app to iTunes, to provide the app via TestFlight to testers and to generally see how app-submitting works:

  1. Build the iOS app as "Release" in VS: it builds and deploys to the iPhone nicely
  2. On the Mac: Start Application Loader, click on "Deliver your App" and navigate to "...remote-builds/builds/"xxx-buildnmb"/cordovaApp/plattforms/iOS/build/device/APPNAME.ipa"
  3. Several checks run OK ("verifying assets, etc.), but it then stops with the error

    ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle xxx.yyyyyy.zzzz [Payload/xxx.yyyyyy.zzzz.app] is invalid. [Missing code-signing certificate.] For more information, visit the iOS Developer Portal."

  4. I then discovered the Xcode Project in ".taco_home/remote-builds/taco-remote/builds/<build-number>​/cordovaApp/platform‌​s/ios/" and used Xcode to define the code signing identities in "Build Settings" and the Team information in "General", created the archive via Product-->Archive and submitted it in the Organizer - Archives. And voila it worked!

My questions:

  1. Do I have to use Xcode to submit?
  2. If not, what might I be missing in a) regard to building and signing apps with vs-mda-remote, and b) submitting it with Application Loader?
  3. What are Microsoft's plans in regard to providing access the build settings from within Visual Studio (similar to the ones in Xcode)?

Thanks a lot for any pointers in the right direction.

Thomas

like image 720
TOS Avatar asked Jan 23 '15 16:01

TOS


1 Answers

You need to use distribution provisioning profile to sign the package and apps are published to the App Store by using the iTunes Connect website along with the Xcode Archive Tool, which is included with the iOS SDK.

like image 122
Abhishek - MSFT Avatar answered Nov 01 '22 13:11

Abhishek - MSFT