Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7502285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:48:49+00:00 2026-05-29T20:48:49+00:00

In the AdWhirl SDK—a multi-ad network assemblage—the framework is structured so that, if you

  • 0

In the AdWhirl SDK—a multi-ad network assemblage—the framework is structured so that, if you don’t additionally import an accompanying library from, say, Google AdSense, or from AdMob, it will simply ignore those code branches when compiling and running the code. That is, there is code in the framework that requires the AdSense SDK to run, but if you don’t include AdSense it just ignores that code, no compiler errors or anything. There is no user-required commenting out of code or anything like that.

I’m trying to build a framework with a similar requirement and I cannot for the life of me figure out how they got that to work. The default, obviously, is that you’ll get linker errors in your code at compile time because of the missing libraries. How do I export a framework (currently as a .a file) that has this functionality?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T20:48:50+00:00Added an answer on May 29, 2026 at 8:48 pm

    When you do something like:

    [[ClassName alloc] init]
    

    What you’re actually doing is sending the alloc message to the ClassName metaclass and then init to the instance of ClassName that the metaclass attempts to return (or to no-one if the metaclass returned nil for want of resources).

    Additionally, the Objective-C runtime is reflective. Amongst other things, that means you can query it to find metaclasses from the string name of the classes. E.g.

    Class metaclass = NSClassFromString(@"ClassName");
    

    Which returns either the named metaclass or nil if that class doesn’t exist. Putting that together:

    id instance = [[NSClassFromString(@"ClassName") alloc] init];
    

    Will give you an instance of the class if such a class is known to the app and suitable resources are available. In the case of optional link libraries, this is therefore a way to try to get an instance of a class but to fail safely if the library containing the class wasn’t linked.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently using the AdWhirl SDK for the iPhone so I can switch Ad
Hi im getting a error saying that adwhirl cannot parse json response Im trying
im looking for an ad framework that can display in-house ads in my finished
I need to implement adwhirl ad in my iphone app.I don't know how ı
I just started getting this error with adwhirl. E/AdWhirl SDK( 345): Unable to parse
I have created an account of Adwhirl and add my Admob network to it.I
I've been reading all evening and it seems that to get an adWhirl ad
I have downloaded the latest AdWhirl and AdMob SDK. Read and done with the
I currently have AdMob and iAd configured in the AdWhirl settings for my iOS
I am using AdMob through AdWhirl and last week running in the simulator showed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.