Skip to content
This repository

Framework missing symbols for ARMV7 #69

Closed
Diggs opened this Issue October 31, 2011 · 11 comments

11 participants

Tyler Power Felix Schulze redstarstar Andrew Rothman akisute Mark Bonano Konstantin Kim FangZhouFan habeshagir Lee Nguyen
Tyler Power

Hi there,

I've downloaded the latest GHUnit framework 0.4.33 and am trying to use it with the iOS 5 SDK.

If I compile for the simulator (i386) it builds and runs my tests fine.

If I try to run it on my iPhone 4 (Running iOS 5) it fails to build with the following error:

Undefined symbols for architecture armv7:
"OBJC_CLASS$YKUIImageViewControl", referenced from:
objc-class-ref in GHUnitIOS(GHUnitIOSTestView.o)
"_OBJC_CLASS
$_GHImageDiffView", referenced from:
objc-class-ref in GHUnitIOS(GHUnitIOSTestViewController.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Here is the output of arch:

nm -a -arch armv7 GHUnitIOS | grep YKUIImageViewControl
nm: no name list
U OBJC_CLASS$_YKUIImageViewControl

nm -a -arch armv6 GHUnitIOS | grep YKUIImageViewControl
nm: no name list
U OBJC_CLASS$_YKUIImageViewControl

nm -a -arch i386 GHUnitIOS | grep YKUIImageViewControl
nm: no name list
U OBJC_CLASS$YKUIImageViewControl
GHUnitIOS(YKUIImageViewControl.o):
00000000 t -[YKUIImageViewControl forwardingTargetForSelector:]
00000017 t -[YKUIImageViewControl imageView]
0000002e t -[YKUIImageViewControl initWithFrame:]
00008a6c s -[YKUIImageViewControl initWithFrame:].eh
000001dc t -[YKUIImageViewControl initWithFrame:image:highlightedImage:]
00008af0 s -[YKUIImageViewControl initWithFrame:image:highlightedImage:].eh
00000156 t -[YKUIImageViewControl layoutSubviews]
00008ac4 s -[YKUIImageViewControl layoutSubviews].eh
000000f4 t -[YKUIImageViewControl setHighlighted:]
00008a98 s -[YKUIImageViewControl setHighlighted:].eh
00008a38 S _OBJC_CLASS
$YKUIImageViewControl
00008948 S _OBJC_IVAR
$YKUIImageViewControl._imageView
00008a24 S _OBJC_METACLASS
$YKUIImageViewControl
0000899c s l_OBJC
$INSTANCE_METHODS_YKUIImageViewControl
000089ec s l_OBJC
$INSTANCE_VARIABLES_YKUIImageViewControl
00008a08 s l_OBJC
$PROP_LIST_YKUIImageViewControl
00008974 s l_OBJC_CLASS_RO
$YKUIImageViewControl
0000894c s l_OBJC_METACLASS_RO
$_YKUIImageViewControl

It looks to me like the i386 build has some extra stuff the arm architectures don't have.

redstarstar

I had the same problem...

Same here. Ok in simulator, failed to build in iPhone4(iOS5)

Andrew Rothman

Has anybody found a fix yet?

You need to build by yourself.

  1. git clone https://github.com/gabriel/gh-unit.git
  2. cd Project-iOS
  3. make
  4. Use the GHUnitIOS.framework under the build/Framework folder
Andrew Rothman

I agree. The same thing worked for me.

akisute

@tszming Thank you, worked for me!

Mark Bonano

Could someone provide a bit more detail on how a rebuild solved this issue? I downloaded the source and verified that the build settings were appropriately configured for armv6 and armv7. I rebuilt the framework, re-referenced the newly built framework in my existing project and cleared my project completely. When I try to run my project, I still receive the same error. Any ideas why? Any help would be much appreciated.

Konstantin Kim

Thanks! Worked for me!

FangZhouFan

Thanks to tszming! It worked for me,too.

habeshagir

I'M facing same problem, its a related issue.
Can anyone tell me more please ? since am just new to the environment i couldn't even know where to make changes.
I'm using Xcode environment and the error message generated is as follows:

duplicate symbol OBJC_METACLASS$_Base64 in /Users/fengz/Library/Developer/Xcode/DerivedData/App-fcboiwafvqizjpbnawarmmchgvqh/Build/Intermediates/App.build/Debug-iphoneos/App.build/Objects-normal/armv7/Base64-3A0CFD19E80D86B.o and /Users/fengz/Library/Developer/Xcode/DerivedData/App-fcboiwafvqizjpbnawarmmchgvqh/Build/Intermediates/App.build/Debug-iphoneos/App.build/Objects-normal/armv7/Base64-3A0CFD19E80D86B.o for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Lee Nguyen

thank you. you saved my dad!

Felix Schulze x2on closed this October 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.