Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring ARKit with Swift Package Dependency #254

Open
BoazTelem opened this issue Jun 27, 2021 · 1 comment
Open

Configuring ARKit with Swift Package Dependency #254

BoazTelem opened this issue Jun 27, 2021 · 1 comment

Comments

@BoazTelem
Copy link
Contributor

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?

@BoazTelem
Copy link
Contributor Author

@piemonte - Patrick maybe you know?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant