ataugeron / SpriteKit-Spring

SpriteKit API reproducing UIView's spring animations with SKAction
Apache License 2.0
249 stars 32 forks source link

Cocoa Pods support for tvOS #11

Open crashoverride777 opened 7 years ago

crashoverride777 commented 7 years ago

Is it possible to provide cocoa pods support for tvOS?. The helper works flawlessly on tvOS but doesn't have cocoa pods support which makes it harder to manage when having a universal iOS and tvOS game.

Thanks for your great helper.

ataugeron commented 7 years ago

Didn't PR #3 add tvOS support? If you require a change in the podspec, I welcome pull requests :-)

crashoverride777 commented 7 years ago

Hey,

Thanks for the reply.

I dont think it is, when you go to the cocoa pods website I cannot find it under the tvOS section. I use the cocoa pods mac application for updating and installing dependencies, if I try to add the pod to my tvOS target I get the following error. .

"Analyzing dependencies [!] The platform of the target MyGame (tvOS) (tvOS 10.0) is not compatible with SpriteKit-Spring (1.0.1), which does not support tvos."

I am not an expert when you upload reps. to cocoaPods, I haven't done it yet with my gitHub projects. At the moment its just a bit of a hassle when you have a universal project for iOS and tvOS. You either have to

1) Copy the .swift file into the project (set for both targets). 2) Use cocoa pods for iOS and copy the .swift file into the project for the tvOS target

It would be nice if I could use cocoa pods for tvOS as well. There is no code change needed to the actual project, just not sure if its a hassle for you.

Thanks again for your reply and your support