Skip to content

[Bug] Build Error on iOS #380

@litt1e-p

Description

@litt1e-p

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Errors occured when run xcode build:

 ld: warning: ignoring file /Users/mac/dev/flutter/.pub-cache/hosted/pub.flutter-io.cn/metadata_god-0.3.2/ios/Libs/librust.a, building for iOS Simulator-x86_64 but attempting to link with file built for
    iOS-arm64
    ld: warning: Could not find or use auto-linked framework 'rust_crate'
    Undefined symbols for architecture x86_64:
      "_free_WireSyncReturnStruct", referenced from:
          _dummy_method_to_enforce_bundling in MetadataGodPlugin.o
      "_new_box_autoadd_f64_0", referenced from:
          _dummy_method_to_enforce_bundling in MetadataGodPlugin.o
      "_new_box_autoadd_i32_0", referenced from:
          _dummy_method_to_enforce_bundling in MetadataGodPlugin.o
      "_new_box_autoadd_image_0", referenced from:
          _dummy_method_to_enforce_bundling in MetadataGodPlugin.o
      "_new_box_autoadd_metadata_0", referenced from:
          _dummy_method_to_enforce_bundling in MetadataGodPlugin.o
      "_new_box_autoadd_u16_0", referenced from:
          _dummy_method_to_enforce_bundling in MetadataGodPlugin.o
      "_new_box_autoadd_u64_0", referenced from:
          _dummy_method_to_enforce_bundling in MetadataGodPlugin.o
      "_new_uint_8_list_0", referenced from:
          _dummy_method_to_enforce_bundling in MetadataGodPlugin.o
      "_store_dart_post_cobject", referenced from:
          _dummy_method_to_enforce_bundling in MetadataGodPlugin.o
      "_wire_ping", referenced from:
          _dummy_method_to_enforce_bundling in MetadataGodPlugin.o
      "_wire_read_metadata", referenced from:
          _dummy_method_to_enforce_bundling in MetadataGodPlugin.o
      "_wire_write_metadata", referenced from:
          _dummy_method_to_enforce_bundling in MetadataGodPlugin.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

Expected Behavior

build without any error

Steps To Reproduce

  1. env: macOS 13.0, Xcode 14, iOS 14.0
  2. config: Flutter (Channel stable, 3.3.10, on macOS 13.0 22A380 darwin-arm, locale zh-Hans-CN), Dart SDK version: 2.18.6 (stable) (Tue Dec 13 21:15:14 2022 +0000) on "macos_arm64"
  3. flutter pub get && flutter run
  4. error occured as above

Spotube Version

2.6.0

Operating System

Mac OS

Linux Distribution (if applicable)

No response

Operating System Version

iOS 14.0

Installation Source

Github Release (Binary)

Additional information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions