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

Adding multiple .gesturecomposer folders to project causes Prepare Build Error #10

Open
justbcuz opened this issue Sep 30, 2024 · 1 comment

Comments

@justbcuz
Copy link

I am testing out your GestureKit package and I am having problems including more than one .gesturecomposer folder on my project. When I build I get these errors.

Multiple commands produce '/Users/e132740/Library/Developer/Xcode/DerivedData/MTReilly_Career_Day_2024-glkjbiksjvatqdeqfatfgopaogrm/Build/Products/Debug-xros/MTReilly Career Day 2024.app/Thumbnail.png'

Multiple commands produce '/Users/e132740/Library/Developer/Xcode/DerivedData/MTReilly_Career_Day_2024-glkjbiksjvatqdeqfatfgopaogrm/Build/Products/Debug-xros/MTReilly Career Day 2024.app/Preview.usdz'

Multiple commands produce '/Users/e132740/Library/Developer/Xcode/DerivedData/MTReilly_Career_Day_2024-glkjbiksjvatqdeqfatfgopaogrm/Build/Products/Debug-xros/MTReilly Career Day 2024.app/main.json'

What is the best way to bundle in multiple gesturecomposers?

Do you have an example VisionOS project using the GestureKit package? Showing the best way to organize and and access bundled gesturecomposers?

@justbcuz
Copy link
Author

justbcuz commented Oct 2, 2024

I think I figured it out. Let me know if there is an easier way.

  1. Had to Add Files with Create folders Group option.
  2. Change Build Rules from Apply to Each File to Apply Once to Folder.
  3. Manually add the folder to the Build Phase Copy Bundle Resources.
  4. Then use Bundle.main.url(forResource: "018f53bc-5110-7d22-a844-a5a5a212825d" , withExtension: "gesturecomposer")! in the GestureDetectorConfiguration initializer.

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