Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

making tweak fail after upgrade my Xcode to 4.5 #39

Closed
ElfeXu opened this issue Sep 28, 2012 · 2 comments
Closed

making tweak fail after upgrade my Xcode to 4.5 #39

ElfeXu opened this issue Sep 28, 2012 · 2 comments

Comments

@ElfeXu
Copy link

ElfeXu commented Sep 28, 2012

I followed http://brandontreb.com/beginning-jailbroken-ios-development-getting-the-tools/ to use theos implementing a tweak. Everything worked fine.
Then upgrade my Xcode to 4.5.
Then when compiling any tweak projects, even a hello world, it failed with following error:

Making all for tweak PreferenceLoader...
Preprocessing Tweak.xm...
Compiling Tweak.xm...
Linking tweak PreferenceLoader...
collect2: ld terminated with signal 6 [Abort trap: 6]
ld(8724,0x7fff78fd2960) malloc: *** error for object 0x7f89b35003f0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
make[2]: *** [obj/PreferenceLoader.dylib] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [PreferenceLoader.all.tweak.variables] Error 2

I found this http://iphonesdkdev.blogspot.jp/2012/06/how-to-install-thoes-under-xcode-44.html, followed all steps, but still no luck.

Any ideas on the linking tool's crash?

@DHowett
Copy link
Collaborator

DHowett commented Sep 28, 2012

Xcode 4.5 ships with two different versions of the same linker. The one used by gcc (which is deprecated) crashes on armv6 output, and the one used by clang can not generate armv6 output.
There is currently no way to use the 6.0 SDK while targeting iOS versions less than 4.3, or any armv6 platforms.
If you're willing to accept this, please add the following to the top of your Makefile:

export ARCHS=armv7
export TARGET=iphone:latest:4.3

(note from theiostream)
Alternatively, it is possible to use older SDKs (if you have them) and build for both architectures and older deployment targets.

export ARCHS = armv6 armv7
export TARGET=iphone:<sdkversion-lower-than-6.0>:<deployment target-higher-than-3.0>

@ElfeXu
Copy link
Author

ElfeXu commented Oct 8, 2012

Hi Howett,
Sorry for the late response as I was on vacation before.
Yes, set the ARCHS and TARGET works fine. Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants