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 report] App crash while running from xcode in ios` #1208

Closed
ketankonrad opened this issue Oct 22, 2024 · 4 comments · Fixed by #1209
Closed

[Bug report] App crash while running from xcode in ios` #1208

ketankonrad opened this issue Oct 22, 2024 · 4 comments · Fixed by #1209

Comments

@ketankonrad
Copy link

ketankonrad commented Oct 22, 2024

Version

3.5.1

Platforms

iOS

Device Model

iPhone XR

flutter info

flutter doctor -v
[✓] Flutter (Channel stable, 3.24.2, on macOS 14.0 23A344 darwin-arm64, locale en-US)
    • Flutter version 3.24.2 on channel stable at /Users/macbook/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4cf269e36d (7 weeks ago), 2024-09-03 14:30:00 -0700
    • Engine revision a6bd3f1de1
    • Dart version 3.5.2
    • DevTools version 2.37.2

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/macbook/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.15.2

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

[✓] Android Studio (version 2024.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
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

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

[✓] Connected device (5 available)
    • iPhoneXR’s (mobile)         • 0000XXXX-00XXXXXXXX79002E            • ios            • iOS 17.6.1 21G93
    • iPhone 15 Pro (mobile)          • 535B57DA-XXXX-XXXX-XXXX-XXXXX4ABD9B4 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-0
      (simulator)
    • macOS (desktop)                 • macos                                • darwin-arm64   • macOS 14.0 23A344 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad                • darwin         • macOS 14.0 23A344 darwin-arm64
    • Chrome (web)                    • chrome                               • web-javascript • Google Chrome 129.0.6668.101
    ! Error: Browsing on the local area network for iPhone 13 Mini V. Ensure the device is unlocked and attached with a cable or associated with the
      same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
    ! Error: Browsing on the local area network for iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local
      area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
    ! Error: Browsing on the local area network for Jignesh’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the
      same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
    ! Error: Browsing on the local area network for iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local
      area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.

• No issues found!

How to reproduce?

dyld[1985]: Symbol not found: OBJC_CLASS$_NSObject
Referenced from: <38432B0F-XXXX-XXXX-XXXX-46F1FE3B16DC> /private/var/containers/Bundle/Application/1D4FA73B-1796-4456-BE59-25A7DA1116FA/Runner.app/Runner
Expected in: <57EAA164-XXXX-XXXX-XXXX-7E5FFXXXXE4C> /private/var/containers/Bundle/Application/1D4FA73B-1796-4456-BE59-25A7DA1116FA/Runner.app/Frameworks/photo_manager.framework/photo_manager

Logs

dyld[1985]: Symbol not found: _OBJC_CLASS_$_NSObject
  Referenced from: <38432B0F-XXXX-XXXX-XXXX-46F1FXXXXXDC> /private/var/containers/Bundle/Application/1D4FA73B-1796-4456-BE59-25A7DA1116FA/Runner.app/Runner
  Expected in:     <57EAA164-XXXX-XXXX-XXXX-7E5FF5XXXXXC> /private/var/containers/Bundle/Application/1D4FA73B-1796-4456-BE59-25A7DA1116FA/Runner.app/Frameworks/photo_manager.framework/photo_manager

Example code (optional)

No response

Contact

No response

@AlexV525
Copy link
Member

Please consider upgrade your Xcode to 15.4.

@ketankonrad
Copy link
Author

@AlexV525 Can't we fix without updating xcode? Because my other projects are compiled against xcode version 15.0.1 (15A507)

@AlexV525
Copy link
Member

@AlexV525 Can't we fix without updating xcode? Because my other projects are compiled against xcode version 15.0.1 (15A507)

There should be no big difference between 15.x, only newer versions will contains some other fixes.

@AlexV525
Copy link
Member

I've debugged the cause of the undefined symbol, we can have a quick fix on this.

AlexV525 added a commit that referenced this issue Oct 22, 2024
To avoid crashes on specific Xcode versions, typically Xcode 15.0.x.

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

Successfully merging a pull request may close this issue.

2 participants