Appium setup for iOS - prebuilt sample app issue ( UICatalog.app.zip need to be updated )

Hi All,

I tried setup for iOS as per instructions http://appium.io/slate/en/tutorial/ios.html?ruby#prebuilt-ios-sample-app and downloaded “UICatalog.app.zip”

In Mac , I double clicked to unzip it to “UICatalog.app.zip.cpgz”

but this doesn’t work at all.

I’m not sure which step am I doing it wrong here ? I could able to do setup for android with sample apk file though.

Thanks in advance.

Regards,
Vikram

If you got something like “UICatalog.app.zip.cpgz”, then you are doing something wrong to unzip the application.
You are infact creating another archive around the already archived file. Just unzip it using any unzip tool and you should be able to get the “.app” file from it.

Hi Pratyush,

There is some problem with sample app mentioned in support article.

Ideally just double clicking on zip file should unzip it on Mac.

But only with this file it’s now working , I tried with another xxx.app.zip and it worked fine.

Someone needs to update UICatalog.app.zip file

Thanks anyway.

Regards,
Vikrma

Is it? I never tried automating the sample app, so no idea. Anyway, glad to be of help.

UICatalog.app.zip moved and was updated. It should work now.

1 Like

@bootstraponline

New build is not working as well.

I’ve downloaded UICatalog6.1.app.zip ( from last post ) , double clicked it and got UICatalog6.1.app.zip.cpgz

can you please try again on your end as well ?

Thanks,
Vikram

Just to conclude and update “workaround” for new comers like me

  1. clone appium github repo to your machine
  2. follow instructions as per http://appium.io/slate/en/tutorial/ios.html?ruby#introduction15 “Compiling the iOS sample app”
  3. copy and use “UICatalog.app”
  4. don’t forget to update local repo in case you’re compiling this app and compilation fails.

Best Regards,
Vikram

According to this webpage, the cpgz problem is most likely a corrupt download. git clone is a good work around.

To update on this answer , the step does’t work anymore.

New steps as below

  1. download zip from https://github.com/appium/sample-code/blob/ff60377dff03a39d8bb4281ed85df8b8f751240f/sample-code/apps/UICatalog.zip
  2. Unzip and open project in Xcode
  3. build new UICatalog.app file

“It’s probably not a signed copy for submission but it’s good enough to give to somebody else for testing.”

Hi Vikram,UIcatalog works finenow …thanks a lot!..Do you have the code in swift too?

Follow the steps in this video to build UICatalog app the right way using Xcode and to get location of the UICatalog.app path

https://www.youtube.com/watch?v=7Aaxcivx120

GitHub link for UICatalog app - https://github.com/appium/ios-uicatalog