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

Can't run application #22

Closed
locskot opened this issue Apr 28, 2021 · 5 comments
Closed

Can't run application #22

locskot opened this issue Apr 28, 2021 · 5 comments

Comments

@locskot
Copy link

locskot commented Apr 28, 2021

There is a problem during the building step.
My steps:

  1. cd ios
  2. flutter clean
  3. flutter pub get
  4. pod update (log item is: Installing flutter_call_kit (0.0.1))

Screenshot at Apr 28 14-18-31

Here is the flutter doctor -v output
[✓] Flutter (Channel stable, 1.22.6, on macOS 11.2.3 20D91 darwin-arm, locale ru-RU)
• Flutter version 1.22.6 at /users/locskot/dev/sdk/Flutter
• Framework revision 9b2d32b605 (3 months ago), 2021-01-22 14:36:39 -0800
• Engine revision 2f0af37152
• Dart version 2.10.5

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/locskot/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.5)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5, Build version 12E262
• CocoaPods version 1.10.1

[!] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

@jrkim123us
Copy link
Contributor

I rebuilt yesterday and got the same error. I thought that the major version of flutter upgrade I was doing was the problem, but it doesn't seem to be.

[✓] Flutter (Channel stable, 2.0.5, on macOS 11.3 20E232 darwin-x64, locale ko-KR)
• Flutter version 2.0.5 at /Users/jongrokkim/Documents/tools/flutter
• Framework revision adc687823a (12 days ago), 2021-04-16 09:40:20 -0700
• Engine revision b09f014e96
• Dart version 2.12.3

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/jongrokkim/Library/Android/sdk
• Platform android-30, build-tools 29.0.3
• ANDROID_HOME = /Users/jongrokkim/Library/Android/sdk
• Java binary at: /Users/jongrokkim/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.7199119/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5, Build version 12E262
• CocoaPods version 1.10.1

스크린샷 2021-04-29 오전 11 22 19

@jrkim123us
Copy link
Contributor

Cause of problem: AVFoundation.framework doesn't seem to be included at build time (exact cause is unknown)

  1. First found solution (settings disappear when using flutter clean)
    flutter_call_kit> Build Phases> Link Binary With Libraries
    스크린샷 2021-04-29 오후 4 20 44

  2. Source Modification
    ios> flutter_call_kit.podspec
    Add the following.

s.preserve_paths = 'AVFoundation.framework'
s.xcconfig = { 'OTHER_LDFLAGS' => '-framework AVFoundation' }
s.vendored_frameworks = 'AVFoundation.framework'

#23 Hope this solves the problem well.

@locskot
Copy link
Author

locskot commented Apr 30, 2021

Thank you!
It works!

@locskot locskot closed this as completed Apr 30, 2021
@0radek
Copy link

0radek commented Jun 3, 2021

+1, thanks for this fix. I hope your PR is merged soon.

@otgonbyrb
Copy link

Anyone can run on xcode 13 beta? Still getting same error after added AVFoundation.framework to Link Binary With Libraries and update flutter_call_kit.podspec.

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

No branches or pull requests

4 participants