8000 Framework missing symbols for ARMV7 · Issue #69 · gh-unit/gh-unit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository has been archived by the owner on Jun 5, 2018. It is now read-only.

Framework missing symbols for ARMV7 #69

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

Framework missing symbols for ARMV7 #69

Diggs opened this issue Nov 1, 2011 · 11 comments

Comments

@Diggs
Copy link
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
Copy link

I had the same problem...

@tszming
Copy link
tszming commented Jan 3, 2012

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

@andrewrothman
Copy link

Has anybody found a fix yet?

@tszming
Copy link
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
Copy link

I agree. The same thing worked for me.

@akisute
Copy link
akisute commented Jan 23, 2012

@tszming Thank you, worked for me!

@mbonano
Copy link
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
Copy link
Kastet commented Mar 11, 2012

Thanks! Worked for me!

@lovexz1989
Copy link

Thanks to tszming! It worked for me,too.

@girmay1977
Copy link

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-nor 8505 mal/armv7/Base64-3A0CFD19E80D86B.o for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@lntutor
Copy link
lntutor commented Mar 21, 2013

thank you. you saved my dad!

@x2on x2on closed this as completed Oct 30, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0