How to create valid .app or .zip archive for automating iOS with Appium?
The easiest way I've found to make this work is to:
- Build and run the app for the simulator in xcode.
- Go to Products in the left-hand nav in Xcode and control-click (right-click) on YourApp.app and Select Show In Finder. (This is the .app you want to use)
- If you want a .zip just control-click (right-click) on the app and Select "Compress YourApp.app"
- Build you project.
- Click on the organizer icon (top right).
- Click on the arrow next the "Derived Data" directory (something like ~/Library/Developer/Xcode/DerivedData/YouApp-ajsnkjasngjkans).
- Finder will open in the derived data directory, go to /Build/Products/Debug-iphonesimulator.
- There is, you found your .app file. Point appium to it and enjoy.
Also you van build app in terminal:
xcodebuild VALID_ARCHS="i386" -sdk iphonesimulator -configuration your_configuration -target your_target