【发布时间】:2015-10-04 16:24:35
【问题描述】:
我有一个支持 iOS 7 及更高版本的应用。对于我想使用 SceneKit 的视图之一,如果应用程序在 iOS 8 或更高版本上运行。我通过使用这段代码来做到这一点
if(SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")){
[self performSegueWithIdentifier:@"3DIdentifier" sender:cell];
}
else{
[self performSegueWithIdentifier:@"2DIdentifier" sender:cell];
}
}
问题在于,当使用 iOS 7 模拟器时,应用程序无法运行。
原因:找不到合适的图片。发现: /System/Library/Frameworks/SceneKit.framework/SceneKit:mach-o,但不是为 iOS 模拟器构建的
有没有办法链接 SceneKit 以使应用程序仍然可以在 iOS 7 上构建和运行?
【问题讨论】:
标签: ios objective-c swift linker scenekit