• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Library Include Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Library Include Questions


  • Subject: Re: Library Include Questions
  • From: Fritz Anderson <email@hidden>
  • Date: Fri, 20 Sep 2013 11:42:24 -0500

On 19 Sep 2013, at 11:56 PM, Patrick Cusack <email@hidden> wrote:

> Well, I just realized that CIFilters don't work on iOS, but my question still stands.

Core Image was added to iOS in version 5.

The Core Image headers are #imported in UIColor.h and UIImage.h, which are in turn #imported by UIKit.h. That's why the compiler did not detect any missing symbols when you compiled; only the linker was able to see that your Core Images references were not backed by the Core Image framework.

(Use #import in preference to #include unless you affirmatively know otherwise.)

By the way, going the other way: The clang in Xcode 5 implements modules and enables them by default in new projects (CLANG_ENABLE_MODULES). http://clang.llvm.org/docs/Modules.html says the feature is experimental, but there it is. The upshot is that if you #import <CoreImage/CoreImage.h>, clang will automatically add CoreImage.framework to the link phase. Don't rely on this if you share the project with someone using an earlier version of the compiler. I don't know whether the #imports in UIColor and UIImage are sufficient.

	— F


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Library Include Questions
      • From: Roland King <email@hidden>
References: 
 >IB won't let me set view height (From: Rick Mann <email@hidden>)
 >Re: IB won't let me set view height (From: Luther Baker <email@hidden>)
 >Library Include Questions (From: Patrick Cusack <email@hidden>)
 >Re: Library Include Questions (From: Patrick Cusack <email@hidden>)

  • Prev by Date: Re: Xcode 5.0
  • Next by Date: Re: Creating Core Data Accessor Methods : Doesn't work?
  • Previous by thread: Re: Library Include Questions
  • Next by thread: Re: Library Include Questions
  • Index(es):
    • Date
    • Thread