transistorsoft / flutter_background_geolocation

Sophisticated, battery-conscious background-geolocation & geofencing with motion-detection
https://www.transistorsoft.com/shop/products/flutter-background-geolocation
Other
645 stars 239 forks source link

ld: framework not found TSBackgroundFetch #515

Closed HugoHeneault closed 3 years ago

HugoHeneault commented 3 years ago

Your Environment

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [✓] Xcode - develop for iOS and macOS (Xcode 12.4) [✓] Android Studio (version 4.1) [✓] VS Code (version 1.53.2) [✓] Connected device (1 available)

• No issues found!

* Plugin config:
```dart <-- Syntax highlighting: DO NOT REMOVE -->
// Logging & Debug
        reset: true,
        debug: false,
        locationAuthorizationRequest: "Always",
        locationAuthorizationAlert: {
          'titleWhenNotEnabled': tr('gps_disabled_title'),
          'titleWhenOff': tr('gps_requires_always_title'),
          'instructions': tr('gps_requires_always_description'),
          'cancelButton': tr('cancel'),
          'settingsButton': tr('gps_disabled_settings')
        },
        logLevel: bg.Config.LOG_LEVEL_INFO,
        // Geolocation options
        desiredAccuracy: bg.Config.DESIRED_ACCURACY_HIGH,
        locationUpdateInterval: Platform.isAndroid ? 1500 : null,
        fastestLocationUpdateInterval: 1000,
        distanceFilter: Platform.isAndroid ? 0 : 2,
        stopTimeout: 1,
        stopOnTerminate: true,
        heartbeatInterval: 60,
        desiredOdometerAccuracy: 10,
        isMoving: true,
        disableStopDetection: true,
        preventSuspend: true,
        pausesLocationUpdatesAutomatically: false,
        //Android notification
        notification: bg.Notification(
            title: hike is Hike
                ? hike.contents.get('title')
                : tr('geolocation_notification_title'),
            text: tr('geolocation_notification_text'),
            smallIcon: 'drawable/ic_marker'),
      )

Expected Behavior

Build should run on device

Actual Behavior

Build fails

Steps to Reproduce

  1. run flutter run ios --debug

Context

Build doens't work anymore, it was working before... I just downgraded from 1.26 beta channel to stable channel.

Debug logs

Launching lib/main_rb.dart on iPhone 8 in debug mode...
Running Xcode build...
Xcode build done.                                           16,1s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    ld: framework not found TSBackgroundFetch
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description

I'm unsure if this is related to https://github.com/transistorsoft/background-geolocation-lt/issues/7

Could you help me? Thanks a lot!

HugoHeneault commented 3 years ago

Here is the output I got from XCode:


Showing All Messages
The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99.

WriteAuxiliaryFile /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/background_fetch-all-target-headers.hmap (in target 'background_fetch' from project 'Pods')
    cd /Users/hugo/dev/company/project/ios/Pods
    write-file /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/background_fetch-all-target-headers.hmap

CpHeader /Users/hugo/dev/company/project/ios/Pods/Target\ Support\ Files/background_fetch/background_fetch-umbrella.h /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Products/Debug-iphonesimulator/background_fetch/background_fetch.framework/Headers/background_fetch-umbrella.h (in target 'background_fetch' from project 'Pods')
    cd /Users/hugo/dev/company/project/ios/Pods
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/hugo/dev/company/project/ios/Pods/Target\ Support\ Files/background_fetch/background_fetch-umbrella.h /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Products/Debug-iphonesimulator/background_fetch/background_fetch.framework/Headers

WriteAuxiliaryFile /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/Objects-normal/x86_64/background_fetch.LinkFileList (in target 'background_fetch' from project 'Pods')
    cd /Users/hugo/dev/company/project/ios/Pods
    write-file /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/Objects-normal/x86_64/background_fetch.LinkFileList

ProcessInfoPlistFile /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Products/Debug-iphonesimulator/background_fetch/background_fetch.framework/Info.plist /Users/hugo/dev/company/project/ios/Pods/Target\ Support\ Files/background_fetch/background_fetch-Info.plist (in target 'background_fetch' from project 'Pods')
    cd /Users/hugo/dev/company/project/ios/Pods
    builtin-infoPlistUtility /Users/hugo/dev/company/project/ios/Pods/Target\ Support\ Files/background_fetch/background_fetch-Info.plist -producttype com.apple.product-type.framework -expandbuildsettings -format binary -platform iphonesimulator -o /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Products/Debug-iphonesimulator/background_fetch/background_fetch.framework/Info.plist

CompileC /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/Objects-normal/x86_64/background_fetch_vers.o /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/DerivedSources/background_fetch_vers.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'background_fetch' from project 'Pods')
    cd /Users/hugo/dev/company/project/ios/Pods
    export LANG\=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -target x86_64-apple-ios8.0-simulator -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=gnu11 -fmodules -gmodules -fmodules-cache-path\=/Users/hugo/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/hugo/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=background_fetch -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Werror\=deprecated-objc-isa-usage -Werror\=objc-root-class -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DPOD_CONFIGURATION_DEBUG\=1 -DDEBUG\=1 -DCOCOAPODS\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Index/DataStore -iquote /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/background_fetch-generated-files.hmap -I/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/background_fetch-own-target-headers.hmap -I/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/background_fetch-all-non-framework-target-headers.hmap -ivfsoverlay /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/all-product-headers.yaml -iquote /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/background_fetch-project-headers.hmap -I/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Products/Debug-iphonesimulator/background_fetch/include -I/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/DerivedSources-normal/x86_64 -I/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/DerivedSources/x86_64 -I/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/DerivedSources -F/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Products/Debug-iphonesimulator/background_fetch -F/Users/hugo/dev/company/project/ios/.symlinks/plugins/background_fetch/ios -F/Users/hugo/dev/company/project/ios/Flutter -MMD -MT dependencies -MF /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/Objects-normal/x86_64/background_fetch_vers.d --serialize-diagnostics /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/Objects-normal/x86_64/background_fetch_vers.dia -c /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/DerivedSources/background_fetch_vers.c -o /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/Objects-normal/x86_64/background_fetch_vers.o

CompileC /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/Objects-normal/x86_64/background_fetch-dummy.o /Users/hugo/dev/company/project/ios/Pods/Target\ Support\ Files/background_fetch/background_fetch-dummy.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'background_fetch' from project 'Pods')
    cd /Users/hugo/dev/company/project/ios/Pods
    export LANG\=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target x86_64-apple-ios8.0-simulator -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=gnu11 -fobjc-arc -fobjc-weak -fmodules -gmodules -fmodules-cache-path\=/Users/hugo/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/hugo/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=background_fetch -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror\=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DPOD_CONFIGURATION_DEBUG\=1 -DDEBUG\=1 -DCOCOAPODS\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -fobjc-abi-version\=2 -fobjc-legacy-dispatch -index-store-path /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Index/DataStore -iquote /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/background_fetch-generated-files.hmap -I/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/background_fetch-own-target-headers.hmap -I/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/background_fetch-all-non-framework-target-headers.hmap -ivfsoverlay /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/all-product-headers.yaml -iquote /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/background_fetch-project-headers.hmap -I/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Products/Debug-iphonesimulator/background_fetch/include -I/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/DerivedSources-normal/x86_64 -I/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/DerivedSources/x86_64 -I/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/DerivedSources -F/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Products/Debug-iphonesimulator/background_fetch -F/Users/hugo/dev/company/project/ios/.symlinks/plugins/background_fetch/ios -F/Users/hugo/dev/company/project/ios/Flutter -include /Users/hugo/dev/company/project/ios/Pods/Target\ Support\ Files/background_fetch/background_fetch-prefix.pch -MMD -MT dependencies -MF /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/Objects-normal/x86_64/background_fetch-dummy.d --serialize-diagnostics /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/Objects-normal/x86_64/background_fetch-dummy.dia -c /Users/hugo/dev/company/project/ios/Pods/Target\ Support\ Files/background_fetch/background_fetch-dummy.m -o /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/Objects-normal/x86_64/background_fetch-dummy.o

CompileC /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/Objects-normal/x86_64/BackgroundFetchPlugin.o /usr/local/Caskroom/flutter/latest/flutter/.pub-cache/hosted/pub.dartlang.org/background_fetch-0.6.0/ios/Classes/BackgroundFetchPlugin.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'background_fetch' from project 'Pods')
    cd /Users/hugo/dev/company/project/ios/Pods
    export LANG\=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target x86_64-apple-ios8.0-simulator -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=gnu11 -fobjc-arc -fobjc-weak -fmodules -gmodules -fmodules-cache-path\=/Users/hugo/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/hugo/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=background_fetch -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror\=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DPOD_CONFIGURATION_DEBUG\=1 -DDEBUG\=1 -DCOCOAPODS\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -fobjc-abi-version\=2 -fobjc-legacy-dispatch -index-store-path /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Index/DataStore -iquote /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/background_fetch-generated-files.hmap -I/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/background_fetch-own-target-headers.hmap -I/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/background_fetch-all-non-framework-target-headers.hmap -ivfsoverlay /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/all-product-headers.yaml -iquote /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/background_fetch-project-headers.hmap -I/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Products/Debug-iphonesimulator/background_fetch/include -I/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/DerivedSources-normal/x86_64 -I/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/DerivedSources/x86_64 -I/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/DerivedSources -F/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Products/Debug-iphonesimulator/background_fetch -F/Users/hugo/dev/company/project/ios/.symlinks/plugins/background_fetch/ios -F/Users/hugo/dev/company/project/ios/Flutter -include /Users/hugo/dev/company/project/ios/Pods/Target\ Support\ Files/background_fetch/background_fetch-prefix.pch -MMD -MT dependencies -MF /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/Objects-normal/x86_64/BackgroundFetchPlugin.d --serialize-diagnostics /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/Objects-normal/x86_64/BackgroundFetchPlugin.dia -c /usr/local/Caskroom/flutter/latest/flutter/.pub-cache/hosted/pub.dartlang.org/background_fetch-0.6.0/ios/Classes/BackgroundFetchPlugin.m -o /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/Objects-normal/x86_64/BackgroundFetchPlugin.o

Ld /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Products/Debug-iphonesimulator/background_fetch/background_fetch.framework/background_fetch normal (in target 'background_fetch' from project 'Pods')
    cd /Users/hugo/dev/company/project/ios/Pods
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios8.0-simulator -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk -L/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Products/Debug-iphonesimulator/background_fetch -F/Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Products/Debug-iphonesimulator/background_fetch -F/Users/hugo/dev/company/project/ios/Pods/../.symlinks/plugins/background_fetch/ios -F/Users/hugo/dev/company/project/ios/Pods/../Flutter -filelist /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/Objects-normal/x86_64/background_fetch.LinkFileList -install_name @rpath/background_fetch.framework/background_fetch -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/Objects-normal/x86_64/background_fetch_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -framework Flutter -framework TSBackgroundFetch -framework Foundation -Xlinker -no_adhoc_codesign -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/Objects-normal/x86_64/background_fetch_dependency_info.dat -o /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Products/Debug-iphonesimulator/background_fetch/background_fetch.framework/background_fetch

ld: framework not found TSBackgroundFetch
clang: error: linker command failed with exit code 1 (use -v to see invocation)
christocracy commented 3 years ago

Plugin version:1.9.3

The latest version of flutter_background_geolocation is 1.11.1. Show me your pubspec.yaml

HugoHeneault commented 3 years ago

I didn't want to update due to breaking changes with ProviderChangeEvent. But I tried and it didn't change anything.

Here's my pubspec.yaml:

pubspec.yaml ```yaml name: project 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. # In Android, build-name is used as versionName while build-number used as versionCode. # Read more about Android versioning at https://developer.android.com/studio/publish/versioning # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html version: 3.13.3+255 environment: sdk: ">=2.6.00 <3.0.0" flutter: ">=1.22.5 <1.23.0" dependencies: flutter: sdk: flutter audioplayers: git: url: git://github.com/ownweb/audioplayers.git ref: fix/ios-sound-locked auto_size_text: ^2.1.0 android_intent: ^0.3.7+2 app_settings: ^4.0.2 archive: ^2.0.13 cached_network_image: ^2.2.0+1 carousel_slider: git: url: https://github.com/OwnWeb/flutter_carousel_slider ref: fix/reason-manuel-never-emitted connectivity: ^0.4.9 cupertino_icons: ^0.1.3 diacritic: ^0.1.1 dio: ^3.0.9 dotted_line: git: url: https://github.com/OwnWeb/dotted_line ref: tuarrep-remove-padding easy_localization: 2.3.2 esys_flutter_share: ^1.0.2 firebase_analytics: ^5.0.16 firebase_crashlytics: ^0.1.4+1 firebase_performance: ^0.3.2 file_picker: 1.9.0+1 f_logs: ^1.3.0-alpha-02 flurry_analytics: git: url: https://github.com/Gorniv/flutter_flurry_analytics ref: master flutter_background_geolocation: ^1.11.1 flutter_dotenv: ^2.1.0 flutter_html: ^0.11.1 # stay in 0.11.1 until https://github.com/Sub6Resources/flutter_html/issues/294 is fixed flutter_localizations: sdk: flutter flutter_mailer: ^0.5.1 flutter_map: git: url: git://github.com/OwnWeb/flutter_map.git ref: feat/st # (0.8.2) Do NOT upgrade until https://github.com/fleaflet/flutter_map/issues/659 is fixed flutter_map_marker_cluster: git: url: git://github.com/ownweb/flutter_map_marker_cluster.git ref: feat/st-features flutter_map_tappable_polyline: ^0.3.2 # Upgrade prevented by flutter_map dependency flutter_secure_storage: ^3.3.3 flutter_svg: ^0.18.0 fluttertoast: ^4.0.1 # Update requires complete toast refactor. Estimated 2h. Won't happen. flutter_xlider: ^3.4.0 geodesy: ^0.3.2 geojson: ^0.9.1 # Because every version of flutter_localizations from sdk depends on meta 1.1.8 and xml >=4.3.0 depends on meta ^1.2.0, flutter_localizations from sdk is incompatible with xml >=4.3.0. # And because gpx >=1.0.1+2 depends on xml ^4.3.0, flutter_localizations from sdk is incompatible with gpx >=1.0.1+2. gpx: ^1.0.0 http: ^0.12.2 keyboard_avoider: ^0.1.2 latlong: ^0.6.1 logger: ^0.9.2 map_launcher: ^0.10.0 package_info: ^0.4.1 path_provider: ^1.6.11 path: ^1.7.0 pedantic: ^1.9.0 # dep flutter_meta 1.2.0 conflicts conflicts with sdk flutter_localizations provider: ^4.3.1 provider_architecture: 1.0.6 # > 1.0.6 is deprecated in favor of https://pub.dev/packages/stacked rflutter_alert: git: url: https://github.com/OwnWeb/rflutter_alert.git ref: feat/icon-widget smooth_star_rating: ^1.1.1 theme_provider: ^0.4.0+1 transparent_image: ^1.0.0 uuid: ^2.2.0 url_launcher: ^5.5.0 vibration: ^1.4.0 weather_icons: ^2.0.1 dev_dependencies: flutter_test: sdk: flutter test: ^1.15.3 dependency_overrides: flutter_map: git: url: git://github.com/OwnWeb/flutter_map.git ref: feat/st # 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: - assets/.env - assets/no_tile.png - assets/icons/ - assets/sp/icons/ - assets/sp/images/ - assets/langs/st/ - assets/langs/esr/ - assets/langs/rb/ - assets/langs/snw/ - assets/sounds/ # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.dev/assets-and-images/#resolution-aware. # For details regarding adding assets from package dependencies, see # https://flutter.dev/assets-and-images/#from-packages # To add custom fonts to your application, add a fonts section here, # in this "flutter" section. Each entry in tis 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.dev/custom-fonts/#from-packages ```
christocracy commented 3 years ago

