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

Builds fail when using OneSignal and FlutterYoutube #22

Closed
jeffmikels opened this issue Sep 18, 2018 · 17 comments
Closed

Builds fail when using OneSignal and FlutterYoutube #22

jeffmikels opened this issue Sep 18, 2018 · 17 comments

Comments

@jeffmikels
Copy link

Description:

After following the OneSignal setup guide (creating the Notification Service Extension) subsequent ios builds fail with the following error:

$ flutter build ios

Building org.jeffmikels.innovation.OneSignalNotificationServiceExtension for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: R82H62YSB3
Starting Xcode build...                                          
Xcode build done.                                            1.1s
Failed to build iOS app
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 armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    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)
Encountered error while building for device.

Environment

Steps to Reproduce Issue:

  1. create any flutter app.
  2. specify flutter_youtube and onesignal in the pubspec.yaml
  3. flutter build ios works
  4. Follow the setup guide for iOS to create Notification Service Extension.
  5. flutter build ios fails
@jeffmikels
Copy link
Author

I just tried it again with a fresh flutter app...

$ flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.8.2, on Mac OS X 10.12.6 16G29, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
[✓] Android Studio (version 3.1)
[✓] VS Code (version 1.27.2)
[✓] Connected devices (1 available)

• No issues found!
$ flutter create t3

update pubspec.yaml

dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2
  
  flutter_youtube: ^1.1.1
  onesignal: ^1.0.0
$ flutter build ios

Building com.example.t3 for device (ios-release)...
Signing iOS app for device deployment using developer identity: "iPhone Developer: Jeffrey Mikels (U7N4Y5DR4A)"
Running pod install...                                       1.0s
Starting Xcode build...                                          
 ├─Building Dart code...                              1.9s
 
 ├─Assembling Flutter resources...                    1.2s
 
 └─Compiling, linking and signing...                  5.5s
 
Xcode build done.                                           11.0s
Built /Volumes/Jeff/Development/@Flutter/t3/build/ios/iphoneos/Runner.app.

follow instructions at: https://documentation.onesignal.com/v5.0/docs/flutter-sdk-setup and change bundle ids to ids that can actually be provisioned.

$ flutter build ios

Building org.jeffmikels.innovation.OneSignalNotificationExtension for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: R82H62YSB3
Running pod install...
Starting Xcode build...
Xcode build done.
Failed to build iOS app
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/t3/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/t3/build/ios/Release-iphoneos/XCDYouTubeKit/libXCDYouTubeKit.a' for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    ld: '/Volumes/Jeff/Development/@Flutter/t3/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/t3/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 ===
    error: the following command failed with exit code 1 but produced no further output
    Ld /Volumes/Jeff/Library/Developer/Xcode/DerivedData/Runner-hezswqpynipbyacsfihypcfypzwa/Build/Intermediates.noindex/Runner.build/Release-iphoneos/OneSignalNotificationExtension.build/Objects-normal/arm64/OneSignalNotificationExtension normal arm64

Then, I do a full clean of everything:

#!/bin/sh

