Can I have a cross-platform framework for OS X and tvOS?
I am writing a tvOS app. Up to now I was developing the code as an OS X framework with a prototyping OS X app.
Now I would like to add the production tvOS app into the mix, keeping the OS X prototype. Which means I need the framework to be built both for OS X and tvOS. This should not be a problem in the principle, since I only use frameworks available on both platforms.
Is it possible to build a cross-platform framework? What settings do I use?
- Xcode doesnt have Embed Frameworks section
- umbrella header for module 'myFramework' does not include header 'otherFramework.h'
- Using GLKMath from GLKit in Swift
- FBSDKCoreKit/FBSDKCoreKit.h not found error
- Bug in TWTweetComposeViewController?
- Xcode 6 / Beta 4: using bridging headers with framework targets is unsupported
Solutions Collect From Internet About “Can I have a cross-platform framework for OS X and tvOS?”
Yes it’s commonly done. Create a new Xcode target, targetting tvOS, and add the same source files as the OSX target.
If you need to include/exclude/change code or behaviour at compile time then you need to
- Using App Links Hosting API for link shared on Facebook from iOS app
- How to impliment iOS In App Purchase for books with dynamic price?
- Issue with NSMakeCollectable when converting to ARC
- Fastest YUV420P to RGBA conversion on iOS using the CPU
- Property Declaration and Automatic Backing Storage Allocation
- Moving reordering control to left
- How to remove the last unicode symbol from NSString
- Releasing unused pages in UIPageViewController
- Best way to enum NSString
- iOS viewDidLoad for UIView
- Is it possible to run iOS simulator on a Mac without Xcode installed?
- wrong position of tile map when i convert to retina display
- Implement MobileWIFI Private Framework in Xcode 7.3
- iOS lazy-loading of table images
- Apple TestFlight upload warning ITMS-90191: missing `beta-reports-active` entitlement