I am trying to add iAds in my existing Iphone application. I have implemented everything by following: http://www.raywenderlich.com/1371/how-to-integrate-iad-into-your-iphone-app
but the ads do not show up in my app. I am using XCode 4.0.1 and iOS 4.3.3.
I can't even run the example given on that link. When I run my existing code on XCode 3.x version everything works fine and ads show up correctly.
Can anyone tell me what's the problem with Xcode 4.0.1 version ?
Thanks.
I upgraded my XCode and it solved the issue. May be it was a bug with XCode
Related
I just updated my iphone 4S to ios 6.1.1 from 6.1 over the weekend b/c it said it was a critical update. However, now when I try to test my app on the phone using Xcode 4.6, it says "Xcode cannot run using the selected device." I checked the apple site for updated but didn't see any xcode updates. Any ideas?
EDIT: I opened the Xcode preferences and checked for updates and it said there weren't any but then my phone suddenly started working again though. Thanks for the comments and input.
Issue fixed itself after checking for updates in xcode preferences.
I want to create phonegap application for iPhone/iPad. I checked their website but it says that it supports only xcode 4.3. I think that there will be a way to install lower versions of phonegap like 1.5 or something in xcode 4.2. But I din find any proper documentation for the same in their website (for xcode 4.2). Can anybody help me with the issue.
I can't update to xcode 4.2 as I am using snow leaprd and I don't want to update to lion.
Duplicate of this question.
You can just fix the compile errors. I documented the process here. It works with the basic app, not sure if you add more complex codes.
I recently upgraded xcode to 4.2.1 (with macOS 10.7.3).
I have two iphone which one is 4GS and the other is 3GS. And when I upgraded both phone to iOS 5.1, 4GS works well but 3GS not works with following error message.
The version of iOS on “Test iPhone” does not match any of the versions of iOS supported for development with this installation of the iOS SDK.
xcode says it support from iOS 5.0 (9A334).
And I want to know if this is from my mis-configuration of device or officially iPhone 3GS is not supported yet.
Is there anyone who suffers similar problem ?
Well, you may want to go to xcode 4.3.1, which was released recently along with the 5.1 SDK.
After the installation you will have to re-install simulators for older iOS and debug support for older devices respectively even older iOS versions.
Out of the top of my head: In the top left corner of xcode in the drop down list where you select your build target and the targetting device/simulator there should be some menu item "install more simulators" or so. Click on that and follow the GUI. It is quite selfexplaining but the downloads may take some time.
To develop in iOS 5.1 you have to upgrade sdk to latest one. I cant understand how you'r 4Gs worked fine
Presently I am Working With Integrate iAds and make a lite version of the app. My Problem is Previously I am working with iAds is xcode 4.1.3 but Presently I was used xcode 3.1.3 iAds are not supporting what we do please help me.
NSString *contentSize = UIInterfaceOrientationIsPortrait(self.interfaceOrientation) ? ADBannerContentSizeIdentifier320x50 : ADBannerContentSizeIdentifier480x32;
This line error: ADBannerContentSizeidentifier320x50'undeclared(first use in this function)
First, even in the newest versions of iOS, ADBannerContentSizeidentifier320x50 is no longer the preferred constant. Use ADBannerContentSizeIdentifierPortrait instead.
But I think the real issue here is that Xcode 3.1.3 is too old to include the iAd framework. It was first included in iOS4 and so won't be there in anything older. Your choices therefore are:
Use a newer version of Xcode (and iOS)
Don't use iAds. There are other ad networks such as AdMob that still support older devices
Upgrade your SDK to the latest version.
You need at least iOS 4.0 if you want to use iAd. And I think Xcode 3.1.3 only includes the iPhone OS 3.0 SDK.
Time to upgrade to Snow Leopard?
I ran into a strange issue - iAd Tester app is no longer present in iPhone Simulator so I can't test iAds on it. I am using Xcode 3.2.4 with iOS 4.1 and iAd Framework 1.1.1. I tried re-installing the whole thing (Xcode and iAd package) and resetting the content of the simulator using command from the menu and manually deleting everything from ~/Library/Application Support/iPhone Simulator.
I think this happened after updating to latest Xcode a few weeks ago when everything worked fine. Any suggestions guys on where I am going wrong or missing something?
Developer Information:
Version: 3.2 (10M2309)
Location: /Developer
Applications:
Xcode: 3.2.4 (1708)
Interface Builder: 3.2.4 (804)
Instruments: 2.7 (3014)
Dashcode: 3.0.2 (333)
SDKs:
Mac OS X:
10.5: (9L31a)
10.6: (10M2309)
iPhone OS:
3.2: (7B500)
4.1: (8B117)
iPhone Simulator:
3.2: (7W367a)
4.0: (8A306)
4.1: (8B117)
Your help is much appreciated.
Try switching the hardware version on the iPhone Simulator:
Hardware -> Version -> 4.0.1
You may lose all of your organizational folders but once I did this I found the iAd Tester app.
I think sometimes the Apple server is just variable in serving test ads. I have an app that serves test ads sometimes in the simulator but at other times never loads them. Perhaps this is Apple's way of testing the code so that it responds appropriately to errors.
same thing is happening to me. my colleague at work can see the iAd Test app, but he has a lower version of the iPhone simulator. Not sure how to downgrade though.
...edit...
found the app, it's on "page 2". obviously I am new to iphones, let alone iphone dev.
switching the OS as described in the other answer was necessary for me too
I got the same problem. Sometime my app doesn't display Ad correctly. But I post to AppStore, it passed the review process and I can see some requests from America.
You can see it with the link: http://itunes.apple.com/ie/artist/tubiv/id383457772