Skip to content

Compile command fails when Xcode app has different name #14

@MarkBorazio

Description

@MarkBorazio

I have multiple versions of Xcode installed on my machine.
They are named Xcode-16.4.0.app and Xcode-26.0.1.app.

When I run the compile command, it fails. (e.g.: ./main.sh compile -p ios -l 'ass ffmpeg')
This is due to an issue with meson, as the meson crossfiles hardcode the path to Xcode.

For example, in arm64-ios.meson we have lines like this:

c_args = ['-arch', 'arm64', '-miphoneos-version-min=9.0', '-Os', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk']

A solution would be to get the developer directory using xcode-select -p. However I have never used meson before so I am not sure how to make that work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions