How to generate iPhone simulator build or .zip file for submit in Facebook for review in iOS

前端 未结 7 570
慢半拍i
慢半拍i 2021-02-01 08:03

I submit my_app.ipa file to Facebook but its rejected by Facebook. And send me this message \"Notes from our review team iPhone Can you please resubmit for review providing a si

相关标签:
7条回答
  • 2021-02-01 08:32

    You don't need to do any of this strange ditto stuff.

    You can simply zip the app up and upload it. I've had several apps approved this way.

    App is usually located:
    /Users/home/Library/Developer/Xcode/DerivedData/yourapp.../Build/Products/Debug-iphonesimulator/yourapp.app

    0 讨论(0)
  • 2021-02-01 08:39
    1. Step: Run App in Simulator Run your app in your Xcode iPhone 5 simulator. This automatically creates a simulator build in Xcode's DerivedData cache.

    2. Step: ZIP Simulator Build Zip the simulator build via the following command:

    ditto -ck --sequesterRsrc --keepParent ls -1 -d -t ~/Library/Developer/Xcode/DerivedData/*/Build/Products/*-iphonesimulator/*.app | head -n 1 path/to/YourApp.zip

    1. Step: Verify Build You can verify the simulator build by using the ios-sim utility Command-line App Launcher for Simulator. Once installed run:

    ios-sim launch /path/to/your-app.app

    0 讨论(0)
  • 2021-02-01 08:41
    1. Based on Facebook developer documentation, you just need the command below (remember to change your destination path).

      ditto -ck --sequesterRsrc --keepParent `ls -1 -d -t ~/Library/Developer/Xcode/DerivedData/*/Build/Products/*-iphonesimulator/*.app | head -n 1` path/to/YourApp.zip
      

    1. To verify your build, install ios-sim package and run the command below (d is devicetypeid).

      ios-sim launch /path/to/your-app.app -d iPhone-X
      
    0 讨论(0)
  • 2021-02-01 08:42

    for those of you getting the error ""ditto: Can't archive multiple sources":

    use --keepParent with two dashes in front of it

    ditto -ck --sequesterRsrc —-keepParent “source" "destination"
    
    0 讨论(0)
  • 2021-02-01 08:42

    Use below command. It will work. Change below path for your app file.

    ditto -ck --sequesterRsrc --keepParent '/some/long/path/to/my appname.app' /Desktop/outputfile.zip

    to find your app file path on "/Users/home/Library/Developer/Xcode/DerivedData/yourapp.../Build/Products/Debug-iphonesimulator/yourapp.app"

    0 讨论(0)
  • 2021-02-01 08:48

    In my case ,i use the below command to build zip file ditto -ck --sequesterRsrc —-keepParent “source" "destination"

    where source is /Users/home/Library/Developer/Xcode/DerivedData/yourapp.../Build/Products/Debug-iphonesimulator/yourapp.app

    and destination is where you save the .zip file.

    0 讨论(0)
提交回复
热议问题