This repository has been archived by the owner. It is now read-only.

Framework missing symbols for ARMV7 #69

Closed
Diggs opened this Issue Nov 1, 2011 · 11 comments

Comments

Projects
None yet
@Diggs

Diggs commented Nov 1, 2011

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

This comment has been minimized.

Show comment
Hide comment
@redstarstar

redstarstar Dec 28, 2011

I had the same problem...

I had the same problem...

@tszming

This comment has been minimized.

Show comment
Hide comment
@tszming

tszming Jan 3, 2012

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

tszming commented Jan 3, 2012

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

@andrewrothman

This comment has been minimized.

Show comment
Hide comment
@andrewrothman

andrewrothman Jan 6, 2012

Has anybody found a fix yet?

Has anybody found a fix yet?

@tszming

This comment has been minimized.

Show comment
Hide comment
@tszming

tszming Jan 8, 2012

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

tszming commented Jan 8, 2012

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
@andrewrothman

This comment has been minimized.

Show comment
Hide comment
@andrewrothman

andrewrothman Jan 8, 2012

I agree. The same thing worked for me.

I agree. The same thing worked for me.

@akisute

This comment has been minimized.

Show comment
Hide comment
@akisute

akisute Jan 23, 2012

@tszming Thank you, worked for me!

akisute commented Jan 23, 2012

@tszming Thank you, worked for me!

@mbonano

This comment has been minimized.

Show comment
Hide comment
@mbonano

mbonano Jan 23, 2012

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.

mbonano commented Jan 23, 2012

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.

@Kastet

This comment has been minimized.

Show comment
Hide comment
@Kastet

Kastet Mar 11, 2012

Thanks! Worked for me!

Kastet commented Mar 11, 2012

Thanks! Worked for me!

@lovexz1989

This comment has been minimized.

Show comment
Hide comment
@lovexz1989

lovexz1989 Apr 17, 2012

Thanks to tszming! It worked for me,too.

Thanks to tszming! It worked for me,too.

@girmay1977

This comment has been minimized.

Show comment
Hide comment
@girmay1977

girmay1977 Jun 8, 2012

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)

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)

@lntutor

This comment has been minimized.

Show comment
Hide comment
@lntutor

lntutor Mar 21, 2013

thank you. you saved my dad!

lntutor commented Mar 21, 2013

thank you. you saved my dad!

@x2on x2on closed this Oct 30, 2013

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.