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

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.

enter image description here


I used below command and its working for me.

ditto -ck --sequesterRsrc --keepParent /Users/mac/Library/Developer/Xcode/DerivedData/yourapp.../Build/Products/Debug-iphonesimulator/yourapp.app  /Users/mac/Desktop/yourapp.zip

You can use your destination path instead of /Users/mac/Desktop/yourapp.zip.


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"