Skip to content

Configuring ARKit with Swift Package Dependency #254

Description

@BoazTelem

Hi Guys!

I am using the NextLevel framework as a Swift Package Dependency in order to enable the ARKit
I have added the compiler flag: USE_ARKIT

I can see that it works within project but the flag is not passed to the Swift Package Dependency when complaining the whole project.

I have noticed that in the documentation it's mentioned that if you use POD you should further do this:

If you use Cocoapods, you can include -D USE_ARKIT or -D USE_TRUE_DEPTH with the following Podfile addition or by adding it to your Xcode build settings.

  installer.pods_project.targets.each do |target|
    # setup NextLevel for ARKit use
    if target.name == 'NextLevel'
      target.build_configurations.each do |config|
        config.build_settings['OTHER_SWIFT_FLAGS'] = ['$(inherited)', '-DUSE_ARKIT']
      end
    end
  end

My question is what I need to do to enable this flag when using Swift Package Dependency?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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