Jump to content

2 posts in this topic

Recommended Posts

Posted

So, yet again I'm having errors compiling, I've looked at lots of other people having this error and tried everything but so far I'm having no luck :(

Heres the error 

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_PSListController", referenced from:
      _OBJC_CLASS_$_BattleplansListController in Battleplans.mm.e089beef.o
  "_OBJC_METACLASS_$_PSListController", referenced from:
      _OBJC_METACLASS_$_BattleplansListController in Battleplans.mm.e089beef.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Here's my tweaks makefile 

Export ARCHS = armv7 arm64
TARGET = iphone:clang:10.1
#CFLAGS = -fobjc-arc
#THEOS_PACKAGE_DIR_NAME = debs

include ~/theos/makefiles/common.mk
#include <UIKit/UIKit.h>

TWEAK_NAME = Battleplans
Battleplans_FILES = Tweak.xm
Battleplans_FRAMEWORKS = UIKit
Battleplans_LDFLAGS += -Wl,-segalign,4000
Battleplans_FRAMEWORKS = UIKit CoreGraphics

include ~/theos/makefiles/tweak.mk


SUBPROJECTS += Battleplans
include ~/theos/makefiles/aggregate.mk

Here's my patchers makefile

export ARCHS = armv7 arm64
include ~/theos/makefiles/common.mk
#import <UIKit/UIKit.h>

BUNDLE_NAME = Battleplans
Battleplans_FILES = Battleplans.mm
Battleplans_INSTALL_PATH = /Library/PreferenceBundles
Battleplans_FRAMEWORKS = UIKit
Battleplans_PRIVATE_FRAMEWORKS = Preferences
Battleplans_FRAMEWORKS = UIKit CoreGraphics

include ~/theos/makefiles/bundle.mk

internal-stage::
	$(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences$(ECHO_END)
	$(ECHO_NOTHING)cp entry.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/Battleplans.plist$(ECHO_END)

Can anyone help me?

Posted

I don't know much about this but "export" ARCHS = armv7 arm64 doesn't sound right. Try just ARCHS = armv7 arm64. Doubt this is the issue but thought I'd suggest it.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines