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

[Bug]: Unable to install on iOS #1023

Closed
Shawn-sudo opened this issue Nov 11, 2022 · 17 comments
Closed

[Bug]: Unable to install on iOS #1023

Shawn-sudo opened this issue Nov 11, 2022 · 17 comments
Labels
Needs-Attention Reporter has responded. Review comment. O-Community

Comments

@Shawn-sudo
Copy link

Shawn-sudo commented Nov 11, 2022

What happened?

I tried to run pod install on my Flutter project with realm: ^0.7.0+rc, but it failed with an error message:

[!] Unable to install vendored xcframework `realm_dart` for Pod `realm`, because it contains both static and dynamic frameworks.Because of this error, I could not start debugging my project.

Removing realm: ^0.7.0+rc from pubspec.yaml, I can start my project well as expected.

Based on my observation, I'm guessing that it's a bug of this package, but I'm not sure.

Repro steps

  1. Add realm: ^0.7.0+rc to pubspec.yaml dependencies.
  2. Try to build / debug the Flutter project with the target set to an iOS device (Note that building a Flutter project calls pod install in its process)
  3. It says pod install failed

Version

Flutter 3.3.8 • channel stable • https://github.com/flutter/flutter.git Framework • revision 52b3dc25f6 (2 days ago) • 2022-11-09 12:09:26 +0800 Engine • revision 857bd6b74c Tools • Dart 2.18.4 • DevTools 2.15.0

What Realm SDK flavor are you using?

Local Database only

What type of application is this?

Flutter Application

Client OS and version

iOS 16.0

Code snippets

pubspec.yaml

dependencies:
  flutter:
    sdk: flutter
   ...
  realm: ^0.7.0+rc

Stacktrace of the exception/crash you're getting

No response

Relevant log output

I'm using arch -x86_64 pod install instead of pod install cause I'm using M1 Macbook (CocoaPods/CocoaPods#10220). It would return the same result of pod install on x86_64 based (intel) Macs.

shawn@Shawns-MacBook-Pro atrablechat % cd ios
shawn@Shawns-MacBook-Pro ios % arch -x86_64 pod install
Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
...
Analyzing dependencies
cloud_firestore: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_storage: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
Downloading dependencies
Installing BoringSSL-GRPC (0.0.24)
Installing FMDB (2.7.5)
Installing Firebase (10.0.0)
Installing FirebaseAppCheckInterop (10.1.0)
Installing FirebaseAuth (10.0.0)
Installing FirebaseAuthInterop (10.1.0)
Installing FirebaseCore (10.0.0)
Installing FirebaseCoreExtension (10.1.0)
Installing FirebaseCoreInternal (10.1.0)
Installing FirebaseFirestore (10.0.0)
Installing FirebaseInstallations (10.1.0)
Installing FirebaseMessaging (10.0.0)
Installing FirebaseStorage (10.0.0)
Installing Flutter (1.0.0)
Installing GTMSessionFetcher (2.3.0)
Installing GoogleDataTransport (9.2.0)
Installing GoogleUtilities (7.8.0)
Installing Libuv-gRPC (0.0.10)
Installing PromisesObjC (2.1.1)
Installing TOCropViewController (2.6.1)
Installing abseil (1.20211102.0)
Installing audio_session (0.0.1)
Installing camera_avfoundation (0.0.1)
Installing cloud_firestore (4.0.4)
Installing emoji_picker_flutter (0.0.1)
Installing eraser (0.0.1)
Installing ffmpeg-kit-ios-https (4.5.1)
Installing ffmpeg_kit_flutter (4.5.1)
Installing firebase_auth (4.1.1)
Installing firebase_core (2.1.1)
Installing firebase_messaging (14.0.4)
Installing firebase_storage (11.0.4)
Installing gRPC-C++ (1.44.0)
Installing gRPC-Core (1.44.0)
Installing image_cropper (0.0.4)
Installing image_picker_ios (0.0.1)
Installing leveldb-library (1.22.1)
Installing nanopb (2.30909.0)
Installing path_provider_ios (0.0.1)
Installing permission_handler_apple (9.0.4)
Installing realm (0.7.0+rc)
Installing record (0.0.1)
Installing share_plus (0.0.1)
Installing shared_preferences_ios (0.0.1)
Installing sign_in_with_apple (0.0.1)
Installing sqflite (0.0.2)
Installing uni_links (0.0.1)
Installing url_launcher_ios (0.0.1)
Installing video_player_avfoundation (0.0.1)
Generating Pods project
[!] Unable to install vendored xcframework `realm_dart` for Pod `realm`, because it contains both static and dynamic frameworks.

[!] Automatically assigning platform `iOS` with version `12.1` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
@blagoev
Copy link
Contributor

blagoev commented Nov 11, 2022

Hi,
It is not clear if you are using pod install for flutter run. Could you do a flutter clean and then flutter run and check if it is working.

@Pred05
Copy link

Pred05 commented Nov 11, 2022

Hi, the same for me. I tried to update CocoaPods, update the Xcode command line tools.
I did flutter clean, nothing works. And if I remove the dependency from the project, the run works fine.
(My Mac is up to date with Ventura)

@Shawn-sudo
Copy link
Author

Shawn-sudo commented Nov 11, 2022

@blagoev Hi, I forgot to mention about it in the first comment, but I ran flutter clean, flutter pub run realm generate --clean too. It didn't work tho 😿

@desistefanova
Copy link
Contributor

desistefanova commented Nov 12, 2022

Hi @Shawn-sudo ,
It is not clear from your post what exactly you have in your project and what commands you have run.
Could you please let us know whether you have the same problem with a new project?
Is it working if you run the following commands?

  • $ flutter create new_app
  • $ cd new_app
  • $ flutter pub add realm
  • $ cd ios
  • $ pod init
  • $ pod install
  • Then new_app/ios in Open XCode and run.

If you have an existing app probably you can try to clear ios folder and to recreate it:

  • $ cd app
  • $ rm -rf ios
    • You can also try the following:
      • $ sudo gem install cocoapods-deintegrate cocoapods-clean
      • $ pod deintegrate
      • $ pod cache clean --all
  • $ flutter pub add realm
  • $ flutter create . --platforms ios
  • $ cd ios
  • $ pod init (just in case it is missing)
  • $pod install

It is important the Realm package to be added before to init the Podfile.
Looking forward to your answer.

@Shawn-sudo
Copy link
Author

Hi @desistefanova
It didn't work ;/

Screenshot 2022-11-12 at 11 59 55 PM

I ran the app before adding realm: ^0.7.0+rc to pubspec.yaml, and it's currently displayed on the iOS simulator.
I added a new debug instance with realm: ^0.7.0+rc added, and it failed.

CocoaPod's Output
Launching lib/main.dart on iPhone 14 Plus in debug mode...
CocoaPods' output:
↳
      Preparing
    Analyzing dependencies
    Inspecting targets to integrate
      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
    Fetching external sources
    -> Fetching podspec for `Flutter` from `Flutter`
    -> Fetching podspec for `realm` from `.symlinks/plugins/realm/ios`
    Resolving dependencies of `Podfile`
      CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update
    Comparing resolved specification to the sandbox manifest
      A Flutter
      A realm
    Downloading dependencies
    -> Installing Flutter (1.0.0)
    -> Installing realm (0.7.0+rc)
     > Running prepare command
       $ /bin/bash -c  set -e source "/Users/shawn/StudioProjects/realm_flutter_testing/ios/Flutter/flutter_export_environment.sh" && cd "$FLUTTER_APPLICATION_PATH" && "$FLUTTER_ROOT/bin/flutter" pub run realm install --target-os-type ios --package-name realm
       Realm binaries for realm@0.7.0+rc already downloaded
       Realm install command finished.
      - Running pre install hooks
      - Running pre integrate hooks
    Generating Pods project
      - Creating Pods project
      - Installing files into Pods project
        - Adding source files
        - Adding frameworks
        - Adding libraries
        - Adding resources
        - Adding development pod helper files
        - Linking headers
      - Installing Pod Targets
        - Installing target `Flutter` iOS 11.0
        - Installing target `realm` iOS 8.0
    [!] Unable to install vendored xcframework `realm_dart` for Pod `realm`, because it contains both static and dynamic frameworks.
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:1182:in `block (2 levels) in validate_xcframeworks'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:1161:in `each'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:1161:in `block in validate_xcframeworks'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:1160:in `each_value'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:1160:in `validate_xcframeworks'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:67:in `block in install!'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:149:in `message'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:40:in `install!'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:115:in `block in install_pod_targets'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:112:in `map'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:112:in `install_pod_targets'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/single_pods_project_generator.rb:32:in `block in install_all_pod_targets'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:149:in `message'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/single_pods_project_generator.rb:31:in `install_all_pod_targets'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/single_pods_project_generator.rb:19:in `generate!'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:314:in `block in create_and_save_projects'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:64:in `section'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:309:in `create_and_save_projects'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:301:in `generate_pods_project'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:180:in `integrate'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:167:in `install!'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/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.11.3/lib/cocoapods/command.rb:52:in `run'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>'
    /usr/local/bin/pod:23:in `load'
    /usr/local/bin/pod:23:in `<main>'
Error output from CocoaPods:
↳
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
    [!] Automatically assigning platform `iOS` with version `11.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
Error running pod install
Error launching application on iPhone 14 Plus.
Exited

@nielsenko
Copy link
Contributor

nielsenko commented Nov 14, 2022

@Shawn-sudo & @Pred05

What version of pod are you using (run pod --version) and what is the output of flutter doctor -v on your machines?

@Shawn-sudo
Copy link
Author

Shawn-sudo commented Nov 14, 2022

Pod: 1.11.3

`flutter doctor -v`

[✓] Flutter (Channel stable, 3.3.8, on macOS 13.0.1 22A400 darwin-arm, locale en-US)
    • Flutter version 3.3.8 on channel stable at /Users/shawn/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 52b3dc25f6 (6 days ago), 2022-11-09 12:09:26 +0800
    • Engine revision 857bd6b74c
    • Dart version 2.18.4
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/shawn/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14B47b
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] VS Code (version 1.73.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.52.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 13.0.1 22A400 darwin-arm
    • Chrome (web)    • chrome • web-javascript • Google Chrome 107.0.5304.110

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
My macbook is M1 macbook (fyi)

@nielsenko
Copy link
Contributor

@Shawn-sudo As I expected you are running Ventura.

I cannot currently test with macOS 13.0.1 22A400 on darwin-arm, as MongoDB does not allow me to upgrade yet. Historically it has caused a lot of grief to update to a new macOS major versions, so they are playing it safe.

So, I'm going blind here. Anyway, could you try:

# Uninstall the local cocoapods gem
sudo gem uninstall cocoapods

# Reinstall cocoapods via Homebrew
brew install cocoapods

@nielsenko
Copy link
Contributor

@Shawn-sudo I setup a Mac Mini M1 with Ventura, and installing cocoapods via gem, and I have no issue.

The reason I suggested trying to install cocoapods via brew was this Stackoverflow thread: https://stackoverflow.com/questions/64901180/how-to-run-cocoapods-on-apple-silicon-m1?page=1&tab=scoredesc#tab-top

@nielsenko nielsenko added the Waiting-For-Reporter Waiting for more information from the reporter before we can proceed label Nov 15, 2022
@Pred05
Copy link

Pred05 commented Nov 20, 2022

Hi @nielsenko,

On my side I tried, and it doesn't work, and I'm able to build and run flutter app without the realm dependencies. It seems really linked to the transitive dependency "realm_dart".

I just tried with the release candidate 0.8.0 and still have the issue :

[!] Unable to install vendored xcframework realm_dart for Pod realm, because it contains both static and dynamic frameworks.

@nielsenko
Copy link
Contributor

@Pred05 Have you tried other plugin packages?

Also, what is the output of flutter doctor -v and which pod on your machine?

@Pred05
Copy link

Pred05 commented Nov 23, 2022

@nielsenko Ok fixed 👍

With flutter doctor -vI saw my version of CocoaPods to 1.11.2 but I made the update to 1.11.3 with brew install few days ago.

I just remove the old version and the symlink, linked the new one and now pod install works! Sorry for wasting your time...

For your info all the other packages work (I am migrating an existing app from sqflite to realm for the built in data synchronization)

Thanks for help.

@Shawn-sudo
Copy link
Author

Hi @Pred05, I'm still suffering :/
Could you share with me how you "removed the old version and the symlink" and "linked the new one"?

@github-actions github-actions bot added Needs-Attention Reporter has responded. Review comment. and removed Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Nov 24, 2022
@Shawn-sudo
Copy link
Author

@Pred05 Nvm I fixed it..
I'm kinda confused though. I reinstalled CocoaPods using homebrew and ran arch -x86_64 pod update in the ios folder, and now it works somehow.
Apparently, it's a bug in CocoaPods (CocoaPods/CocoaPods#10332).

@nielsenko
Copy link
Contributor

Now that you both are up and running again (@Shawn-sudo + @Pred05) I will close this issue.

@felix0324324
Copy link

When will support m1 simulator...?
Real device is fine but m1 simulator crash at
Realm(Configuration.local([]));

@nielsenko
Copy link
Contributor

@felix0324324 We do support that. Could I ask you to open a separate issue, and give some more context?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs-Attention Reporter has responded. Review comment. O-Community
Projects
None yet
Development

No branches or pull requests

6 participants