Show me pubspec.lock

HugoHeneault commented 3 years ago

Here it is:

pubspeck.lock ```yaml # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: _fe_analyzer_shared: dependency: transitive description: name: _fe_analyzer_shared url: "https://pub.dartlang.org" source: hosted version: "3.0.0" analyzer: dependency: transitive description: name: analyzer url: "https://pub.dartlang.org" source: hosted version: "0.39.8" android_intent: dependency: "direct main" description: name: android_intent url: "https://pub.dartlang.org" source: hosted version: "0.3.7+2" ansicolor: dependency: transitive description: name: ansicolor url: "https://pub.dartlang.org" source: hosted version: "1.0.2" app_settings: dependency: "direct main" description: name: app_settings url: "https://pub.dartlang.org" source: hosted version: "4.0.2" archive: dependency: "direct main" description: name: archive url: "https://pub.dartlang.org" source: hosted version: "2.0.13" args: dependency: transitive description: name: args url: "https://pub.dartlang.org" source: hosted version: "1.6.0" async: dependency: transitive description: name: async url: "https://pub.dartlang.org" source: hosted version: "2.5.0-nullsafety.1" audioplayers: dependency: "direct main" description: path: "." ref: "fix/ios-sound-locked" resolved-ref: a8db35dddc049d54e260b2bface9c7bfc59007a4 url: "git://github.com/ownweb/audioplayers.git" source: git version: "0.15.1" auto_size_text: dependency: "direct main" description: name: auto_size_text url: "https://pub.dartlang.org" source: hosted version: "2.1.0" background_fetch: dependency: transitive description: name: background_fetch url: "https://pub.dartlang.org" source: hosted version: "0.6.0" boolean_selector: dependency: transitive description: name: boolean_selector url: "https://pub.dartlang.org" source: hosted version: "2.1.0-nullsafety.1" cached_network_image: dependency: "direct main" description: name: cached_network_image url: "https://pub.dartlang.org" source: hosted version: "2.2.0+1" carousel_slider: dependency: "direct main" description: path: "." ref: "fix/reason-manuel-never-emitted" resolved-ref: "7510eed8902a1720b1cb627ab057ac20e4ae8bd1" url: "https://github.com/OwnWeb/flutter_carousel_slider" source: git version: "2.1.0" characters: dependency: transitive description: name: characters url: "https://pub.dartlang.org" source: hosted version: "1.1.0-nullsafety.3" charcode: dependency: transitive description: name: charcode url: "https://pub.dartlang.org" source: hosted version: "1.2.0-nullsafety.1" clock: dependency: transitive description: name: clock url: "https://pub.dartlang.org" source: hosted version: "1.1.0-nullsafety.1" collection: dependency: transitive description: name: collection url: "https://pub.dartlang.org" source: hosted version: "1.15.0-nullsafety.3" connectivity: dependency: "direct main" description: name: connectivity url: "https://pub.dartlang.org" source: hosted version: "0.4.9" connectivity_for_web: dependency: transitive description: name: connectivity_for_web url: "https://pub.dartlang.org" source: hosted version: "0.3.0" connectivity_macos: dependency: transitive description: name: connectivity_macos url: "https://pub.dartlang.org" source: hosted version: "0.1.0+3" connectivity_platform_interface: dependency: transitive description: name: connectivity_platform_interface url: "https://pub.dartlang.org" source: hosted version: "1.0.6" console_log_handler: dependency: transitive description: name: console_log_handler url: "https://pub.dartlang.org" source: hosted version: "1.1.6" convert: dependency: transitive description: name: convert url: "https://pub.dartlang.org" source: hosted version: "2.1.1" coverage: dependency: transitive description: name: coverage url: "https://pub.dartlang.org" source: hosted version: "0.13.9" crypto: dependency: transitive description: name: crypto url: "https://pub.dartlang.org" source: hosted version: "2.1.4" csslib: dependency: transitive description: name: csslib url: "https://pub.dartlang.org" source: hosted version: "0.16.1" cupertino_icons: dependency: "direct main" description: name: cupertino_icons url: "https://pub.dartlang.org" source: hosted version: "0.1.3" diacritic: dependency: "direct main" description: name: diacritic url: "https://pub.dartlang.org" source: hosted version: "0.1.1" dio: dependency: "direct main" description: name: dio url: "https://pub.dartlang.org" source: hosted version: "3.0.9" dotted_line: dependency: "direct main" description: path: "." ref: tuarrep-remove-padding resolved-ref: "9cf113f59f547e86b09b0d2fbfe616362c6beef1" url: "https://github.com/OwnWeb/dotted_line" source: git version: "1.0.1" easy_localization: dependency: "direct main" description: name: easy_localization url: "https://pub.dartlang.org" source: hosted version: "2.3.2" esys_flutter_share: dependency: "direct main" description: name: esys_flutter_share url: "https://pub.dartlang.org" source: hosted version: "1.0.2" extra_pedantic: dependency: transitive description: name: extra_pedantic url: "https://pub.dartlang.org" source: hosted version: "1.2.0" f_logs: dependency: "direct main" description: name: f_logs url: "https://pub.dartlang.org" source: hosted version: "1.3.0-alpha-02" fake_async: dependency: transitive description: name: fake_async url: "https://pub.dartlang.org" source: hosted version: "1.2.0-nullsafety.1" file: dependency: transitive description: name: file url: "https://pub.dartlang.org" source: hosted version: "5.1.0" file_picker: dependency: "direct main" description: name: file_picker url: "https://pub.dartlang.org" source: hosted version: "1.9.0+1" firebase: dependency: transitive description: name: firebase url: "https://pub.dartlang.org" source: hosted version: "7.3.0" firebase_analytics: dependency: "direct main" description: name: firebase_analytics url: "https://pub.dartlang.org" source: hosted version: "5.0.16" firebase_analytics_platform_interface: dependency: transitive description: name: firebase_analytics_platform_interface url: "https://pub.dartlang.org" source: hosted version: "1.0.1" firebase_analytics_web: dependency: transitive description: name: firebase_analytics_web url: "https://pub.dartlang.org" source: hosted version: "0.1.1" firebase_crashlytics: dependency: "direct main" description: name: firebase_crashlytics url: "https://pub.dartlang.org" source: hosted version: "0.1.4+1" firebase_performance: dependency: "direct main" description: name: firebase_performance url: "https://pub.dartlang.org" source: hosted version: "0.3.2" flurry_analytics: dependency: "direct main" description: path: "." ref: master resolved-ref: aa4f06706bf362fb3d7a52cea33822edbaae8de5 url: "https://github.com/Gorniv/flutter_flurry_analytics" source: git version: "0.1.2" flutter: dependency: "direct main" description: flutter source: sdk version: "0.0.0" flutter_background_geolocation: dependency: "direct main" description: name: flutter_background_geolocation url: "https://pub.dartlang.org" source: hosted version: "1.11.1" flutter_cache_manager: dependency: transitive description: name: flutter_cache_manager url: "https://pub.dartlang.org" source: hosted version: "1.2.2" flutter_dotenv: dependency: "direct main" description: name: flutter_dotenv url: "https://pub.dartlang.org" source: hosted version: "2.1.0" flutter_html: dependency: "direct main" description: name: flutter_html url: "https://pub.dartlang.org" source: hosted version: "0.11.1" flutter_image: dependency: transitive description: name: flutter_image url: "https://pub.dartlang.org" source: hosted version: "3.0.0" flutter_localizations: dependency: "direct main" description: flutter source: sdk version: "0.0.0" flutter_mailer: dependency: "direct main" description: name: flutter_mailer url: "https://pub.dartlang.org" source: hosted version: "0.5.1" flutter_map: dependency: "direct main" description: path: "." ref: "feat/st" resolved-ref: "34f401e8460eab897ff2923dd49248ee444ffb3c" url: "git://github.com/OwnWeb/flutter_map.git" source: git version: "0.8.2" flutter_map_marker_cluster: dependency: "direct main" description: path: "." ref: "feat/st-features" resolved-ref: "5fe830a938c1230e6da93e39aeff088fc8330e99" url: "git://github.com/ownweb/flutter_map_marker_cluster.git" source: git version: "0.2.7" flutter_map_tappable_polyline: dependency: "direct main" description: name: flutter_map_tappable_polyline url: "https://pub.dartlang.org" source: hosted version: "0.3.3" flutter_plugin_android_lifecycle: dependency: transitive description: name: flutter_plugin_android_lifecycle url: "https://pub.dartlang.org" source: hosted version: "1.0.8" flutter_secure_storage: dependency: "direct main" description: name: flutter_secure_storage url: "https://pub.dartlang.org" source: hosted version: "3.3.3" flutter_svg: dependency: "direct main" description: name: flutter_svg url: "https://pub.dartlang.org" source: hosted version: "0.18.0" flutter_test: dependency: "direct dev" description: flutter source: sdk version: "0.0.0" flutter_web_plugins: dependency: transitive description: flutter source: sdk version: "0.0.0" flutter_xlider: dependency: "direct main" description: name: flutter_xlider url: "https://pub.dartlang.org" source: hosted version: "3.4.0" fluttertoast: dependency: "direct main" description: name: fluttertoast url: "https://pub.dartlang.org" source: hosted version: "4.0.1" geodesy: dependency: "direct main" description: name: geodesy url: "https://pub.dartlang.org" source: hosted version: "0.3.2" geojson: dependency: "direct main" description: name: geojson url: "https://pub.dartlang.org" source: hosted version: "0.9.1" geopoint: dependency: transitive description: name: geopoint url: "https://pub.dartlang.org" source: hosted version: "0.7.1" glob: dependency: transitive description: name: glob url: "https://pub.dartlang.org" source: hosted version: "1.2.0" gpx: dependency: "direct main" description: name: gpx url: "https://pub.dartlang.org" source: hosted version: "1.0.0" html: dependency: transitive description: name: html url: "https://pub.dartlang.org" source: hosted version: "0.14.0+3" http: dependency: "direct main" description: name: http url: "https://pub.dartlang.org" source: hosted version: "0.12.2" http_multi_server: dependency: transitive description: name: http_multi_server url: "https://pub.dartlang.org" source: hosted version: "2.2.0" http_parser: dependency: transitive description: name: http_parser url: "https://pub.dartlang.org" source: hosted version: "3.1.4" intl: dependency: transitive description: name: intl url: "https://pub.dartlang.org" source: hosted version: "0.16.1" io: dependency: transitive description: name: io url: "https://pub.dartlang.org" source: hosted version: "0.3.4" iso: dependency: transitive description: name: iso url: "https://pub.dartlang.org" source: hosted version: "0.3.0" js: dependency: transitive description: name: js url: "https://pub.dartlang.org" source: hosted version: "0.6.3-nullsafety.2" keyboard_avoider: dependency: "direct main" description: name: keyboard_avoider url: "https://pub.dartlang.org" source: hosted version: "0.1.2" latlong: dependency: "direct main" description: name: latlong url: "https://pub.dartlang.org" source: hosted version: "0.6.1" lists: dependency: transitive description: name: lists url: "https://pub.dartlang.org" source: hosted version: "0.1.6" logger: dependency: "direct main" description: name: logger url: "https://pub.dartlang.org" source: hosted version: "0.9.2" logging: dependency: transitive description: name: logging url: "https://pub.dartlang.org" source: hosted version: "0.11.4" map_launcher: dependency: "direct main" description: name: map_launcher url: "https://pub.dartlang.org" source: hosted version: "0.10.0" matcher: dependency: transitive description: name: matcher url: "https://pub.dartlang.org" source: hosted version: "0.12.10-nullsafety.1" meta: dependency: transitive description: name: meta url: "https://pub.dartlang.org" source: hosted version: "1.3.0-nullsafety.3" mgrs_dart: dependency: transitive description: name: mgrs_dart url: "https://pub.dartlang.org" source: hosted version: "1.0.1" mime: dependency: transitive description: name: mime url: "https://pub.dartlang.org" source: hosted version: "0.9.6+3" nested: dependency: transitive description: name: nested url: "https://pub.dartlang.org" source: hosted version: "0.0.4" node_interop: dependency: transitive description: name: node_interop url: "https://pub.dartlang.org" source: hosted version: "1.0.3" node_io: dependency: transitive description: name: node_io url: "https://pub.dartlang.org" source: hosted version: "1.0.1+2" node_preamble: dependency: transitive description: name: node_preamble url: "https://pub.dartlang.org" source: hosted version: "1.4.8" package_config: dependency: transitive description: name: package_config url: "https://pub.dartlang.org" source: hosted version: "1.9.3" package_info: dependency: "direct main" description: name: package_info url: "https://pub.dartlang.org" source: hosted version: "0.4.1" path: dependency: "direct main" description: name: path url: "https://pub.dartlang.org" source: hosted version: "1.8.0-nullsafety.1" path_drawing: dependency: transitive description: name: path_drawing url: "https://pub.dartlang.org" source: hosted version: "0.4.1" path_parsing: dependency: transitive description: name: path_parsing url: "https://pub.dartlang.org" source: hosted version: "0.1.4" path_provider: dependency: "direct main" description: name: path_provider url: "https://pub.dartlang.org" source: hosted version: "1.6.11" path_provider_linux: dependency: transitive description: name: path_provider_linux url: "https://pub.dartlang.org" source: hosted version: "0.0.1+1" path_provider_macos: dependency: transitive description: name: path_provider_macos url: "https://pub.dartlang.org" source: hosted version: "0.0.4+1" path_provider_platform_interface: dependency: transitive description: name: path_provider_platform_interface url: "https://pub.dartlang.org" source: hosted version: "1.0.1" pedantic: dependency: "direct main" description: name: pedantic url: "https://pub.dartlang.org" source: hosted version: "1.10.0-nullsafety.2" petitparser: dependency: transitive description: name: petitparser url: "https://pub.dartlang.org" source: hosted version: "3.0.4" platform: dependency: transitive description: name: platform url: "https://pub.dartlang.org" source: hosted version: "2.2.1" plugin_platform_interface: dependency: transitive description: name: plugin_platform_interface url: "https://pub.dartlang.org" source: hosted version: "1.0.2" pool: dependency: transitive description: name: pool url: "https://pub.dartlang.org" source: hosted version: "1.5.0-nullsafety.2" positioned_tap_detector: dependency: transitive description: name: positioned_tap_detector url: "https://pub.dartlang.org" source: hosted version: "1.0.3" process: dependency: transitive description: name: process url: "https://pub.dartlang.org" source: hosted version: "3.0.13" proj4dart: dependency: transitive description: name: proj4dart url: "https://pub.dartlang.org" source: hosted version: "1.0.5" provider: dependency: "direct main" description: name: provider url: "https://pub.dartlang.org" source: hosted version: "4.3.1" provider_architecture: dependency: "direct main" description: name: provider_architecture url: "https://pub.dartlang.org" source: hosted version: "1.0.6" pub_semver: dependency: transitive description: name: pub_semver url: "https://pub.dartlang.org" source: hosted version: "1.4.4" quiver: dependency: transitive description: name: quiver url: "https://pub.dartlang.org" source: hosted version: "2.1.3" rflutter_alert: dependency: "direct main" description: path: "." ref: "feat/icon-widget" resolved-ref: "0439d0cb5e83e4e5faa4f8831d5d4e1178a0db95" url: "https://github.com/OwnWeb/rflutter_alert.git" source: git version: "1.1.0" rxdart: dependency: transitive description: name: rxdart url: "https://pub.dartlang.org" source: hosted version: "0.24.0" sembast: dependency: transitive description: name: sembast url: "https://pub.dartlang.org" source: hosted version: "2.4.4+1" shared_preferences: dependency: transitive description: name: shared_preferences url: "https://pub.dartlang.org" source: hosted version: "0.5.8" shared_preferences_linux: dependency: transitive description: name: shared_preferences_linux url: "https://pub.dartlang.org" source: hosted version: "0.0.2+1" shared_preferences_macos: dependency: transitive description: name: shared_preferences_macos url: "https://pub.dartlang.org" source: hosted version: "0.0.1+7" shared_preferences_platform_interface: dependency: transitive description: name: shared_preferences_platform_interface url: "https://pub.dartlang.org" source: hosted version: "1.0.3" shared_preferences_web: dependency: transitive description: name: shared_preferences_web url: "https://pub.dartlang.org" source: hosted version: "0.1.2+4" shelf: dependency: transitive description: name: shelf url: "https://pub.dartlang.org" source: hosted version: "0.7.5" shelf_packages_handler: dependency: transitive description: name: shelf_packages_handler url: "https://pub.dartlang.org" source: hosted version: "2.0.0" shelf_static: dependency: transitive description: name: shelf_static url: "https://pub.dartlang.org" source: hosted version: "0.2.8" shelf_web_socket: dependency: transitive description: name: shelf_web_socket url: "https://pub.dartlang.org" source: hosted version: "0.2.3" sky_engine: dependency: transitive description: flutter source: sdk version: "0.0.99" slugify2: dependency: transitive description: name: slugify2 url: "https://pub.dartlang.org" source: hosted version: "0.2.1" smooth_star_rating: dependency: "direct main" description: name: smooth_star_rating url: "https://pub.dartlang.org" source: hosted version: "1.1.1" source_map_stack_trace: dependency: transitive description: name: source_map_stack_trace url: "https://pub.dartlang.org" source: hosted version: "2.1.0-nullsafety.3" source_maps: dependency: transitive description: name: source_maps url: "https://pub.dartlang.org" source: hosted version: "0.10.10-nullsafety.2" source_span: dependency: transitive description: name: source_span url: "https://pub.dartlang.org" source: hosted version: "1.8.0-nullsafety.2" sqflite: dependency: transitive description: name: sqflite url: "https://pub.dartlang.org" source: hosted version: "1.3.0" sqflite_common: dependency: transitive description: name: sqflite_common url: "https://pub.dartlang.org" source: hosted version: "1.0.0+1" stack_trace: dependency: transitive description: name: stack_trace url: "https://pub.dartlang.org" source: hosted version: "1.10.0-nullsafety.1" stream_channel: dependency: transitive description: name: stream_channel url: "https://pub.dartlang.org" source: hosted version: "2.1.0-nullsafety.1" string_scanner: dependency: transitive description: name: string_scanner url: "https://pub.dartlang.org" source: hosted version: "1.1.0-nullsafety.1" synchronized: dependency: transitive description: name: synchronized url: "https://pub.dartlang.org" source: hosted version: "2.2.0" term_glyph: dependency: transitive description: name: term_glyph url: "https://pub.dartlang.org" source: hosted version: "1.2.0-nullsafety.1" test: dependency: "direct dev" description: name: test url: "https://pub.dartlang.org" source: hosted version: "1.16.0-nullsafety.5" test_api: dependency: transitive description: name: test_api url: "https://pub.dartlang.org" source: hosted version: "0.2.19-nullsafety.2" test_core: dependency: transitive description: name: test_core url: "https://pub.dartlang.org" source: hosted version: "0.3.12-nullsafety.5" theme_provider: dependency: "direct main" description: name: theme_provider url: "https://pub.dartlang.org" source: hosted version: "0.4.0+1" transparent_image: dependency: "direct main" description: name: transparent_image url: "https://pub.dartlang.org" source: hosted version: "1.0.0" tuple: dependency: transitive description: name: tuple url: "https://pub.dartlang.org" source: hosted version: "1.0.3" typed_data: dependency: transitive description: name: typed_data url: "https://pub.dartlang.org" source: hosted version: "1.3.0-nullsafety.3" unicode: dependency: transitive description: name: unicode url: "https://pub.dartlang.org" source: hosted version: "0.2.3" url_launcher: dependency: "direct main" description: name: url_launcher url: "https://pub.dartlang.org" source: hosted version: "5.5.0" url_launcher_linux: dependency: transitive description: name: url_launcher_linux url: "https://pub.dartlang.org" source: hosted version: "0.0.1+1" url_launcher_macos: dependency: transitive description: name: url_launcher_macos url: "https://pub.dartlang.org" source: hosted version: "0.0.1+5" url_launcher_platform_interface: dependency: transitive description: name: url_launcher_platform_interface url: "https://pub.dartlang.org" source: hosted version: "1.0.6" url_launcher_web: dependency: transitive description: name: url_launcher_web url: "https://pub.dartlang.org" source: hosted version: "0.1.1+2" uuid: dependency: "direct main" description: name: uuid url: "https://pub.dartlang.org" source: hosted version: "2.2.0" validate: dependency: transitive description: name: validate url: "https://pub.dartlang.org" source: hosted version: "1.7.0" vector_math: dependency: transitive description: name: vector_math url: "https://pub.dartlang.org" source: hosted version: "2.1.0-nullsafety.3" vibration: dependency: "direct main" description: name: vibration url: "https://pub.dartlang.org" source: hosted version: "1.4.0" vm_service: dependency: transitive description: name: vm_service url: "https://pub.dartlang.org" source: hosted version: "4.0.2" watcher: dependency: transitive description: name: watcher url: "https://pub.dartlang.org" source: hosted version: "0.9.7+15" weather_icons: dependency: "direct main" description: name: weather_icons url: "https://pub.dartlang.org" source: hosted version: "2.0.1" web_socket_channel: dependency: transitive description: name: web_socket_channel url: "https://pub.dartlang.org" source: hosted version: "1.1.0" webkit_inspection_protocol: dependency: transitive description: name: webkit_inspection_protocol url: "https://pub.dartlang.org" source: hosted version: "0.5.0+1" wkt_parser: dependency: transitive description: name: wkt_parser url: "https://pub.dartlang.org" source: hosted version: "1.0.7" xdg_directories: dependency: transitive description: name: xdg_directories url: "https://pub.dartlang.org" source: hosted version: "0.1.0" xml: dependency: transitive description: name: xml url: "https://pub.dartlang.org" source: hosted version: "4.2.0" xxtea: dependency: transitive description: name: xxtea url: "https://pub.dartlang.org" source: hosted version: "2.0.3" yaml: dependency: transitive description: name: yaml url: "https://pub.dartlang.org" source: hosted version: "2.2.1" sdks: dart: ">=2.10.0-110 <2.11.0" flutter: ">=1.22.5 <1.23.0" ```
christocracy commented 3 years ago

