Integrate with

From @anaibol on Thu Feb 18 2016 18:12:01 GMT-0500 (EST)

Hi, I think it could be a good idea to have an integration with that provides an API.

Copied from original issue:

From @viktorbenei on Fri Feb 19 2016 04:09:20 GMT-0500 (EST)

I definitely agree! Hopefully someone can pick this up, based on other similar steps.

From @dagio on Mon Apr 25 2016 07:05:21 GMT-0400 (EDT)

I can work on a POC this week

From @viktorbenei on Mon Apr 25 2016 07:17:07 GMT-0400 (EDT)

Would be awesome! Thank you @dag-io - let me know when you start to work on it, and I’ll change the label of this ticket to “working on it” :wink:

From @dagio on Sat Apr 30 2016 21:03:41 GMT-0400 (EDT)

Hey @viktorbenei. I have a first version here : (the app source is here

Notes :

  • It’s compatible for iOS and Android (but I only checked iOS)
  • It creates a variable APPETIZE_APP_URL to be reused in others steps

So basically we need to generate an IPA for the simulator. A quick script will do but we probably need to handle it using the Xcode archiver step ?

Here are the 2 steps in a workflow :

    - script@1.1.0:
        - content: |-

            xcodebuild -showsdks

            echo "Schema is $BITRISE_SCHEME"
            echo "Workspace is $BITRISE_PROJECT_PATH"

            app_folder=`xcodebuild \
              -scheme $BITRISE_SCHEME \
              -workspace $BITRISE_PROJECT_PATH \
              -configuration Debug \
              -arch i386 \
              -sdk iphonesimulator9.3 \
              -showBuildSettings | grep -m 1 BUILT_PRODUCTS_DIR | grep -oEi "\/.*"`

            app_filename=`xcodebuild \
              -scheme $BITRISE_SCHEME \
              -workspace $BITRISE_PROJECT_PATH \
              -configuration Debug \
              -arch i386 \
              -sdk iphonesimulator9.3 \
              -showBuildSettings | grep -m 1 WRAPPER_NAME | grep -oEi "[a-zA-Z0-9]+\.app"`

            xcodebuild \
              -scheme $BITRISE_SCHEME \
              -workspace $BITRISE_PROJECT_PATH \
              -configuration Debug \
              -arch i386 \
              -sdk iphonesimulator9.3


            envman add --key BITRISE_SIMULATOR_IPA_PATH --value "$app_filepath"

            envman print
        - working_dir: "$BITRISE_SOURCE_DIR"
    - git::
        is_always_run: false
        - app_path: $BITRISE_SIMULATOR_IPA_PATH
        - platform: "ios"
        - appetize_token: "YOUR_TOKEN_GO_HERE"

From @viktorbenei on Sun May 01 2016 00:40:32 GMT-0400 (EDT)

Wow, thanks @dag-io ! We’ll review this tomorrow and see what the easiest way would be to extend the Archive step, to be able to generate Simulator apps instead of device apps.

From @viktorbenei on Tue May 03 2016 05:26:29 GMT-0400 (EDT)

Just a heads up, we’ll come back to this task a bit later, we just have a couple of other tasks we have to deal with first :blush:

From @jsierles on Tue May 10 2016 10:46:19 GMT-0400 (EDT)

For iOS, appetize builds require a zipped copy of the simulator build directory, not just an IPA.

From @dagio on Tue May 10 2016 11:22:08 GMT-0400 (EDT)

Yes. The step create the zip automagically for you.

On May 10, 2016, at 4:46 PM, Joshua Sierles wrote:

For iOS, appetize builds require a zipped copy of the simulator build directory, not just an IPA.

You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

From @jsierles on Tue May 10 2016 12:29:05 GMT-0400 (EDT)

I see - only issue there is it downloads third party php code to run that. Given we have a lot of the data we need to create the zip, we can probably do it directly in the step.

From @dagio on Tue May 10 2016 13:26:57 GMT-0400 (EDT)

Yes the step fetch a “binary”. I could have included it directly in the step but that’s more or less the same. It maybe takes 2 seconds more.

I don’t understand when you say you have a lot of data. Can you elaborate please ?

From @dagio on Tue May 10 2016 13:31:57 GMT-0400 (EDT)

By the way thanks @godrei for steps-xcode-archive 1.7.2 release :wink:
I will try to use the .app that you generate it the step

From @jsierles on Thu May 12 2016 09:33:37 GMT-0400 (EDT)

I have been trying the 1.7.2 version with this custom option "-destination 'platform=iOS Simulator,name=iPhone 6,OS=9.3', but it still appears not to be the right build type for appetize. Any luck?

From @dagio on Thu May 12 2016 09:43:25 GMT-0400 (EDT)

Try this : xcodebuild ... -arch i386 -sdk iphonesimulator9.3

From @jsierles on Thu May 12 2016 09:46:01 GMT-0400 (EDT)

I tried that before, but got You cannot archive for the iOS Simulator platform.

From @jsierles on Thu May 12 2016 09:53:53 GMT-0400 (EDT)

Instead of trying to modify the archive step, it seems to make sense to have a separate step for this type of build, independent of appetize, that simply builds the specified scheme for the simulator, provides a path to the directory and/or a zip file. I’ll take a stab at this based on your work here.

From @s4cha on Tue Sep 13 2016 09:49:59 GMT-0400 (EDT)

@jsierles Any news on generating a simulator build through bitrise?

From @jsierles on Wed Sep 14 2016 07:36:11 GMT-0400 (EDT)

I ended up abandoning this project as I no longer need it. The step mentioned above, however, should work.

Is there any progress on this? Another step to generate ios simulator build may be?

No progress on our side @mxpbitrise, but the script shared by @dag-io at Integrate with should work of course.