robreuss / VirtualGameController

Software-based game controllers for iOS, tvOS, OS X and watchOS in Swift 4.2.
MIT License
462 stars 44 forks source link

Added VirtualGameController.podspec.json inside the root folder #13

Closed Dzamir closed 8 years ago

Dzamir commented 8 years ago

This way you can easily install the latest head version or a fork. Also, the podspec points to the 0.8 version

robreuss commented 8 years ago

Thanks! I tested the this yesterday and it looks like it only pulls the source files for the framework into the project, but not the framework project itself. Wouldn't it be better if it brought in the framework project? Of course, that makes for it's own complication because there are four platform-specific framework projects. Thoughts on the best way to do this?

Dzamir commented 8 years ago

I think that Cocoapods already compiles the source code as framework for each platform by using the 'use_frameworks!' directive, but I'm not sure if this is what do you mean.

robreuss commented 8 years ago

The problem is that right now the platform-specific projects are composed of different sets of the source files. I think I fix the need for that by using os-selecting compiler directives to exclude out incompatible files. For example, the smallest subset is used by the watchOS framework.