I didn't want to update due to breaking changes with ProviderChangeEvent

1.9.3 probably doesn't support latest iOS 14 or Android 11.

I just created a fresh new $ flutter create foo, added the plugin to pubspec.yaml and successfully built.

Everything is fine in your pubspec.yaml. I suggest you do a:

$ flutter clean
$ flutter build ios
christocracy commented 3 years ago

Android toolchain - develop for Android devices (Android SDK version 28.0.3)

Btw, you should upgrade your Android SDK version to >= 29. Google Play Store now requires a minimum targetSdkVersion 29 on all apps now.

HugoHeneault commented 3 years ago

Here is what I tried

flutter clean
flutter run

Still not working...

Launching lib/main.dart on iPhone 8 in debug mode...

Running pod install...                                              7,2s
Running Xcode build...                                                  
Xcode build done.                                           14,5s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    Command CompileSwift failed with a nonzero exit code
    Command CompileSwift failed with a nonzero exit code
    Command CompileSwift failed with a nonzero exit code
    Command CompileSwift failed with a nonzero exit code
    ld: framework not found TSBackgroundFetch
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description

Could not build the application for the simulator.
Error launching application on iPhone 8.
HugoHeneault commented 3 years ago

With more verbose output:

 Ld /Users/hugo/dev/company/client/build/ios/Debug-iphonesimulator/background_fetch/background_fetch.framework/background_fetch normal (in target 'background_fetch' from project 'Pods')
                         cd /Users/hugo/dev/company/client/ios/Pods
                         /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios9.0-simulator -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk
                         -L/Users/hugo/dev/company/client/build/ios/Debug-iphonesimulator/background_fetch -F/Users/hugo/dev/company/client/build/ios/Debug-iphonesimulator/background_fetch -F/Users/hugo/dev/company/client/ios/Pods/../.symlinks/plugins/background_fetch/ios
                         -F/Users/hugo/dev/company/client/ios/Pods/../Flutter -filelist /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/Objects-normal/x86_64/background_fetch.LinkFileList
                         -install_name @rpath/background_fetch.framework/background_fetch -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker
                         /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/Objects-normal/x86_64/background_fetch_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version
                         -Xlinker 2 -fobjc-arc -fobjc-link-runtime -framework Flutter -framework TSBackgroundFetch -framework Foundation -Xlinker -no_adhoc_codesign -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker
                         /Users/hugo/Library/Developer/Xcode/DerivedData/Runner-gndyahvfgiutktgulvnluyvdexqf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/background_fetch.build/Objects-normal/x86_64/background_fetch_dependency_info.dat -o
                         /Users/hugo/dev/company/client/build/ios/Debug-iphonesimulator/background_fetch/background_fetch.framework/background_fetch
                     ld: framework not found TSBackgroundFetch
                     clang: error: linker command failed with exit code 1 (use -v to see invocation)

                     ** BUILD FAILED **

                     The following build commands failed:
                        CompileSwift normal x86_64 /usr/local/Caskroom/flutter/latest/flutter/.pub-cache/hosted/pub.dartlang.org/vibration-1.7.3/ios/Classes/VibrationPluginSwift.swift
                        CompileSwift normal x86_64 /usr/local/Caskroom/flutter/latest/flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-0.10.0/ios/Classes/SwiftMapLauncherPlugin.swift
                        CompileSwift normal x86_64 /usr/local/Caskroom/flutter/latest/flutter/.pub-cache/hosted/pub.dartlang.org/esys_flutter_share-1.0.2/ios/Classes/SwiftEsysFlutterSharePlugin.swift
                        CompileSwift normal x86_64 /usr/local/Caskroom/flutter/latest/flutter/.pub-cache/hosted/pub.dartlang.org/app_settings-4.0.4/ios/Classes/SwiftAppSettingsPlugin.swift
                        Ld /Users/hugo/dev/company/client/build/ios/Debug-iphonesimulator/background_fetch/background_fetch.framework/background_fetch normal
                     (5 failures)

The 4 CompileSwift issues are just warnings so there is only the background_fetch.framework failing...

christocracy commented 3 years ago

Open your app in XCode and show me a screenshot with Development Pods expanded as shown:

HugoHeneault commented 3 years ago

Here it is:

image

HugoHeneault commented 3 years ago

Thanks for your help! Appreciate it!

christocracy commented 3 years ago

Close Xcode and relaunch. Re-build in XCode

HugoHeneault commented 3 years ago

So I tried relaunching XCode, rebooting. Starting from a fresh building repo of my project... Still the same.

I think downgrading from flutter 1.26 beta to 1.22.6 stable mixed up something but I don't get it. Gonna reinstall flutter

If you have any more ideas?

Thanks 🙏

HugoHeneault commented 3 years ago

So it seems that the flutter 1.26->1.22 downgrade broke something.

I reinstalled flutter and everything is now working as before.

Sorry for the mess and thanks a lot for your time!

christocracy commented 3 years ago

Good.