我成功上传我的应用程序存档的前2天,我的应用程序在应用程序商店,但昨天和今天当我上传存档时,我看到"正在上传存档"消息(带有副标题"发送api用法到itunes连接")开始,然后我看到"iTunes Store操作失败.此操作无法完成.请稍后再试":
当我尝试上传其他应用程序的存档时,一切都很好,这很奇怪,因为从2天前我只将应用程序中的最小年龄从17改为18(所以我没有更改应用程序设置中的所有重要内容).
可能是因为我们使用iAd网络和苹果通知该网络自7月起将无法使用?
我正在使用带有Apple的故事板的iAd套件,根据此链接... Apple iAd Storyboard文档
一切正常,直到我打开autolayout.它构建良好,但在运行时崩溃.我得到的输出是:
2013-08-24 12:06:36.138 TabbedBanner [7272:c07] *断言失败 - [UIView layoutSublayersOfLayer:],/ SourceCache/UIKit_Sim/UIKit-2380.17/UIView.m:578 2013-08-24 12:06: 36.139 TabbedBanner [7272:c07]*由于未捕获的异常'NSInternalInconsistencyException'而终止应用程序,原因:'将-viewDidLayoutSubviews发送到视图控制器后仍需要自动布局.BannerViewController的实现需要将-layoutSubviews发送到视图以调用自动布局.***第一掷调用堆栈:(0x1e27012 0x110ee7e 0x1e26e78 0xba4665 0xa347a 0x11226b0 0x1358fc0 0x134d33c 0x1358eaf 0x1422bd 0x8ab56 0x8966f 0x89589 0x887e4 0x883ef 0x65c9d 0x5098b 0x5194b 0x62cb5 0x63beb 0x55698 0x1700df9 0x1700ad0 0x1d9cbf5 0x1d9c962 0x1dcdbb6 0x1dccf44 0x1dcce1b 0x5117a 0x52ffc 0x2a0d 0x2935)的libc ++ abi.dylib:终止叫抛出异常(lldb)
我知道这与故事板中的子视图有关,但我不知道如何纠正这个错误.我是iOS的新手,并试图自学,所以任何帮助表示赞赏.非常感谢
非常简单的iAd代码:
import UIKit
import iAd
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
self.canDisplayBannerAds = true
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
}
Run Code Online (Sandbox Code Playgroud)
iAd.framework
已加载.
它曾经工作过.iOS9之后,无法正常工作.iAd的模拟器设置设置为100%,刷新率为15秒.没有展示任何广告.试用实际的iPhone 6,5S,4S和iPad Air2.没有展示任何广告.我在这里错过了什么吗?即将失去理智......我以前用于显示没有任何问题的iAds的所有应用程序现在都没有显示任何iAd.
我试图将ADBannerView包含到我的应用程序中.但ADBannerView总是以bannerView:didFailToReceiveAdWithError:结尾.我无法看到任何测试广告.
我还从Apples DevCenter下载了iAd示例代码,但我最终得到了同样的错误.
11/5/10 5:46:33 PM BasicAdBanner [12072] {ADInternalErrorCode = 3; NSLocalizedFailureReason ="广告资源不可用"; }
有人可以向我解释如何让iAd在模拟器和我的测试设备上工作吗?
我在一个全新的项目中实现了一个非常简单的iAd横幅,当我运行它时,我收到错误ERROR:无法从数据库中获取接收器数据!
代码是非常基本的,所以我不认为问题与代码有关,但我会添加它以防万一:
#import <iAd/iAd.h>
@interface MainViewController : UIViewController <ADBannerViewDelegate>
{ADBannerView *adView;}
@property (retain, nonatomic) IBOutlet ADBannerView *adView;
@end
@implementation MainViewController
@synthesize adView;
- (void)viewDidLoad
{
[super viewDidLoad];
adView.delegate = self;
[adView setHidden:YES];
}
-(void)bannerViewDidLoadAd:(ADBannerView *)banner{
[adView setHidden:NO];
NSLog(@"is laoding");
}
-(void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error{
[adView setHidden:YES];
NSLog(@"is NOT loading");
}
@end
Run Code Online (Sandbox Code Playgroud)
其他人收到此错误?对此事有何帮助?
我和我的开发人员曾尝试在iPhone和iPad上加载插页式广告,但只是设法在iPad上运行.
在我们的测试中,我们发现iPhone上不支持插页式广告,但自iOS7发布以来,有些人现在说这是可能的.
但是,我找不到任何体面的文件.这个Stack问题让我再次想知道iPhone上的iAd和Admob插页式整合
那么,使用iAds的iPhone上是否可以使用全屏插页式广告?
我将ADBannerView添加到视图中,当我加载应用程序时,我收到以下消息:
ADBannerView:警告横幅视图(0x7a023c0)有广告但可能会被遮挡.此消息仅在每个横幅视图中打印一次.
据我所知,整个横幅在屏幕上可见.这真的是个问题吗?或者这只是一个我可以忽略的警告?
我有使用UITextView的View Controller,在底部我有iAds.
当我访问View Controller时出现错误:<Error>: CGAffineTransformInvert: singular matrix.
为什么?
一切正常,但当我从肖像改为横向,反之亦然,我得到两次这个错误.
也许UITextView和iAds出了问题?
我didFailToReceiveAdWithError
在模拟器和设备上运行时在控制台中收到消息.
在iOS 8上运行时,iAd横幅会成功显示.在iOS 9上运行时,iAd横幅无法接收广告.
.H
#import <iAd/iAd.h>
@interface ViewController : UIViewController <ADBannerViewDelegate>
@property (retain, nonatomic) IBOutlet ADBannerView *adBanner;
Run Code Online (Sandbox Code Playgroud)
.M
-(void)viewDidLoad {
self.adBanner = [[ADBannerView alloc]initWithFrame:CGRectMake(0,[UIScreen mainScreen].bounds.size.height-100, [UIScreen mainScreen].bounds.size.width, 50)];
self.adBanner.delegate=self;
[self.adBanner setBackgroundColor:[UIColor clearColor]];
[self.view addSubview:self.adBanner];
}
-(void)bannerViewWillLoadAd:(ADBannerView *)banner {
NSLog(@"bannerViewWillLoadAd");
}
-(void)bannerViewDidLoadAd:(ADBannerView *)banner {
// Show the ad banner.
NSLog(@"bannerViewDidLoadAd");
[UIView animateWithDuration:0.5 animations:^{
self.adBanner.alpha = 1.0;
}];
}
-(void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error {
NSLog(@"didFailToReceiveAdWithError");
// Hide the ad banner.
[UIView animateWithDuration:0.5 animations:^{
self.adBanner.alpha = 0.0;
}];
}
-(void)bannerViewActionDidFinish:(ADBannerView …
Run Code Online (Sandbox Code Playgroud) 我正在尝试将NavigationBanner
iAdSuite
示例实现到我的项目中,以便我可以AdBannerView
跨多个视图控制器共享单个实例,但我不断收到以下错误:
错误域= ADErrorDomain代码= 2"操作无法完成.加载受限制
我已将相关代码完全从当前的iAdSuite复制到我自己的应用程序中,并收到此错误.实际上,这个错误在Apple自己的NavigationBanner的iAdSuite示例中是可重复的(这是我试图实现的示例).通过添加以下内容可以看到错误:
NSLog (@"%@",error);
Run Code Online (Sandbox Code Playgroud)
至:
- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error
Run Code Online (Sandbox Code Playgroud)
要复制问题,iAdSuite
请执行以下操作:
这对我的应用程序来说是一个问题,因为我想在没有连接的情况下隐藏iAd,然后在连接恢复后重新显示它.如果应用收到限制错误,那么在收到其他广告之前会有很长时间的延迟.
如何避免节流错误?我认为bannerView需要被删除然后重新添加,但无法弄清楚如何正确地执行此操作.
最后要注意的是,当前的iAdSuite使用ARC而我的应用程序却没有.即便如此,我的app和iAdSuite也会出现错误.
iad ×10
iphone ×4
ios ×3
objective-c ×3
ios9 ×2
adbannerview ×1
app-store ×1
autolayout ×1
cocoa-touch ×1
interstitial ×1
ios4 ×1
ios7 ×1
ipad ×1
matrix ×1
singular ×1
subview ×1
subviews ×1
swift ×1
swift2 ×1
uitextview ×1