Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem during IOS simulator launch. #12

Open
EuHigorBarbosa opened this issue Mar 28, 2022 · 2 comments
Open

Problem during IOS simulator launch. #12

EuHigorBarbosa opened this issue Mar 28, 2022 · 2 comments

Comments

@EuHigorBarbosa
Copy link

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?

@pratik1311
Copy link

@EuHigorBarbosa Did you get any solution ?

@renik8484
Copy link

renik8484 commented May 19, 2022

@EuHigorBarbosa @pratik1311
Screenshot 2022-04-28 at 11.35.00 AM.png

Step : 1 Go to Xcode and Select pods from left menu

Step : 2 Goto record_mp3 and add arm64 to excluded architecture as shown in image.

Now you can successfully run the app

Note : please check this settings again if you are getting same error again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants