I'm trying to archive my new game to send to the App Store, but Xcode isn't letting me. This is the error that is popping up:
Undefined symbols for architecture armv7:
"type metadata for (extension in UNDERNEATH):__ObjC.UIScreen.SizeType", referenced from:
UNDERNEATH.GamePlayScene.creatingPlatforms () -> () in GamePlayScene.o
function signature specialization <Arg[0] = Owned To Guaranteed> of UNDERNEATH.GamePlayScene.didMoveToView (__ObjC.SKView) -> () in GamePlayScene.o
function signature specialization <Arg[0] = Dead and Owned To Guaranteed, Arg[1] = Dead and Owned To Guaranteed> of UNDERNEATH.GamePlayScene.touchesBegan (Swift.Set<__ObjC.UITouch>, withEvent : __ObjC.UIEvent?) -> () in GamePlayScene.o
function signature specialization <Arg[0] = Dead and Owned To Guaranteed> of UNDERNEATH.GameScene.didMoveToView (__ObjC.SKView) -> () in GameScene.o
function signature specialization <Arg[0] = Dead and Owned To Guaranteed> of UNDERNEATH.EndScene.didMoveToView (__ObjC.SKView) -> () in EndScene.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)This is the code I believe the error is referring to:
extension UIScreen {
enum SizeType: CGFloat {
case Unknown = 0.0
case iPhone4 = 960.0
case iPhone5 = 1136.0
case iPhone6 = 1334.0
case iPhone6Plus = 1920.0
}
var sizeType: SizeType {
let height = nativeBounds.height
guard let sizeType = SizeType(rawValue: height) else { return .Unknown }
return sizeType
}
}Can anyone help me?