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

dyld[84707]: missing symbol called #2422

Open
NicolasKim opened this issue Nov 20, 2024 · 4 comments
Open

dyld[84707]: missing symbol called #2422

NicolasKim opened this issue Nov 20, 2024 · 4 comments

Comments

@NicolasKim
Copy link

NicolasKim commented Nov 20, 2024

Platform

Dart

Obfuscation

Disabled

Debug Info

Disabled

Doctor

[✓] Flutter (Channel unknown, 3.0.5, on macOS 14.6.1 23G93 darwin-arm (Rosetta), locale zh-Hans-CN)
• Flutter version 3.0.5 at /Users/dreamtracer/fvm/versions/3.0.5
• Upstream repository unknown
• Framework revision f1875d570e (2 years, 4 months ago), 2022-07-13 11:24:16 -0700
• Engine revision e85ea0e79c
• Dart version 2.17.6
• DevTools version 2.12.2
• Pub download mirror https://apppub.fuyoukache.com
• Flutter download mirror https://storage.flutter-io.cn

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/dreamtracer/Library/Android/sdk
• Platform android-35, build-tools 34.0.0
• Java binary at: /Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home/bin/java
• Java version Java(TM) SE Runtime Environment 18.9 (build 11.0.23+7-LTS-222)
✗ Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.13.0

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

[!] Android Studio (version 2023.1)
• 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
✗ Unable to find bundled Java version.
• Try updating or re-installing Android Studio.

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.4)
• IntelliJ at /Applications/IntelliJ IDEA.app
• 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

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

Version

8.9.0

Steps to Reproduce

  1. Use 'flutter build ios-framework' build all frameworks
  2. Make cocoapods pod
Pod::Spec.new do |s|
  s.swift_version         = '5.0'
  s.name                  = "xxxxx"
  s.version               = '1.0'
  s.summary               = 'xxxxx'
  s.description           = 'xxxxx'
  s.homepage              = 'xxxxx'
  s.license               = { :type => 'BSD' }
  s.author                = { 'Dreamtracer' => 'http://dreamtracer.top' }
  s.ios.deployment_target = '13.0'
  s.pod_target_xcconfig = {
    'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64 x86_64',
    'OTHER_LDFLAGS' => ['$(inherited)','-ld_classic'],
    'ENABLE_BITCODE' => 'NO'
  }
  s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64 x86_64' }
  s.vendored_frameworks  = [
    "App.xcframework", 
    "Flutter/Flutter.xcframework", 
    "FlutterPluginRegistrant.xcframework",
    'sentry_flutter.xcframework',
    'all other flutter plugin xcframeworks'
  ]

  s.dependency 'Sentry/HybridSDK'
  .
  .
  .
end
  1. add dependency to hostApp's Podfile
  2. When 'SentryFlutter.init' invoked in flutter then 'missing symbol called' error occured.

Expected Result

No 'missing symbol called' error

Actual Result

'dyld[84707]: missing symbol called' printed in xcode console

Image

When I delete code below, error disappear.
Image

Are you willing to submit a PR?

None

@buenaflor
Copy link
Contributor

hey any specific reason why you are manually creating the pods etc?

installing the flutter dependency should do that automatically in an existing flutter project

@buenaflor buenaflor moved this from Needs Discussion to Needs More Information in Mobile & Cross Platform SDK Nov 21, 2024
@buenaflor buenaflor moved this to Waiting for: Community in GitHub Issues with 👀 3 Nov 21, 2024
@NicolasKim
Copy link
Author

NicolasKim commented Dec 2, 2024

hey any specific reason why you are manually creating the pods etc?

installing the flutter dependency should do that automatically in an existing flutter project

Our project is not the pure flutter project, and not all of our team members are familiar to flutter knowledge. These people they don't need to install flutter development toolkit, so we pack all flutter thing into a pod.

@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 3 Dec 2, 2024
@buenaflor
Copy link
Contributor

do you know what the issue might be since the error goes away when removing replay code on the cocoa plugin @vaind

@vaind
Copy link
Collaborator

vaind commented Dec 4, 2024

That code is part of the Cocoa SDK (I'm not sure how it's structured internally though).

You're saying you're packaging manually. From what I can see you have not defined a version of the cocoa SDK to include with your app. In such a manual setup, you must ensure that when you pick up a new version of the Sentry Flutter SDK, you also adjust the dependency on the native SDK. See https://github.com/getsentry/sentry-dart/blob/8.11.0-beta.2/flutter/ios/sentry_flutter.podspec#L19 for the latest v8.11.0-beta2 of the FLutter SDK

@vaind vaind removed the bug label Dec 4, 2024
@buenaflor buenaflor moved this to Waiting for: Community in GitHub Issues with 👀 3 Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Community
Status: Needs More Information
Development

No branches or pull requests

4 participants