Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Flutter iOS post-clone script does not build with right XCode version #24

Description

@alexli1st

The appcenter-post-clone script for Flutter iOS build starts the build right away after cloning Flutter SDK and running flutter doctor, before AppCenter runs the script that sets the XCode path based on user's build configuration. As a result, flutter is always building against the default XCode version instead of user's selected XCode version.

One way that fixed the issue for me is to remove the line "flutter build iOS --release --no-codesign" from the appcenter-post-clone.sh script and add a appcenter-pre-build.sh script to include the following:

#!/usr/bin/env bash
set -e
set -x
cd ..
export PATH=pwd/flutter/bin:$PATH
flutter build ios --release --no-codesign

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions