mikeperri / flutter_sequencer

A Flutter plugin for music sequencing.
Other
90 stars 38 forks source link

how to run on simulator if my mac apple silicon? #20

Open Kizat opened 2 years ago

Kizat commented 2 years ago
Launching lib/main.dart on iPhone 12 Pro Max in debug mode...
Warning: Missing build name (CFBundleShortVersionString).
Warning: Missing build number (CFBundleVersion).
Action Required: You must set a build name and number in the pubspec.yaml file version field before submitting to the App Store.
CocoaPods' output:
↳
      Preparing
    Analyzing dependencies
    Inspecting targets to integrate
      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
    Finding Podfile changes
      - Flutter
      - flutter_sequencer
    Fetching external sources
    -> Fetching podspec for `Flutter` from `Flutter`
    -> Fetching podspec for `flutter_sequencer` from `.symlinks/plugins/flutter_sequencer/ios`
    Resolving dependencies of `Podfile`
      CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update
    Comparing resolved specification to the sandbox manifest
      A Flutter
      A flutter_sequencer
    Downloading dependencies
    -> Installing Flutter (1.0.0)
    -> Installing flutter_sequencer (0.0.1)
     > Running prepare command
       $ /bin/bash -c  set -e ./prepare.sh
       Command line invocation:
           /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project sfizz.xcodeproj -scheme ALL_BUILD -xcconfig ../../../overrides.xcconfig -configuration Release -destination generic/platform=iOS -destination "generic/platform=iOS Simulator"
       User defaults from command line:
           IDEPackageSupportUseBuiltinSCM = YES
       Build settings from configuration file '../../../overrides.xcconfig':
           CLANG_X86_VECTOR_INSTRUCTIONS = avx
    [!] /bin/bash -c
    set -e
    ./prepare.sh
    Command line invocation:
        /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project sfizz.xcodeproj -scheme ALL_BUILD -xcconfig ../../../overrides.xcconfig -configuration Release -destination generic/platform=iOS -destination "generic/platform=iOS Simulator"
    User defaults from command line:
        IDEPackageSupportUseBuiltinSCM = YES
    Build settings from configuration file '../../../overrides.xcconfig':
        CLANG_X86_VECTOR_INSTRUCTIONS = avx
    ./prepare.sh:32: command not found: cmake
    xcodebuild: error: 'sfizz.xcodeproj' does not exist.
    ./prepare.sh:53: no matches found: **/Release-iphoneos/*.a
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/executable.rb:73:in `execute_command'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/executable.rb:27:in `block in executable'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/pod_source_preparer.rb:66:in `block (2 levels) in run_prepare_command'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/pod_source_preparer.rb:60:in `chdir'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/pod_source_preparer.rb:60:in `block in run_prepare_command'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/pod_source_preparer.rb:59:in `run_prepare_command'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/pod_source_preparer.rb:37:in `prepare!'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/pod_source_installer.rb:70:in `install!'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:561:in `install_source_of_pod'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:512:in `block (2 levels) in install_pod_sources'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:86:in `titled_section'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:511:in `block in install_pod_sources'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:494:in `each'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:494:in `install_pod_sources'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:253:in `block in download_dependencies'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:252:in `download_dependencies'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:161:in `install!'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in `run'
    /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'
    /usr/local/bin/pod:23:in `load'
    /usr/local/bin/pod:23:in `<main>'
Error output from CocoaPods:
↳
       ./prepare.sh:32: command not found: cmake
       xcodebuild: error: 'sfizz.xcodeproj' does not exist.
       ./prepare.sh:53: no matches found: **/Release-iphoneos/*.a
Error running pod install
Error launching application on iPhone 12 Pro Max.
Exited (sigterm)
yasinarik commented 2 years ago

My MacBook has an Intel CPU. (2019 MB Pro) Running on macOS Monterey, Flutter 2.10.1, iOS Simulator && iPhone 8

I am getting a similar error too:

[!] /bin/bash -c 
set -e
./prepare.sh

Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project sfizz.xcodeproj -scheme ALL_BUILD -xcconfig ../../../overrides.xcconfig -configuration Release -destination generic/platform=iOS -destination "generic/platform=iOS Simulator"

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from configuration file '../../../overrides.xcconfig':
    CLANG_X86_VECTOR_INSTRUCTIONS = avx

./prepare.sh:32: command not found: cmake
xcodebuild: error: 'sfizz.xcodeproj' does not exist.
./prepare.sh:53: no matches found: **/Release-iphoneos/*.a
nipunasudha commented 2 years ago

Any solution to this?

nipunasudha commented 2 years ago

My MacBook has an Intel CPU. (2019 MB Pro) Running on macOS Monterey, Flutter 2.10.1, iOS Simulator && iPhone 8 ./prepare.sh:32: command not found: cmake

try brew install cmake

QtMonkey commented 2 years ago

I am on a Mac with ARM processor. I've tried install cmake but got the message : Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!