Struggling to compile older cocos2dx- project in Xcode just to update

Hey folks, a long time ago, a friend of mine worked with me on some code, it used Cocos-Studio which is now extinct, however, I do not need to make any design changes, I just wanted to open the app in Xcode and change some small stuff - however I can’t get it compile - facing these errors;

Showing Recent Errors Only

Undefined symbol: non-virtual thunk to cocos2d::Sprite::setTexture(cocos2d::Texture2D*)

Undefined symbol: cocos2d::Vec2::add(cocos2d::Vec2 const&)

Undefined symbol: cocos2d::Vec2::scale(float)

Undefined symbol: cocos2d::Vec2::subtract(cocos2d::Vec2 const&)

Undefined symbol: cocos2d::Application::setAnimationInterval(double)

Undefined symbol: non-virtual thunk to cocos2d::Sprite::getTexture() const

Undefined symbol: cocos2d::Node::updatePhysicsBodyTransform(cocos2d::Mat4 const&, unsigned int, float, float)

Undefined symbols for architecture arm64:
“non-virtual thunk to cocos2d::Sprite::setTexture(cocos2d::Texture2D*)”, referenced from:
vtable for ToolDrolotion in ToolDrolotion.o
vtable for ToolCutNail in ToolCutNail.o
vtable for ToolXRay in ToolXRay.o
vtable for Finger in Finger.o
vtable for ToolCream in ToolCream.o
vtable for ToolRasp in ToolRasp.o
vtable for BugSprite in Character.o

“cocos2d::Vec2::add(cocos2d::Vec2 const&)”, referenced from:
cocos2d::Vec2::operator+(cocos2d::Vec2 const&) const in ToolDrolotion.o
cocos2d::Vec2::operator+=(cocos2d::Vec2 const&) in ToolShower.o
(maybe you meant: cocos2d::Vec2::add(cocos2d::Vec2 const&, cocos2d::Vec2 const&, cocos2d::Vec2*))
“cocos2d::Vec2::scale(float)”, referenced from:
cocos2d::Vec2::operator*=(float) in ToolDrolotion.o
“cocos2d::Vec2::subtract(cocos2d::Vec2 const&)”, referenced from:
cocos2d::Vec2::operator-(cocos2d::Vec2 const&) const in ToolDrolotion.o
(maybe you meant: cocos2d::Vec2::subtract(cocos2d::Vec2 const&, cocos2d::Vec2 const&, cocos2d::Vec2*))
“cocos2d::Application::setAnimationInterval(double)”, referenced from:
vtable for AppDelegate in AppDelegate.o
“non-virtual thunk to cocos2d::Sprite::getTexture() const”, referenced from:
vtable for ToolDrolotion in ToolDrolotion.o
vtable for ToolCutNail in ToolCutNail.o
vtable for ToolXRay in ToolXRay.o
vtable for Finger in Finger.o
vtable for ToolCream in ToolCream.o
vtable for ToolRasp in ToolRasp.o
vtable for BugSprite in Character.o

“cocos2d::Node::updatePhysicsBodyTransform(cocos2d::Mat4 const&, unsigned int, float, float)”, referenced from:
vtable for SelectScene in SelectScene.o
vtable for BraceletLayer in BraceletLayer.o
vtable for ToolDrolotion in ToolDrolotion.o
vtable for ToolCutNail in ToolCutNail.o
vtable for RingLayer in RingLayer.o
vtable for ToolXRay in ToolXRay.o
vtable for MainScene in MainScene.o

ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I started with about 100 errors, and have gotten down to just those above - I got rid of a ton of errors by dropping in a libcocos2d iOS file from prebuilt folder.

Struggling to get this to compile, any help would be MUCH appreciated!

I think many of these errors are discussed in posts here.

What version is the project starting af?

What version do you wish to upgrade to?

V2 to v3 was a huge upgrade, btw.

I think that’s one of the issues, I can’t remember what I used, it seems to link to Cocos2d-x 3.5 (or 3.1.5) when the frameworks directory in xcode is looking, but I am now wondering if it is supposed to be 2.25 hence the errors :confused:

2.2.5 would make sense. 3.1.5 isn’t a valid version.