Skip to content
Guest Big Announcement

Another error while compiling :(

Featured Replies

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?

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

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.