Skip to content

[Bug] App crash when install 6.7.1 through SPM #6

@chipengliu-tubi

Description

@chipengliu-tubi

Hi There,

Currently, we manage our codebase with Xcode workspace which contains multiple Xcode projects. And we try to install YouboraAVPlayerAdapter 6.7.1 for one of Xcode projects.

if I add YouboraAVPlayerAdapter for the submodule Xcode project (not the project of the host application),
It works well on simulators but crashes on the iOS devices

image

Package.resolved

{
      "identity" : "avplayer-adapter-ios",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/NPAW/avplayer-adapter-ios.git",
      "state" : {
        "revision" : "a6c2cc7dc0e98b59c44dfcaafe7414834dd8d8a2",
        "version" : "6.7.1"
      }
    },
{
      "identity" : "lib-plugin-spm-ios",
      "kind" : "remoteSourceControl",
      "location" : "https://bitbucket.org/npaw/lib-plugin-spm-ios.git",
      "state" : {
        "revision" : "d43eda8593d62650b4f90958aadfa9179b6f6713",
        "version" : "6.7.4"
      }
    },

Error log

dyld[789]: Library not loaded: @rpath/YouboraLib.framework/YouboraLib
  Referenced from: <A94B05E7-E165-3CF4-951F-B2C25640E068> /private/var/containers/Bundle/Application/973CB421-68E6-4A99-B736-47DE1D3520F8/Tubi-iOS.app/Frameworks/Player.framework/Player

Actual result
crashes on the iOS devices

Expected result
No on the iOS devices

Note
I found a tricky solution to work around this issue: Add YouboraLib dependency to the project which contains the application target through SPM.

image image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions