wang-bin / fvp

Flutter video player plugin for all desktop+mobile platforms. download prebuilt examples from github actions. https://pub.dev/packages/fvp
BSD 3-Clause "New" or "Revised" License
197 stars 31 forks source link

issue running on macos #57

Closed ujwalbasnet1 closed 11 months ago

ujwalbasnet1 commented 11 months ago

when I add the package to pubspec.yaml and try to run the project on macos. it gives errors.

dyld[26501]: Library not loaded: @rpath/FBLPromises.framework/Versions/A/FBLPromises
  Referenced from: <B2116D51-EA02-342C-A981-9F28EE8BD1C1> /users/project/build/macos/Build/Products/Debug/Zynk.app/Contents/MacOS/Zynk
  Reason: tried: '/usr/lib/swift/FBLPromises.framework/Versions/A/FBLPromises' (no such file, not in dyld cache), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/swift/FBLPromises.framework/Versions/A/FBLPromises' (no such file), '/users/project/build/macos/Build/Products/Debug/Zynk.app/Contents/Frameworks/FBLPromises.framework/Versions/A/FBLPromises' (code signature invalid in <77C1F7FC-97FD-360A-8C1D-575BC54CE600> '/users/project/build/macos/Build/Products/Debug/Zynk.app/Contents/Frameworks/FBLPromises.framework/Versions/A/FBLPromises' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x000325E0, codeBlobSize=0x00005250), '/users/project/build/macos/Build/Products/Debug/Zynk.app/Contents/MacOS/Frameworks/FBLPromises.framework/Versions/A/FBLPromises' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/FBLPromises.framework/Versions/A/FBLPromises' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/FBLPromises.framework/Versions/A/FBLPromises' (no such file), '/users/project/build/macos/Build/Products/Debug/Zynk.app/Contents/Frameworks/FBLPromises.framework/Versions/A/FBLPromises' (code signature invalid in <77C1F7FC-97FD-360A-8C1D-575BC54CE600> '/users/project/build/macos/Build/Products/Debug/Zynk.app/Contents/Frameworks/FBLPromises.framework/Versions/A/FBLPromises' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x000325E0, codeBlobSize=0x00005250), '/usr/lib/swift/FBLPromises.framework/Versions/A/FBLPromises' (no such file, not in dyld cache), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/swift/FBLPromises.framework/Versions/A/FBLPromises' (no such file), '/users/project/build/macos/Build/Products/Debug/Zynk.app/Contents/Frameworks/FBLPromises.framework/Versions/A/FBLPromises' (code signature invalid in <77C1F7FC-97FD-360A-8C1D-575BC54CE600> '/users/project/build/macos/Build/Products/Debug/Zynk.app/Contents/Frameworks/FBLPromises.framework/Versions/A/FBLPromises' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x000325E0, codeBlobSize=0x00005250), '/users/project/build/macos/Build/Products/Debug/Zynk.app/Contents/MacOS/Frameworks/FBLPromises.framework/Versions/A/FBLPromises' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/FBLPromises.framework/Versions/A/FBLPromises' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/FBLPromises.framework/Versions/A/FBLPromises' (no such file), '/users/project/build/macos/Build/Products/Debug/Zynk.app/Contents/Frameworks/FBLPromises.framework/Versions/A/FBLPromises' (code signature invalid in <77C1F7FC-97FD-360A-8C1D-575BC54CE600> '/users/project/build/macos/Build/Products/Debug/Zynk.app/Contents/Frameworks/FBLPromises.framework/Versions/A/FBLPromises' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x000325E0, codeBlobSize=0x00005250), '/Library/Frameworks/FBLPromises.framework/Versions/A/FBLPromises' (no such file), '/System/Library/Frameworks/FBLPromises.framework/Versions/A/FBLPromises' (no such file, not in dyld cache)
Error waiting for a debug connection: The log reader stopped unexpectedly, or never started.
Error launching application on macOS.
wang-bin commented 11 months ago

not our issue. please check your dependencies and find out the one depends on FBLPromises, and report an issue for that project.

ujwalbasnet1 commented 11 months ago

project run fine when removing the package, and adding the package reproduce the above issue.. @wang-bin

ujwalbasnet1 commented 11 months ago

https://github.com/flutter/flutter/issues/134107

looks like related

Nicoeevee commented 10 months ago

@wang-bin please check this https://github.com/flutter/flutter/issues/139118#issuecomment-1831184694

wang-bin commented 10 months ago

@wang-bin please check this flutter/flutter#139118 (comment)

the solution is code sign FBLPromises.framework manually. I can do nothing because my plugin does not depends on that framework, it's your app's dependency. https://github.com/flutter/flutter/issues/134107#issuecomment-1737217123 it says the framework comes from PromisesObjC