Well, when I run app, the app work without any warnings or errors, but when I try to test it i got bunch of errors, like this:
Undefined symbols for architecture x86_64:
"_CGRectGetMidX", referenced from:
-[GameOver initWithSize:playerLose:] in GameOver.o
-[GameOver overBackground] in GameOver.o
-[TitleScene initWithSize:] in TitleScene.o
"_CGRectGetMidY", referenced from:
-[GameOver overBackground] in GameOver.o
-[TitleScene initWithSize:] in TitleScene.o
"_OBJC_CLASS_$_SKAction", referenced from:
objc-class-ref in GameOver.o
objc-class-ref in TitleScene.o
"_OBJC_CLASS_$_SKLabelNode", referenced from:
objc-class-ref in GameOver.o
"_OBJC_CLASS_$_SKScene", referenced from:
_OBJC_CLASS_$_GameOver in GameOver.o
_OBJC_CLASS_$_TitleScene in TitleScene.o
"_OBJC_CLASS_$_SKSpriteNode", referenced from:
objc-class-ref in GameOver.o
objc-class-ref in TitleScene.o
"_OBJC_CLASS_$_SKTransition", referenced from:
objc-class-ref in GameOver.o
objc-class-ref in TitleScene.o
"_OBJC_CLASS_$_UIDevice", referenced from:
objc-class-ref in GameOver.o
objc-class-ref in TitleScene.o
"_OBJC_METACLASS_$_SKScene", referenced from:
_OBJC_METACLASS_$_GameOver in GameOver.o
_OBJC_METACLASS_$_TitleScene in TitleScene.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How can i resolve this problem?
Aucun commentaire:
Enregistrer un commentaire