问题
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 simulator build of your iOS app, and not an .ipa file? I'm reviewing your submission in an iOS simulator that needs your app to be built following these instructions: (.zip) https://developers.facebook.com/docs/ios/creating-ios-simulator-build-for-review" But i was enable to create .zip file of simulator build. and i tried below steps also
Step 1: open finder and press option+ shift+g
Step 2: paste "~/Library/Developer/Xcode/DerivedData"
Step 3: select my_app-jkfksdfhskdhfksdh some this like this folder
Step 4: my_app-jkfksdfhskdhfksdh >>Build >>Products>>Debug-iphonesimulator
Step 5: I see 2 file one is my_app(icon like rounder and 1 cross line ) and 2nd file is my_app.app.dsym
回答1:
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.
回答2:
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.
回答3:
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"
回答4:
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
回答5:
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"
回答6:
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
- 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
来源:https://stackoverflow.com/questions/31933082/how-to-generate-iphone-simulator-build-or-zip-file-for-submit-in-facebook-for-r