MCR
MCR

Reputation: 1643

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?

Upvotes: 0

Views: 160

Answers (1)

Related Questions