提交 a84528c1 编写于 作者: I Ian Fischer

Avoid crashing when building an app without an

app.skyx file in DEBUG mode.
上级 bf482952
......@@ -153,7 +153,7 @@ static sky::InputEventPtr BasicInputEventFromRecognizer(
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *skyxDocsPath = [documentsDirectory stringByAppendingPathComponent:@"app.skyx"];
if ([fileManager fileExistsAtPath:skyxDocsPath] == NO) {
if (skyxBundlePath != nil && [fileManager fileExistsAtPath:skyxDocsPath] == NO) {
if ([fileManager copyItemAtPath:skyxBundlePath toPath:skyxDocsPath error:&error]) {
return skyxDocsPath;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册