projectGenerator icon indicating copy to clipboard operation
projectGenerator copied to clipboard

Addon Multiplatform xcframeworks

Open danoli3 opened this issue 1 year ago • 2 comments

An issue to fix for xcframeworks for Addons folder search is excluding other platform directories:

I.E. opencv: xcframework is included for tvOS/iOS into the macOS project.

Only occurs with addon project tests where multiple targets downloaded

While technically we could fuse all these xcframeworks together at some point, at the moment for addons having multiple of the same xcframework will cause errors, they meant to be all one.

Fix: not include the other platform xcframeworks in the projectGenerator

danoli3 avatar Feb 10 '24 03:02 danoli3

will need to add another target for this as we have:

OSX (Xcode), IOS (Xcode).

We will need macOS (Xcode).

  • macOS will target a new core Project file that uses and targets xcframeworks in the macOS subfolders.

Also will need to modify the addon search paths for OSX and iOS to ignore the macOS xcframework folders And have the macOS one exclusively look at the macOS folder as type to prevent double linking issues

danoli3 avatar Jun 08 '24 07:06 danoli3

@dimitre for this, is there a way to filter out addon locations for targets like so:

  • tvOS: do not look in addon folders containing "osx", "ios", "macos"
  • iOS: do not look in addon folders containing "tvos", "ios", "macOS"
  • OSX: do not look in addon folders containing "tvos", "ios", "macOS"

If this is in then we can look at merging the Xcode changes as this is the only main issue before mega framework stuff

danoli3 avatar Jun 25 '24 03:06 danoli3