kiwi-bop / flutter_crashlytics

:package: Flutter plugin for Crashlytics integration
BSD 2-Clause "Simplified" License
194 stars 46 forks source link

Cannot run in iOS #38

Closed illukinati closed 5 years ago

illukinati commented 5 years ago
↳
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
ld: warning: Could not find auto-linked library 'swiftCoreFoundation'
ld: warning: Could not find auto-linked library 'swiftSwiftOnoneSupport'
ld: warning: Could not find auto-linked library 'swiftFoundation'
ld: warning: Could not find auto-linked library 'swiftDarwin'
ld: warning: Could not find auto-linked library 'swiftUIKit'
ld: warning: Could not find auto-linked library 'swiftQuartzCore'
ld: warning: Could not find auto-linked library 'swiftCore'
ld: warning: Could not find auto-linked library 'swiftCoreGraphics'
ld: warning: Could not find auto-linked library 'swiftObjectiveC'
ld: warning: Could not find auto-linked library 'swiftCoreMedia'
ld: warning: Could not find auto-linked library 'swiftDispatch'
ld: warning: Could not find auto-linked library 'swiftMetal'
ld: warning: Could not find auto-linked library 'swiftCoreImage'
ld: warning: Could not find auto-linked library 'swiftCoreAudio'
Undefined symbols for architecture arm64:
"protocol descriptor for Swift.Hashable", referenced from:

I already add use_frameworks! still not working. I already add config.build_settings['SWIFT_VERSION'] = '4.2' still not working

this is my flutter doctor

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /Users/ekoprasetyo/Library/Android/sdk
    • Android NDK at /Users/ekoprasetyo/Library/Android/sdk/ndk-bundle
    • Platform android-28, build-tools 28.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_152-release-1136-b06)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[!] Android Studio (version 3.2)
    • 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_152-release-1136-b06)

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

[✓] Connected device (1 available)
    • Eko Prasetyo Lukman Nur’s iPhone • 37e053b536e8662eb1beaf01726e3da0def34749 • ios • iOS 12.1.1

! Doctor found issues in 1 category.
dvaldivia commented 5 years ago

By any chance did you solved this issue?

jaumard commented 5 years ago

Hum no because I don't have this issue... Are you able to reproduce it with the example provided in this repo ? Or can you provide a small example with this issue ?

algorythm commented 5 years ago

I had the same error. I "fixed it" (got a new error) by not adding use_frameworks! in the Podfile. I think that step is only needed when the project is Swift, not Objective C.

jaumard commented 5 years ago

Now 0.2.0 is not using Swift anymore but Objective C, let me know if it's better or not

algorythm commented 5 years ago

@jaumard 0.2.0 solved it for me at least.

jaumard commented 5 years ago

Then I'm closing it :) but guys don't hesitate to open a new one if you still have problems