Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Problem during IOS simulator launch. #12

@EuHigorBarbosa

Description

@EuHigorBarbosa

I've tried to launch on IOS simulator the record_mp3 package on a flutter original exemple with no modifications. Just put the package on pubspec.yml...and run. But then it show an error:

Launching lib/main.dart on iPhone 8 in debug mode...
lib/main.dart:1
Xcode build done. 13,6s
Failed to build iOS app
Error output from Xcode build:

** BUILD FAILED **
Xcode's output:

/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/record_mp3-3.0.0/ios/Classes/SwiftRecordMp3Plugin.swift:22:9: warning: result of 'SwiftRecordMp3Plugin' initializer is unused
SwiftRecordMp3Plugin(registrar: registrar)
^ ~~~~~~~~~~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/record_mp3-3.0.0/ios/Classes/SwiftRecordMp3Plugin.swift:22:9: warning: result of 'SwiftRecordMp3Plugin' initializer is unused
SwiftRecordMp3Plugin(registrar: registrar)
^ ~~~~~~~~~~~~~~~~~~~~~~
ld: in /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/record_mp3-3.0.0/ios/Classes/Fat-Lame/lib/libmp3lame.a(lame.o), building for iOS Simulator, but linking in object file built for iOS, for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: no rule to process file '/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/record_mp3-3.0.0/ios/Classes/Fat-Lame/lib/libmp3lame.a' of type 'archive.ar' for architecture 'arm64' (in target 'record_mp3' from project 'Pods')
warning: no rule to process file '/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/record_mp3-3.0.0/ios/Classes/Fat-Lame/lib/libmp3lame.a' of type 'archive.ar' for architecture 'x86_64' (in target 'record_mp3' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone 8.
Exited (sigterm)

Here is my pubspec.yaml =======
name: test_recorder_mp3
description: A new Flutter project.

publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 1.0.0+1

environment:
sdk: ">=2.15.1 <3.0.0"

dependencies:
flutter:
sdk: flutter
record_mp3: ^3.0.0

cupertino_icons: ^1.0.2

dev_dependencies:
flutter_test:
sdk: flutter

flutter_lints: ^1.0.0

flutter:

uses-material-design: true

Here is some information about my system:

Simullator:
Version 12.4 (940.20)
SimulatorKit 597.13.0.1
CoreSimulator 732.18.6
Iphone 8 - IOS 14.4

Here my flutter doctor:
[✓] Flutter (Channel stable, 2.8.1, on Mac OS X 10.15.7 19H1615 darwin-x64, locale pt-BR)
⢿[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[!] Xcode - develop for iOS and macOS (Xcode 12.4)
! Flutter recommends a minimum Xcode version of 13.0.0.
Download the latest version or update via the Mac App Store.
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.65.2)
[✓] Connected device (3 available)

HOW CAN I SOLVE THIS?

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