提交 3a8351e4 编写于 作者: I Ian Fischer

Merge pull request #435 from iansf/bugfix_ios_refresh

Avoid crashing when building an app without an app.skyx file in DEBUG mode.
......@@ -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.
先完成此消息的编辑!
想要评论请 注册