Note that there are some explanatory texts on larger screens.

plurals
  1. POUniversal iPhone/iPad project with iAd framework
    primarykey
    data
    text
    <p>how can I set up a Universal project which has support for iAd (just in the iPhone app)?</p> <p>Using the iPhone SDK 4, let's suppose I do the following steps:</p> <ol> <li>Open XCode;</li> <li>Go to File > New Project ;</li> <li>Select Window-based application (or whatever), choose Product: <strong>Universal</strong> (and after choose a name for the project).</li> </ol> <p>It will create a Universal project skeleton with iPhone/iPad groups as usual. Now, I decide to integrate iAd in my iPhone App, so I do the following:</p> <ol> <li>Right-click in the project's group called Frameworks > Add > Existing Frameworks...</li> <li>Choose <strong>iAd.framework</strong> > Add</li> </ol> <p>So far, so good. I can simply Build And Run using the Active Executable as <strong>Project Name - iPhone Simulator 4.0</strong> and the project runs OK. Suppose I change the Active Executable to <strong>Project Name - iPad Simulator 3.2</strong>. Although the iAd.framework is still being referenced in the Frameworks successfully (without being marked with the Red color), the App crashed in the iPad simulator and I get the following error message: </p> <p><em>dyld: Library not loaded: /System/Library/Frameworks/iAd.framework/iAd Referenced from: /Users/nexia1/Library/Application Support/iPhone Simulator/3.2/Applications/8479EE14-28AA-4628-A668-CCF3FE770628/Untitled.app/Untitled Reason: image not found</em></p> <p>Can I use the iAd in such a Universal project? (even that I only references it in my iPhone app).</p> <p>Thanks in advance</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload