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
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
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.
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
ios-sim launch /path/to/your-app.app
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
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
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"
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"
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.