Baseflow / Baseflow/flutter-geocoding

[Bug]: App crashes on iOS devices having iOS version lower than 26.x

Đang mở
#287 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Dart
Star
153
Fork
92
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Please check the following before submitting a new issue.

- [x] I have searched the [existing issues](https://github.com/baseflow/flutter-geocoding/issues).
- [x] I have carefully [read the documentation](https://github.com/Baseflow/flutter-geocoding/blob/main/geocoding/README.md) and verified I have added the required platform specific configuration.

### Please select affected platform(s)

- [ ] Android
- [x] iOS

### Steps to reproduce

- Install `geocoding` in a Flutter app
- Build the iOS app with recent Xcode (Xcode 26.0.1)
- Run the app on an affected real iOS device
- App crashes immediately before showing any UI
- Xcode logs show dyld failure referencing _LocationEssentials.framework

### Expected results

- The app should launch normally on all supported iOS devices
- The `geocoding_ios.framework` should not link to private Apple frameworks
- The plugin should be compiled against public SDKs and not cause dyld loader failures
- No crash due to missing system frameworks

### Actual results

- The app crashes instantly on affected iOS devices
- Flutter does not start; crash happens before main()
- Crash trace from dyld indicates missing private framework:
`Library not loaded: /System/Library/Frameworks/_LocationEssentials.framework/_LocationEssentials`

### Code sample

Code sample

```dart
The app crashes on startup even before geocoding code execution.
```

### Screenshots or video

Screenshots or video demonstration

[Upload media here]

### Version

4.0.0

### Flutter Doctor output

Doctor output

```console
[✓] Flutter (Channel stable, 3.38.1, on macOS 26.0.1 25A362 darwin-x64, locale en-IN) [1,954ms]
• Flutter version 3.38.1 on channel stable at /Users/vivekyadav/fvm/versions/3.38.1
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision b45fa18946 (2 weeks ago), 2025-11-12 22:09:06 -0600
• Engine revision b5990e5ccc
• Dart version 3.10.0
• DevTools version 2.51.1
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets,
omit-legacy-version-file, enable-lldb-debugging

[✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0) [4.0s]
• Android SDK at /Users/vivekyadav/Library/Android/sdk
• Emulator version 36.2.12.0 (build_id 14214601) (CL:N/A)
• Platform android-36, build-tools 36.1.0
• Java binary at: /Users/vivekyadav/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.8+-14018985-b1038.68)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 26.0.1) [3.7s]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 17A400
• CocoaPods version 1.16.2

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

[✓] Connected device (2 available) [7.2s]
• macOS (desktop) • macos • darwin-x64 • macOS 26.0.1 25A362 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 142.0.7444.176
! Error: Browsing on the local area network for Suraj’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)

[✓] Network resources [1,294ms]
• All expected network resources are available.

• No issues found
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách kiểm tra cấu hình plugin iOS và việc liên kết geocoding_ios.framework, sử dụng bản build Xcode 26.0.1 được báo cáo và lỗi dyld làm trường hợp tái hiện. Xác minh plugin trên một thiết bị iOS cũ bị ảnh hưởng; được xem là hoàn tất khi framework chỉ sử dụng các SDK công khai và ứng dụng khởi chạy mà không gặp lỗi thiếu _LocationEssentials.framework.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
dart, ios
Lĩnh vực
mobile
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
38/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.