Skip to content
Guest Big Announcement

Error: ld: symbol(s) not found for architecture armv7 - Theos on iOS 8

Featured Replies

 

I tried compiling a project using PuTTY on iOS 8 with iOS 8.1 SDK and got this error:
 
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
 
Anyone know a solution?
 
Thanks! ^_^

 

bro can u post the pic of it ?

  • Author

bro can u post the pic of it ?

Making all in ProjectName...
Making all for bundle ProjectName...
 Copying resource directories into the bundle wrapper...
 Linking bundle ProjectName...
Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_UIApplication", referenced from:
      objc-class-ref in Preferences.mm.4308fdb3.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [obj/ProjectName.bundle/ProjectName.64873355.unsigned] Error 1
make[2]: *** [internal-bundle-all_] Error 2
make[1]: *** [ProjectName.all.bundle.variables] Error 2
make: *** [internal-all] Error 2

Making all in ProjectName...
Making all for bundle ProjectName...
 Copying resource directories into the bundle wrapper...
 Linking bundle ProjectName...
Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_UIApplication", referenced from:
      objc-class-ref in Preferences.mm.4308fdb3.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [obj/ProjectName.bundle/ProjectName.64873355.unsigned] Error 1
make[2]: *** [internal-bundle-all_] Error 2
make[1]: *** [ProjectName.all.bundle.variables] Error 2
make: *** [internal-all] Error 2

bruh u should add ARCHS = armv7 arm64 to the tweak MakeFile and Add PROJECTNAME_FRAMEWORKS = UIKit to the Patcher MakeFile :) Done!

  • Author

bruh u should add ARCHS = armv7 arm64 to the tweak MakeFile and Add PROJECTNAME_FRAMEWORKS = UIKit to the Patcher MakeFile :) Done!

Already have. ^_^

 

The error is generated from Preferences.mm file. :3

 

Want me to compile your project ?

Nah, not yet. :)

  • Author

bruh i got same error ! double check it ! it will fix it :p

Fixed the error by removing any extra modifications made to the Preferences.mm file. :)

#import <Preferences/Preferences.h>

@interface ProjectNameListController: PSListController {
}
@end

@implementation ProjectNameListController
- (id)specifiers {
	if(_specifiers == nil) {
		_specifiers = [[self loadSpecifiersFromPlistName:@"ProjectName" target:self] retain];
	}
	return _specifiers;
}
@end

// vim:ft=objc

 

Fixed the error by removing any extra modifications made to the Preferences.mm file. :)

#import <Preferences/Preferences.h>

@interface ProjectNameListController: PSListController {
}
@end

@implementation ProjectNameListController
- (id)specifiers {
	if(_specifiers == nil) {
		_specifiers = [[self loadSpecifiersFromPlistName:@"ProjectName" target:self] retain];
	}
	return _specifiers;
}
@end

// vim:ft=objc

I'm getting this same error. Where do I find this "preferences.mm" file? :MeGusta:

Archived

This topic is now archived and is closed to further replies.

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.