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

寵の児 提交于 2019-12-02 19:37:35
Mukesh

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.

Bhavsang Jam

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"

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

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"

  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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!