ponnamkarthik / FlutterYoutube

Flutter Plugin to play youtube Videos
Apache License 2.0
126 stars 56 forks source link

FlutterYoutube fails to build when using OneSignal #13

Closed jeffmikels closed 5 years ago

jeffmikels commented 5 years ago

After installing the onesignal plugin and following the instructions to enable push notifications, app builds fail with the following error:

Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    === BUILD TARGET Pods-Runner OF PROJECT Pods WITH CONFIGURATION Release ===
    ld: '/Volumes/Jeff/Development/@Flutter/church_app_flutter/org.jeffmikels.innovation/build/ios/Release-iphoneos/XCDYouTubeKit/libXCDYouTubeKit.a(XCDYouTubeClient.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Volumes/Jeff/Development/@Flutter/church_app_flutter/org.jeffmikels.innovation/build/ios/Release-iphoneos/XCDYouTubeKit/libXCDYouTubeKit.a' for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    === BUILD TARGET Pods-Runner OF PROJECT Pods WITH CONFIGURATION Release ===
    ld: '/Volumes/Jeff/Development/@Flutter/church_app_flutter/org.jeffmikels.innovation/build/ios/Release-iphoneos/XCDYouTubeKit/libXCDYouTubeKit.a(XCDYouTubeClient.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Volumes/Jeff/Development/@Flutter/church_app_flutter/org.jeffmikels.innovation/build/ios/Release-iphoneos/XCDYouTubeKit/libXCDYouTubeKit.a' for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
Encountered error while building for device.
jeffmikels commented 5 years ago

It appears, I may have had the wrong target settings. Xcode seems like it was trying to build the youtube plugin for the onesignal target.