# leftover xcode compilation files
rm -rf /Volumes/Jeff/Library/Developer/Xcode/DerivedData/*
rm -rf /Volumes/Jeff/Library/Developer/Xcode/DerivedData/*
rm -rf /Volumes/Jeff/Library/Developer/Xcode/DerivedData/*

# sometimes Flutter doesn't recompile the frameworks
rm -rf ios/Flutter/App.framework ios/Flutter/Flutter.framework

# now, remove the build directory
rm -rf build

# now remove the .packages file
rm -f .packages

pushd ios
pod deintegrate
rm -rf Pods Podfile.lock
popd

finally try building again

$ flutter build ios

Building org.jeffmikels.innovation.OneSignalNotificationExtension for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: R82H62YSB3
Starting Xcode build...
Xcode build done.
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **
    
Xcode's output:
↳
    === BUILD TARGET flutter_youtube OF PROJECT Pods WITH CONFIGURATION Release ===
    ld: warning: directory not found for option '-L/Volumes/Jeff/Development/@Flutter/t3/build/ios/Release-iphoneos/flutter_youtube'
    ld: library not found for -lflutter_youtube
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    === BUILD TARGET flutter_youtube OF PROJECT Pods WITH CONFIGURATION Release ===
    ld: warning: directory not found for option '-L/Volumes/Jeff/Development/@Flutter/t3/build/ios/Release-iphoneos/flutter_youtube'
    ld: library not found for -lflutter_youtube
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

@jeffmikels
Copy link
Author

If I delete the OneSignalNotificationServiceExtension target, and try again:

$ flutter build ios

Running "flutter packages get" in t3...
Building org.jeffmikels.innovation for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: R82H62YSB3
Running pod install...
Starting Xcode build...
Xcode build done.
Built /Volumes/Jeff/Development/@Flutter/t3/build/ios/iphoneos/Runner.app.

success

@Nightsd01
Copy link
Contributor

Nightsd01 commented Sep 19, 2018

@jeffmikels it’s strange, the build error you’re getting is in regards to libYouTube.a, which would be a static binary.

Can you post your Podfile and pubspec?

@jeffmikels
Copy link
Author

No changes have been made to any file other than adding these two libraries to the pubspec.yaml.

Here's proof:

full pubspec

name: t3
description: A new Flutter project.

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# Read more about versioning at semver.org.
version: 1.0.0+1

environment:
  sdk: ">=2.0.0-dev.68.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2

  flutter_youtube: ^1.1.1
  onesignal: ^1.0.0


dev_dependencies:
  flutter_test:
    sdk: flutter


# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  # assets:
  #  - images/a_dot_burr.jpeg
  #  - images/a_dot_ham.jpeg

  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.io/assets-and-images/#resolution-aware.

  # For details regarding adding assets from package dependencies, see
  # https://flutter.io/assets-and-images/#from-packages

  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  # fonts:
  #   - family: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.io/custom-fonts/#from-packages

full Podfile

# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

def parse_KV_file(file, separator='=')
  file_abs_path = File.expand_path(file)
  if !File.exists? file_abs_path
    return [];
  end
  pods_ary = []
  skip_line_start_symbols = ["#", "/"]
  File.foreach(file_abs_path) { |line|
      next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
      plugin = line.split(pattern=separator)
      if plugin.length == 2
        podname = plugin[0].strip()
        path = plugin[1].strip()
        podpath = File.expand_path("#{path}", file_abs_path)
        pods_ary.push({:name => podname, :path => podpath});
      else
        puts "Invalid plugin specification: #{line}"
      end
  }
  return pods_ary
end

target 'Runner' do
  # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
  # referring to absolute paths on developers' machines.
  system('rm -rf .symlinks')
  system('mkdir -p .symlinks/plugins')

  # Flutter Pods
  generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
  if generated_xcode_build_settings.empty?
    puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
  end
  generated_xcode_build_settings.map { |p|
    if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
      symlink = File.join('.symlinks', 'flutter')
      File.symlink(File.dirname(p[:path]), symlink)
      pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))
    end
  }

  # Plugin Pods
  plugin_pods = parse_KV_file('../.flutter-plugins')
  plugin_pods.map { |p|
    symlink = File.join('.symlinks', 'plugins', p[:name])
    File.symlink(p[:path], symlink)
    pod p[:name], :path => File.join(symlink, 'ios')
  }
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['ENABLE_BITCODE'] = 'NO'
    end
  end
end

@jeffmikels
Copy link
Author

because of what you said, I have tried one more thing...

$ rm -rf ~/.pub-cache/*

Then, I cleaned the build directory and all the DerivedData directories, and tried the build again... and I got this:

$ flutter build ios

$ flutter build ios
Building org.jeffmikels.innovation for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: R82H62YSB3
Starting Xcode build...                                          
 ├─Building Dart code...                              1.8s
 
 ├─Assembling Flutter resources...                    1.2s
 
 └─Compiling, linking and signing...                  0.7s
 
Xcode build done.                                            4.8s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **
    
Xcode's output:
↳
    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release ===
    /Volumes/Jeff/Development/@Flutter/t3/build/ios/Release-iphoneos/Runner.app/Frameworks/App.framework: unknown error -1=ffffffffffffffff
    Command /usr/bin/codesign failed with exit code 1
Encountered error while building for device.

@Nightsd01
Copy link
Contributor

@jeffmikels from what I understand, you said removing the OneSignalNotificationServiceExtension target from your project fixed the build issue.

In order to correctly set up the extension service, you’d need to add our dynamic framework to your extension target. Perhaps our docs are not clear enough on this - I will review them when I’m in the office tomorrow.

But in the mean time, did you remove the notification service extension target from your podfile?

@Nightsd01
Copy link
Contributor

PS: that’s a really weird one. Would it be possible for you to send a link to the full build log (from Xcode)? Don’t post it directly here since it will probably be enormous

@jeffmikels
Copy link
Author

Tell me about the changes that need to be made to the podfile. I haven't made any additions or deletions from the podfile.

Was I supposed to add something to the podfile when I added the notification service extension target?

@jeffmikels
Copy link
Author

Running this command:

security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k <keychainPass> login.keychain

in response to this old post:

flutter/flutter#8953

Now, it's building...

@jeffmikels
Copy link
Author

Strike that... I got one successful build. When I cleaned out the Derived Data directory again, the builds started failing again.

@jeffmikels
Copy link
Author

$ flutter doctor -v 

[✓] Flutter (Channel beta, v0.8.2, on Mac OS X 10.12.6 16G29, locale en-US)
    • Flutter version 0.8.2 at /Volumes/Jeff/Library/Flutter
    • Framework revision 5ab9e70727 (11 days ago), 2018-09-07 12:33:05 -0700
    • Engine revision 58a1894a1c
    • Dart version 2.1.0-dev.3.1.flutter-760a9690c2

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /Volumes/Jeff/Library/Android/sdk/
    • Android NDK at /Volumes/Jeff/Library/Android/sdk/ndk-bundle
    • Platform android-27, build-tools 27.0.3
    • ANDROID_HOME = /Volumes/Jeff/Library/Android/sdk/
    • Java binary at: /Volumes/Jeff/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.2, Build version 9C40b
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.1)
    • Android Studio at /Volumes/Jeff/Applications/Android Studio.app/Contents
    • Flutter plugin version 28.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] VS Code (version 1.27.2)
    • VS Code at /Volumes/Jeff/Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.18.0

[!] Connected devices
    ! No devices available

! Doctor found issues in 1 category.

@jeffmikels
Copy link
Author

jeffmikels commented Sep 19, 2018

I have tried switching to the master channel of flutter to no avail.

Here is my latest full Xcode build log:

https://gist.github.com/jeffmikels/c776b7eae07a77b6a5fd6c3239263d67

@jeffmikels
Copy link
Author

@Nightsd01 Did the build log show anything that makes sense to you?

@jeffmikels
Copy link
Author

Without any guidance on a fix for this, I'm switching away from OneSignal to using Firebase Cloud Messaging directly.

@jkasten2
Copy link
Member

@jeffmikels Thanks for the full log. It looks like Xcode is building the XCDYouTubeKit framework into the OneSignalNotificationServiceExtension in your project from this error.

           === BUILD TARGET OneSignalNotificationServiceExtension OF PROJECT Runner WITH CONFIGURATION Release ===
           Check dependencies
           
           PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Volumes/Jeff/Library/Developer/Xcode/DerivedData/Runner-hezswqpynipbyacsfihypcfypzwa/Build/Intermediates.noindex/Runner.build/Release-iphoneos/OneSignalNotificationServiceExtension.build/Script-FDD89C11D49FC36DD9BB1519.sh
               cd "/Volumes/Jeff/Development/@Flutter/t3/ios"
               /bin/sh -c /Volumes/Jeff/Library/Developer/Xcode/DerivedData/Runner-hezswqpynipbyacsfihypcfypzwa/Build/Intermediates.noindex/Runner.build/Release-iphoneos/OneSignalNotificationServiceExtension.build/Script-FDD89C11D49FC36DD9BB1519.sh
           
           Ld /Volumes/Jeff/Library/Developer/Xcode/DerivedData/Runner-hezswqpynipbyacsfihypcfypzwa/Build/Intermediates.noindex/Runner.build/Release-iphoneos/OneSignalNotificationServiceExtension.build/Objects-normal/armv7/OneSignalNotificationServiceExtension normal armv7
               cd "/Volumes/Jeff/Development/@Flutter/t3/ios"
               export IPHONEOS_DEPLOYMENT_TARGET=10.0
               export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Volumes/Jeff/.luarocks/bin:/Volumes/Jeff/bin:/Volumes/Jeff/scripts:/opt/bible:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/apache-ant-1.9.4/bin:/Volumes/Jeff/Library/Android/sdk//tools:/Volumes/Jeff/Library/Android/sdk//platform-tools:/Volumes/Jeff/Library/Android/sdk//tools/bin:/Volumes/Jeff/Library/Flutter/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/opt/ImageMagick/bin:/Applications/Wireshark.app/Contents/MacOS:/Volumes/Jeff/.pub-cache/bin"
               /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -L/Volumes/Jeff/Development/@Flutter/t3/build/ios/Release-iphoneos -L/Volumes/Jeff/Development/@Flutter/t3/build/ios/Release-iphoneos/XCDYouTubeKit -L/Volumes/Jeff/Development/@Flutter/t3/build/ios/Release-iphoneos/flutter_youtube -L/Volumes/Jeff/Development/@Flutter/t3/build/ios/Release-iphoneos/onesignal -F/Volumes/Jeff/Development/@Flutter/t3/build/ios/Release-iphoneos -F/Volumes/Jeff/Development/@Flutter/t3/ios/Pods/../.symlinks/flutter/ios-release -F/Volumes/Jeff/Development/@Flutter/t3/ios/Pods/OneSignalDynamic/iOS_SDK/OneSignalSDK/Framework/Dynamic -filelist /Volumes/Jeff/Library/Developer/Xcode/DerivedData/Runner-hezswqpynipbyacsfihypcfypzwa/Build/Intermediates.noindex/Runner.build/Release-iphoneos/OneSignalNotificationServiceExtension.build/Objects-normal/armv7/OneSignalNotificationServiceExtension.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -miphoneos-version-min=10.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Volumes/Jeff/Library/Developer/Xcode/DerivedData/Runner-hezswqpynipbyacsfihypcfypzwa/Build/Intermediates.noindex/Runner.build/Release-iphoneos/OneSignalNotificationServiceExtension.build/Objects-normal/armv7/OneSignalNotificationServiceExtension_lto.o -fembed-bitcode-marker -fobjc-arc -fobjc-link-runtime -fapplication-extension -ObjC -lXCDYouTubeKit -lflutter_youtube -lonesignal -framework Flutter -framework JavaScriptCore -framework MediaPlayer -framework OneSignal -framework SystemConfiguration -framework UIKit -framework UserNotifications -ObjC -framework OneSignal -framework SystemConfiguration -framework UIKit -framework UserNotifications -e _NSExtensionMain -lPods-OneSignalNotificationServiceExtension -Xlinker -dependency_info -Xlinker /Volumes/Jeff/Library/Developer/Xcode/DerivedData/Runner-hezswqpynipbyacsfihypcfypzwa/Build/Intermediates.noindex/Runner.build/Release-iphoneos/OneSignalNotificationServiceExtension.build/Objects-normal/armv7/OneSignalNotificationServiceExtension_dependency_info.dat -o /Volumes/Jeff/Library/Developer/Xcode/DerivedData/Runner-hezswqpynipbyacsfihypcfypzwa/Build/Intermediates.noindex/Runner.build/Release-iphoneos/OneSignalNotificationServiceExtension.build/Objects-normal/armv7/OneSignalNotificationServiceExtension
           ld: '/Volumes/Jeff/Development/@Flutter/t3/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/t3/build/ios/Release-iphoneos/XCDYouTubeKit/libXCDYouTubeKit.a' for architecture armv7
           clang: error: linker command failed with exit code 1 (use -v to see invocation)
           
           Ld /Volumes/Jeff/Library/Developer/Xcode/DerivedData/Runner-hezswqpynipbyacsfihypcfypzwa/Build/Intermediates.noindex/Runner.build/Release-iphoneos/OneSignalNotificationServiceExtension.build/Objects-normal/arm64/OneSignalNotificationServiceExtension normal arm64
               cd "/Volumes/Jeff/Development/@Flutter/t3/ios"
               export IPHONEOS_DEPLOYMENT_TARGET=10.0
               export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Volumes/Jeff/.luarocks/bin:/Volumes/Jeff/bin:/Volumes/Jeff/scripts:/opt/bible:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/apache-ant-1.9.4/bin:/Volumes/Jeff/Library/Android/sdk//tools:/Volumes/Jeff/Library/Android/sdk//platform-tools:/Volumes/Jeff/Library/Android/sdk//tools/bin:/Volumes/Jeff/Library/Flutter/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/opt/ImageMagick/bin:/Applications/Wireshark.app/Contents/MacOS:/Volumes/Jeff/.pub-cache/bin"
               /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -L/Volumes/Jeff/Development/@Flutter/t3/build/ios/Release-iphoneos -L/Volumes/Jeff/Development/@Flutter/t3/build/ios/Release-iphoneos/XCDYouTubeKit -L/Volumes/Jeff/Development/@Flutter/t3/build/ios/Release-iphoneos/flutter_youtube -L/Volumes/Jeff/Development/@Flutter/t3/build/ios/Release-iphoneos/onesignal -F/Volumes/Jeff/Development/@Flutter/t3/build/ios/Release-iphoneos -F/Volumes/Jeff/Development/@Flutter/t3/ios/Pods/../.symlinks/flutter/ios-release -F/Volumes/Jeff/Development/@Flutter/t3/ios/Pods/OneSignalDynamic/iOS_SDK/OneSignalSDK/Framework/Dynamic -filelist /Volumes/Jeff/Library/Developer/Xcode/DerivedData/Runner-hezswqpynipbyacsfihypcfypzwa/Build/Intermediates.noindex/Runner.build/Release-iphoneos/OneSignalNotificationServiceExtension.build/Objects-normal/arm64/OneSignalNotificationServiceExtension.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -miphoneos-version-min=10.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Volumes/Jeff/Library/Developer/Xcode/DerivedData/Runner-hezswqpynipbyacsfihypcfypzwa/Build/Intermediates.noindex/Runner.build/Release-iphoneos/OneSignalNotificationServiceExtension.build/Objects-normal/arm64/OneSignalNotificationServiceExtension_lto.o -fembed-bitcode-marker -fobjc-arc -fobjc-link-runtime -fapplication-extension -ObjC -lXCDYouTubeKit -lflutter_youtube -lonesignal -framework Flutter -framework JavaScriptCore -framework MediaPlayer -framework OneSignal -framework SystemConfiguration -framework UIKit -framework UserNotifications -ObjC -framework OneSignal -framework SystemConfiguration -framework UIKit -framework UserNotifications -e _NSExtensionMain -lPods-OneSignalNotificationServiceExtension -Xlinker -dependency_info -Xlinker /Volumes/Jeff/Library/Developer/Xcode/DerivedData/Runner-hezswqpynipbyacsfihypcfypzwa/Build/Intermediates.noindex/Runner.build/Release-iphoneos/OneSignalNotificationServiceExtension.build/Objects-normal/arm64/OneSignalNotificationServiceExtension_dependency_info.dat -o /Volumes/Jeff/Library/Developer/Xcode/DerivedData/Runner-hezswqpynipbyacsfihypcfypzwa/Build/Intermediates.noindex/Runner.build/Release-iphoneos/OneSignalNotificationServiceExtension.build/Objects-normal/arm64/OneSignalNotificationServiceExtension
           ld: '/Volumes/Jeff/Development/@Flutter/t3/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/t3/build/ios/Release-iphoneos/XCDYouTubeKit/libXCDYouTubeKit.a' for architecture arm64
           clang: error: linker command failed with exit code 1 (use -v to see invocation)

Can you check for this and remove from the target?

@jeffmikels
Copy link
Author

Thanks for the tip. That might have solved the problem, but I have moved on from OneSignal.

@Nightsd01
Copy link
Contributor

Nightsd01 commented Sep 27, 2018

@jeffmikels Since you were, somehow, ending up with a project that was trying to embed XCDYouTubeKit into the extension service, that would have been the problem. Closing as this is not an issue with our SDK, in addition I was unable to reproduce your problem with Flutter Youtube.

Apologies for the delay in getting back to you, we've been quite busy since iOS 12 released but fortunately things are getting back to normal.

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

3 participants