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][iOS]: Error (Xcode): Framework not found connectivity after change package to Connectivity_Plus #2509

Closed
8 tasks done
ogak-github opened this issue Jan 8, 2024 · 4 comments
Labels
bug Something isn't working Stale triage

Comments

@ogak-github
Copy link

Platform

iOS 12

Plugin

connectivity_plus

Version

5.0.2

Flutter SDK

3.16.5

Steps to reproduce

  1. Add old Connectivity 3.0.6
  2. Build your iOS project
  3. In Pubspec.yaml comment "#Connectivity 3.0.6"
  4. Add latest Connectivity_plus
  5. Build iOS project

Code Sample

No response

Logs

Running pod install...                                              6.4s
Running Xcode build...                                                  
 └─Compiling, linking and signing...                      2,741ms
Xcode build done.                                           61.7s
Failed to build iOS app
Error (Xcode): Framework not found connectivity


Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)


Encountered error while building for device.

Flutter Doctor

[✓] Flutter (Channel stable, 3.16.5, on macOS 14.0 23A344 darwin-arm64, locale
    en-ID)
    • Flutter version 3.16.5 on channel stable at
      /Users/yoga_intimap/Downloads/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 78666c8dc5 (3 weeks ago), 2023-12-19 16:14:14 -0800
    • Engine revision 3f3e560236
    • Dart version 3.2.3
    • DevTools version 2.28.4

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/yoga_intimap/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/yoga_intimap/Library/Android/sdk
    • 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)
    ✗ 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 15.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15C65
    • CocoaPods version 1.14.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.84.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.80.0

[✓] VS Code (version 1.76.2)
    • VS Code at /Users/yoga_intimap/Downloads/Visual Studio Code.app/Contents
    • Flutter extension version 3.80.0

[✓] Connected device (4 available)
    • Intimap iPad (mobile) • 2ab346f85f24c10312d2d2f128e3217d2b650558 • ios
      • iOS 12.5.7 16H81
    • Dwiky iPhone (mobile) • 00008101-00114D2C3A80001E                • ios
      • iOS 17.1.2 21B101
    • macOS (desktop)       • macos                                    •
      darwin-arm64   • macOS 14.0 23A344 darwin-arm64
    • Chrome (web)          • chrome                                   •
      web-javascript • Google Chrome 119.0.6045.123
    ! Error: Browsing on the local area network for Ogak. 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 11 Kantor. 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.

! Doctor found issues in 1 category.

Checklist before submitting a bug

  • I searched issues in this repository and couldn't find such bug/problem
  • I Google'd a solution and I couldn't find it
  • I searched on StackOverflow for a solution and I couldn't find it
  • I read the README.md file of the plugin
  • I'm using the latest version of the plugin
  • All dependencies are up to date with flutter pub upgrade
  • I did a flutter clean
  • I tried running the example project
@ogak-github ogak-github added bug Something isn't working triage labels Jan 8, 2024
@vbuberen
Copy link
Collaborator

vbuberen commented Jan 9, 2024

It looks like you have some caching issues. Did you really run flutter clean or just marked the checkmark here?

@ogak-github
Copy link
Author

It looks like you have some caching issues. Did you really run flutter clean or just marked the checkmark here?

yes, i also do flutter pub cache clean.
For now I just back to use Connectivity package

@vbuberen
Copy link
Collaborator

Error (Xcode): Framework not found connectivity

Looking at your logs again it is strange that the error says about issue with regular connectivity and not connectivity_plus. Are you sure that you have added the right dependency and that you don't have any usage of old connectivity in your code?

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days

@github-actions github-actions bot added the Stale label Apr 17, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale triage
Projects
None yet
Development

No branches or pull requests

2 participants