我最近将我的应用程序上传到App Store进行内部测试(TestFlight,iOS 8).我目前是唯一的测试人员.当我使用TestFlight进行测试时,我的应用程序崩溃了; 但是,从Xcode调试时,相同的操作正常.
我的理解是应该生成崩溃日志,我应该能够在Xcode的管理器中看到崩溃日志.但是,当我尝试在Organizer中下载崩溃日志时,它表示没有崩溃日志.还有一个带感叹号符号的三角形.当我点击它时,我会弹出一个"再试一次"按钮,上面写着:
无法下载崩溃信息.
发生错误,导致Xcode无法下载更新的崩溃信息.请稍后再试.
再试一次没有好处.我正在运行Xcode版本6.3.2(6D2105).
--------------------更新2015年7月29日-----------------
没运气.我还没有收到日志.我现在很难重现崩溃,但我的测试版观众很小.顺便提一下,我确定我正在检查带存档的符号选项.
我将研究第三方崩溃解决方案.我的应用程序是针对特殊需求的人而非打算出售,因此成本将是一个因素.有人有什么建议吗?
以下是我从App Store Developer支持中收到的回复:
感谢您联系App Store开发人员支持,了解您的应用Angelshare.
我了解到您发现自己的应用在测试期间崩溃了,但您无法访问iTunes Connect中的崩溃报告来诊断问题.
如果生成报告的数据不足,则选项卡将为空白.这并不表示您的iTunes Connect帐户或报告系统出现问题.导致数据不足的原因很多.如果报告涵盖新发布的应用版本或新发布的iOS版本,那么在生成报告之前可能已经过了很短的时间才能收到诊断日志.此外,各种因素可以减少可用数据量.日志仅由选择向Apple发送诊断数据的用户提交,统计抽样技术应用于提交的数据.
有关更多信息,请参阅iTunes Connect开发人员指南:
https://developer.apple.com/library/ios/iTunesConnectGuide
有关崩溃报告的其他信息,请查看iTunes Connect常见问题解答:
如果您有任何其他问题,请使用iTunes Connect中的"联系我们"部分:
在该方法中做我添加UIGestureRecognizer
到我的SKScene
.我如何检测哪个节点被刷过?这似乎不起作用:
-(id)initWithSize:(CGSize)size {
if (self = [super initWithSize:size]) {
...
UISwipeGestureRecognizer *recognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipe:)];
recognizer.direction = UISwipeGestureRecognizerDirectionUp;
[[self view] addGestureRecognizer:recognizer];
}
return self;
}
Run Code Online (Sandbox Code Playgroud) 我正在尝试将在Cheetah 3D和Blender 3D中创建的动画加载到Scene Kit中,但我得到的是一堆"无标题动画",每个动画都是相同的动画.
有谁知道如何从Blender或Cheetah 3D正确导出这些,以便Scene Kit可以使用它们?
我在使用NSParameterAssert的任何地方都遇到了编译错误.例如:
-(instancetype)initForPlot:(CPTPlot *)plot withFunction:(CPTDataSourceFunction)function
{
NSParameterAssert([plot isKindOfClass:[CPTScatterPlot class]]);
NSParameterAssert(function);
if ( (self = [self initForPlot:plot]) ) {
dataSourceFunction = function;
}
return self;
}
Run Code Online (Sandbox Code Playgroud)
代码使用Xcode 6.2编译得很好但是它给了我以下Xcode 6.3的错误:
/Users/xxxx/Project/App/Presentation/CorePlot/Source/CPTFunctionDataSource.m:110:5: Using %s directive in NSString which is being passed as a formatting argument to the formatting method
我在线查询并没有看到有关错误消息的信息.
我正在使用的临时修复程序如下:
#undef NSParameterAssert
#define NSParameterAssert(condition) ({\
do {\
_Pragma("clang diagnostic push")\
_Pragma("clang diagnostic ignored \"-Wcstring-format-directive\"")\
NSAssert((condition), @"Invalid parameter not satisfying: %s", #condition);\
_Pragma("clang diagnostic pop")\
} while(0);\
})
Run Code Online (Sandbox Code Playgroud)
不过应该有一个更好的解决方案.
我正在使用iOS 9 Storyboards来创建一个tvOS应用程序.
该应用程序有一个UICollectionView.我在我的Assets.xcassets集合中定义了一个包含Front,Middle和Back资产的Apple TV图像堆栈.
当用户突出显示UICollectionViewCell时,我希望有一个类似于应用程序图标的"突出显示"效果,用户可以在Siri遥控器上"圈"他们的手指以显示视差效果和光泽.
有人对这个有经验么?
当用户单击按钮时,它会显示一个带有两个视图控制器的新标签栏视图控制器.我就是这样做的
ACLevelDownloadController *dvc = [[ACLevelDownloadController alloc] initWithNibName:@"ACLevelDownloadController" bundle:[NSBundle mainBundle]];
ACInstalledLevelsController *ivc = [[ACInstalledLevelsController alloc] initWithNibName:@"ACInstalledLevelsController" bundle:[NSBundle mainBundle]];
UITabBarController *control = [[UITabBarController alloc] init];
control.viewControllers = @[dvc, ivc];
dvc.tabBarItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFeatured tag:0];
ivc.tabBarItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemDownloads tag:1];
[self presentViewController:control animated:YES completion:nil];
Run Code Online (Sandbox Code Playgroud)
这很好用.我关闭那些视图控制器具有dismiss
在两个方法ACLevelDownloadController
和ACInstalledLevelsController
.这也很好.奇怪的是,当我呈现视图控制器时,内存使用率会上升
但它永远不会失败.如果我再次呈现它,它会更上升
我正在使用ARC.为什么视图控制器使用的内存在被解除后不被释放?
他们被解雇的方式是两者ACLevelDownloadController
并且ACInstalledLevelsController
已经连接了IBActions,当他们被点击时调用这个方法
- (void)dismiss:(id)sender{
[self dismissViewControllerAnimated:YES completion:nil];
}
Run Code Online (Sandbox Code Playgroud) 我有NSURLConnection
一个tableview单元子类,可以下载大多数文件.但是,我注意到有些人无法开始下载,并且超时.一个例子是这个 URL,它只是一个测试zip文件,可以在任何其他浏览器中正常下载.下载我的代码
-(void)downloadFileAtURL:(NSURL *)url{
self.downloadedData = [[NSMutableData alloc] init];
self.url = url;
conn = [[NSURLConnection alloc] initWithRequest:[NSURLRequest requestWithURL:self.url cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:1200.0] delegate:self startImmediately:YES];
}
- (void)connection:(NSURLConnection*)connection didReceiveResponse:(NSHTTPURLResponse*)response
{
int statusCode = [response statusCode];
if (statusCode == 200){
self.fileName.text = response.URL.lastPathComponent;
self.respo = response;
expectedLength = [response expectedContentLength];
}
}
- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data{
[self.downloadedData appendData:data];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection{
CFStringRef mimeType = (__bridge CFStringRef)[_respo MIMEType];
CFStringRef uti = UTTypeCreatePreferredIdentifierForTag(kUTTagClassMIMEType, mimeType, NULL);
CFStringRef extension = UTTypeCopyPreferredTagWithClass(uti, kUTTagClassFilenameExtension);
NSString …
Run Code Online (Sandbox Code Playgroud) 我构建一个Mac应用程序,我有2个问题:
- 我想创建一个文本文件来读取和写入数据.我不知道如何创建文本文件以读取和写入数据.它是否使用struct?
- 我想创建一个XML文件来读取和写入数据.我可以为XML创建结构吗?
你有什么建议吗?提前致谢
我试图获得GLKViewController的子类的可见绘图区域.在iOS 7中,我将确定方向,然后相应地调整[UIScreen mainScreen] .bounds.size.然后我会减去navigationBar和statusBarFrame的高度,瞧! - 我绘图区域的实际大小.
现在我正在尝试使用viewWillTransitionToSize更新iOS 8,但是当我旋转设备(我有UIInterfaceOrientationMaskAll)时,传递的大小是错误的.实际上,宽度对于视图是正确的,但不是高度(涉及导航栏和状态栏高度).
我已经看到了几个与SO有关的问题,但实际上并没有解决这个问题,至少没有任何帮助我的问题.
这似乎不是我做任何有趣的事情,如果我错了就纠正我:
- (void)viewWillTransitionToSize : (CGSize) size
withTransitionCoordinator : (id<UIViewControllerTransitionCoordinator>) coordinator
{
[super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];
NSLog(@"size changed : orig(%f,%f) mainScreen(%f,%f)", size.width, size.height, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height);
[self updateViews:size];
}
Run Code Online (Sandbox Code Playgroud)
过渡到景观的输出:
size changed : orig(568.000000,256.000000) mainScreen(320.000000,568.000000)
Run Code Online (Sandbox Code Playgroud)
从viewWillTransitionToSize传递的高度似乎是:
320 - (2*32) = 256
Run Code Online (Sandbox Code Playgroud)
然后下一轮旋转到肖像:
size changed : orig(320.000000,536.000000) mainScreen(568.000000,320.000000)
Run Code Online (Sandbox Code Playgroud)
从viewWillTransitionToSize传递的高度似乎是:
568 - 32 = 536
Run Code Online (Sandbox Code Playgroud)
32恰好是横向模式中导航栏的高度(如果这意味着什么).
所以我的问题是:viewWillTransitionToSize如何获得这个大小?如何根据方向考虑更改尺寸或消失的额外条形图?最重要的是,为什么它使用这些不正确的高度?
objective-c ×7
ios ×6
android ×1
blender ×1
cocoa ×1
collada ×1
crop ×1
image ×1
memory ×1
scenekit ×1
sprite-kit ×1
swift ×1
text-files ×1
tvos ×1
whitespace ×1
xcode ×1
xcode6.3 ×1
xml-parsing ×1