admin管理员组

文章数量:1391975

We are generating ipA from command line using below command:

  1. Connect iPhone with Mac

  2. run below command

    ti build  --platform iOS --target device
    
  3. Select dev certificate and Pro. profile

  4. App successfully installs on iPhone and runs well - All good

  5. Copy the .app file from the path build/iphone/build/Products/Debug-iphoneos/MyMobileApp.app and convert it to iPA file (by placing MyMobileApp.app inside a folder named Payload and zip it and convert the file ext to ipa file -- MyMobileApp.ipa

  6. We checked again by installing MyMobileApp.ipa into iPhone, it works well

  7. Now we wish to publish this MyMobileApp.ipa after resign it with dist certificate/profile but when we try to upload it to TestFlight, its not allowing to upload and gives below error:

    Invalid bundle structure. The “MyMobileApp.app/__preview.dylib” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: ;

Note - We cant use Xcode to export iPA as it gives some other issue so we want to generate iPA from ti command line.

How can we generate a publishable iPA from ti command line?

Complete error log

httpBody: {
  "errors" : [ {
    "id" : "7cb398bf-8dc3-4fca-b743-1ece7e3b415b",
    "status" : "409",
    "code" : "STATE_ERROR.VALIDATION_ERROR",
    "title" : "Validation failed",
    "detail" : "Invalid bundle structure. The “SMyMobileApp.app/__preview.dylib” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: ;
  }, {
    "id" : "d2b50925-00a8-4900-bcfc-eef06ad7e7d8",
    "status" : "409",
    "code" : "STATE_ERROR.VALIDATION_ERROR",
    "title" : "Validation failed",
    "detail" : "Invalid bundle structure. The MyMobileApp.app/Send IT Back.debug.dylib” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: ;
  } ]

本文标签: