Skip to content

Can't build for iOS - works fine on Android #10

Description

@cdavidyoung

Describe the bug
Severity Code Description Project File Line Suppression State
Error The command "/../../../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-stdlib-tool --copy --verbose --scan-executable 'bin/iPhone/Debug/device-builds/iphone13.3-15.5/BLEClientiOS.app/' --scan-folder 'bin/iPhone/Debug/device-builds/iphone13.3-15.5/BLEClientiOS.app/Frameworks/' --scan-folder 'bin/iPhone/Debug/device-builds/iphone13.3-15.5/BLEClientiOS.app/PlugIns/' --platform 'iphoneos' --toolchain '/../../../../../Toolchains/XcodeDefault.xctoolchain/' --destination 'bin/iPhone/Debug/device-builds/iphone13.3-15.5/BLEClientiOS.app/Frameworks/' --resource-destination 'bin/iPhone/Debug/device-builds/iphone13.3-15.5/BLEClientiOS.app/' --resource-library libswiftRemoteMirror.dylib --unsigned-destination 'obj/iPhone/Debug/device-builds/iphone13.3-15.5/SwiftSupport' --strip-bitcode --strip-bitcode-tool '/../../../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip' --emit-dependency-info 'obj/iPhone/Debug/device-builds/iphone13.3-15.5/SwiftStdLibToolInputDependencies.dep' --source-libraries '/../../../../../Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphoneos'" exited with code 127. BLE.Client.iOS

To Reproduce
Steps to reproduce the behavior:

  1. Add the nuget to solution

  2. Test with a simple mp3 conversion - this works fine on Android. It gives above error when try to build for iOS.
    namespace BLE.Client.ViewModels
    {
    public class FFmpegHelper
    {
    public FFmpegHelper()
    {
    }

    public static string toMp3(string file)
    {
    string mp3File = $"{file}.mp3";
    if (File.Exists(mp3File))
    File.Delete(mp3File);
    FFmpegConfig.IgnoreSignal(24);
    // int rc = FFmpeg.Execute($"-i {file} {mp3File}");
    int rc = FFmpeg.Execute($"-fflags +discardcorrupt -i {file} -vn -ar 44100 -ac 2 -b:a 192k {mp3File}");
    if (rc == 0)
    return mp3File;
    else
    return string.Empty;
    }
    }
    }

Expected behavior
I should not get this error which prevents the app from being deployed to iPhone 12.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 11 Home
  • Visual Studio 2022
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: iPhone 12 Pro
  • OS: iOS 15.5
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions