简体   繁体   中英

Link SceneKit Framework avoid crash on iOS 7

I have an app that supports iOS 7 and greater. For one of the views I want to use SceneKit, if the app is running on iOS 8 or greater. I do this by using this bit of code

if(SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")){
        [self performSegueWithIdentifier:@"3DIdentifier" sender:cell];
    }
    else{
        [self performSegueWithIdentifier:@"2DIdentifier" sender:cell];
    }
}

The trouble is that when using the iOS 7 simulator the app won't run.

Reason: no suitable image found. Did find: /System/Library/Frameworks/SceneKit.framework/SceneKit: mach-o, but not built for iOS simulator

Is there a way to link SceneKit that enables the app to still build and run on iOS 7?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM